https://github.com/brian-team/brian2wasm

https://github.com/brian-team/brian2wasm

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 4 committers (25.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.0%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: brian-team
  • Language: Python
  • Default Branch: main
  • Size: 225 KB
Statistics
  • Stars: 5
  • Watchers: 1
  • Forks: 11
  • Open Issues: 9
  • Releases: 7
Created almost 4 years ago · Last pushed 10 months ago
Metadata Files
Readme

README.md

Brian2Wasm

Brian2Wasm is a Brian 2 “device” that compiles Brian models to WebAssembly and JavaScript via the Emscripten tool-chain.
The result is a self-contained web folder (index.html, wasm_module.js, and the .wasm binary) that runs your simulation in any modern browser.

Live examples: https://brian-team.github.io/brian2wasm/

Documentation: https://brian2wasm.readthedocs.io

Status – functional, but still under active development.

PyPI

Installation & Usage (Pixi)

```bash

1 – install Pixi (https://pixi.sh)

curl -fsSL https://pixi.sh/install.sh | bash

2 – set up Brian2Wasm

git clone https://github.com/brian-team/brian2wasm.git cd brian2wasm pixi install # creates the full env (Python, emsdk, brian2, …) pixi run setup # one-time EMSDK activation pixi shell # enter the environment shell

3 – build and run an example

python -m brian2wasm examples/brunel_hakim1999.py ```

Headless build (no preview server)

bash python -m brian2wasm --no-server my_model.py --no-server skips the temporary web-server and only generates the files.

⚠️ Limitations / Warnings * Do not call set_device(...) in your script—Brian2Wasm sets the device automatically. * Plotly charts inside the generated HTML load assets from a CDN.

Contributing

Contributions are welcome!
If you encounter a bug or have a feature request, please open an issue first.
Pull requests should target the main branch and follow conventional commit messages.


License

Brian2Wasm is released under the same open-source license as the core Brian 2 simulator (BSD-style).
See the LICENSE file in this repository for full details.

Owner

  • Name: Brian simulator
  • Login: brian-team
  • Kind: organization
  • Location: Paris, France

GitHub Events

Total
  • Create event: 5
  • Release event: 3
  • Issues event: 13
  • Watch event: 4
  • Issue comment event: 27
  • Push event: 8
  • Pull request review comment event: 9
  • Pull request review event: 19
  • Pull request event: 13
  • Fork event: 10
Last Year
  • Create event: 5
  • Release event: 3
  • Issues event: 13
  • Watch event: 4
  • Issue comment event: 27
  • Push event: 8
  • Pull request review comment event: 9
  • Pull request review event: 19
  • Pull request event: 13
  • Fork event: 10

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 65
  • Total Committers: 4
  • Avg Commits per committer: 16.25
  • Development Distribution Score (DDS): 0.462
Past Year
  • Commits: 39
  • Committers: 4
  • Avg Commits per committer: 9.75
  • Development Distribution Score (DDS): 0.333
Top Committers
Name Email Commits
Marcel Stimberg m****g@i****r 35
Palash Chitnavis p****s@g****m 26
alfiyafatima09 a****1@g****m 3
Ankur Paul 1****l 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 13
  • Total pull requests: 20
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 9 days
  • Total issue authors: 3
  • Total pull request authors: 3
  • Average comments per issue: 1.0
  • Average comments per pull request: 1.6
  • Merged pull requests: 15
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 12
  • Pull requests: 20
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 9 days
  • Issue authors: 2
  • Pull request authors: 3
  • Average comments per issue: 0.67
  • Average comments per pull request: 1.6
  • Merged pull requests: 15
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • mstimberg (7)
  • PalashChitnavis (5)
  • bdevans (1)
Pull Request Authors
  • PalashChitnavis (16)
  • alfiyafatima09 (2)
  • ankur-paul (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 374 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 7
  • Total maintainers: 2
pypi.org: brian2wasm

A WebAssembly backend for the Brian 2 simulator

  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 374 Last month
Rankings
Dependent packages count: 8.9%
Average: 29.7%
Dependent repos count: 50.4%
Last synced: 10 months ago

Dependencies

pyproject.toml pypi
  • brian2 *