Skip to content

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 ​

GoalImportGuide
Validate, run, save, or restore@grabm/abmFirst simulation
Define the scenario JSON@grabm/abmScenario JSON schema
Run in a browser worker@grabm/abmWorkers
Replay in your Three.js scene@grabm/abm/playbackPlayback
Calculate metrics or mount reports@grabm/abm/analyticsAnalytics

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.

Documentation for the grABM library.