Appearance
Build with grABM
grABM runs reproducible agent-based simulations from a graph, facilities, and an explicit population scenario. Construct a Scenario, pass it to Simulation, and execute reproducible runs. @grabm/abm provides validation, simulation, analytics, playback, and persistence.
Start with the scenario JSON schema. The input contract belongs to the library; applications produce that contract and consume the results.
Understand the model
Start with core concepts, then follow how events advance the simulation. Profiles, schedules and decisions, and routing and capacity explain the behavior you author. Reading results covers observations, unmet demand, seeds, and fair comparisons.
Choose an import
| Goal | Import | Guide |
|---|---|---|
| Validate, run, save, or restore | @grabm/abm | First simulation |
| Define the scenario JSON | @grabm/abm | Scenario JSON schema |
| Run in a browser worker | @grabm/abm | Workers |
| Replay in your Three.js scene | @grabm/abm/playback | Playback |
| Calculate metrics or mount reports | @grabm/abm/analytics | Analytics |
Follow the data
Graph + facilities + Scenario → Simulation.run(settings) → result → analytics / playback / storage.
Start with installation and your first simulation, then browse all public functions and classes.
Your application owns its renderer, UI, and storage. Use Node for direct execution or a browser worker for an interactive host. Three.js and Plotly are optional dependencies.
grABM is a synthetic comparative design model. Read behavior and limitations before interpreting its output as demand.
See future work and next steps for proposed priorities, evidence needed, and possible later extensions.