Appearance
Neighborhood routines
A full day in an eight-node hillside neighborhood. Workers, students, and people with flexible days follow different routines across seven destinations. Change the population or shop capacity, run the model, and replay the result. Everything runs in your browser.
Explore the graph
Switch between 2D and 3D above the graph. The same run and playback time remain selected across all three views.
- 2D is an SVG plan view of the same graph, projected onto x/y.
- 3D uses Three.js: drag to orbit, scroll or pinch to zoom, and use arrow keys to pan when the canvas is focused. Reset view restores the camera. The nodes have elevations from 0 to 100 metres, with sloping paths between them. Dashed vertical guides show height above the ground grid. People move along the actual x/y/z paths; edge lengths include elevation, so it affects travel time. The 3D renderer loads on demand and is disposed when leaving its tab. Browsers without WebGL can use 2D and JSON.
Settings and simulation data
Expand Scenario settings in the graph's upper-right corner to adjust the model and run it again. On narrow screens, settings sit above the graph inside its card. The panel starts collapsed so the graph stays visible.
The Simulation data card opens by default on the right, or below the canvas on narrow screens. Use the pane icon to the right of Scenario settings to collapse or expand it. On wide screens the page expands, preserving the canvas width. Choose complete input, graph, facilities, scenario, population and households, profiles and schedules, mobility assumptions, behavior assumptions, or run settings. The Copy JSON icon copies the selected section. Use Maximize data panel for a larger, focused view; Restore data panel or Escape returns it beside the canvas without losing your selection. All views include normalized defaults; the complete input and scenario also retain any source metadata and extensions.
Click an object or array key to collapse or expand its nested data; for unnamed array items, click the opening brace or bracket. Click anywhere on a collapsed row to expand it. Hover highlights clickable keys and collapsed rows. Collapsed sections show their item or key count. With a key focused, use the left/right arrow keys to collapse/expand, or Enter to toggle. Folding is preserved when maximizing the panel; selecting another data section starts expanded. Copy JSON always copies the entire selected section, including collapsed values. While scrolling, enclosing object and array headers stay at the top of the JSON viewer. Click these sticky keys to collapse a parent without scrolling back to its beginning; headers leave the stack when you scroll beyond their object's contents.
This data matches the displayed successful run. Settings edits remain pending until a new run succeeds. During a rerun, playback pauses and the previous result stays visible; cancellation or failure preserves it. Before the first successful run, the card identifies its data as the initial input. Closing or opening the data card preserves the camera angle, playback time, and selected agent.
JSON describes configurable inputs. The event-based simulation, schedules and decisions, and routing and capacity guides explain model policies that are not represented by input fields.
A day of different routines
| Group | Morning | Midday | Afternoon | Evening |
|---|---|---|---|---|
| Workers | Office | Café, then office | Park after work | Shopping, then home |
| Students | School | Café, then school | Garden | Shopping, then home |
| Flexible days | Park, then café | Free time | Garden, then park | Shopping, then home |
Population is divided as evenly as possible between these three profiles. Their behavior comes from explicit schedules, not demographic inference. Scheduled arrival times vary by up to five minutes with the seed. Everyone starts at home at midnight and has a home-return appointment at 20:00.
What to try
- Press Play or use the time-of-day buttons to see different journeys. Playback opens at 08:50, during morning departures; the slider covers 00:00–24:00.
- Jump to Lunch to see the café fill, then Afternoon for school, work, and leisure trips. The location table shows current occupancy and all-day arrivals.
- Set Shop capacity below People: some evening shopping choices remain unmet. Other scheduled activities still happen.
- Switch off Shortcut open: routes that used it take a longer way through the neighborhood. Compare the travel time and replay the result.
- Keep the same settings and seed to reproduce a run. Change the seed to vary timing.
Walking speed is 1.4 m/s, including on slopes; this demo does not model extra uphill effort. All facilities are open for the full day; only the shop has a user-adjustable capacity below the population. Shopping decisions occur between 18:00 and 18:20 with a 45-minute visit. After an activity ends, people stay at the last destination until their next trip. This small synthetic model does not include overnight travel, vehicles, or unscheduled activity beyond shopping.
The demo uses Scenario, Simulation, analyzeRun, and the headless playback controls. Both graph views sample each person's recorded trip history. Start with the first simulation, JSON schema, or public API to use these contracts in your application.
The Libraries.dev breathing orb appears while a run is in progress. It uses the active palette and becomes static when reduced motion is preferred. It belongs to this demo's UI; the simulation library only reports progress. Small runs may complete before a full breath is visible.