Skip to main content

Cantera ReactorNet Visualizer

logo

A web-based tool for visually constructing and simulating Cantera ReactorNet systems.

Architecture: FastAPI (Python backend) + React (TypeScript frontend) with Vite, Tailwind CSS, Zustand, and TanStack Query.

Documentation

  • AGENTS.md — setup, verification commands, coding and testing conventions for contributors and agents.
  • ARCHITECTURE.md — system design, API, frontend, staged solve, and plugin extension points.
  • Sphinx — build with make docs-build; published from docs/ (see Contributing below).

Features

  • Interactive graph editor for creating reactor networks (Cytoscape.js)
  • Support for various reactor types (IdealGasReactor, Reservoir)
  • Support for flow devices (MassFlowController, Valve, Wall)
  • Real-time property editing with unit conversion (K/°C)
  • Simulation with SSE streaming and live-updating Plotly charts
  • Results tabs: Temperature/Pressure plots, Sankey, Thermo reports, Summary
  • Monaco YAML editor with syntax highlighting
  • Extensible plugin system (JSON-based API)
  • Light/dark theme with OS preference detection
  • YAML configuration files with 🪨 STONE standard (elegant format)

screenshot

Installation

As a user (recommended)

Released wheels ship with the React frontend prebuilt, so no Node/npm is required — just install into any Python (e.g. conda) environment:

pip install boulder            # from PyPI

Note: installing straight from a source checkout (pip install git+https://github.com/parks4/boulder.git@main) does not include the GUI: the frontend is only built and bundled when a release wheel is produced. Use the PyPI release (or a wheel from the Releases page) to get the interface without building it yourself.

As a developer (from source)

Clone the repository, create an isolated environment, and build the frontend:

git clone https://github.com/parks4/boulder.git
cd boulder
conda env create -n boulder -f environment.yml
conda activate boulder
pip install -e .         # install in editable mode

# Build the React frontend (emits into boulder/_frontend)
cd frontend
npm install
npm run build
cd ..

Usage

From the CLI

After installation, use the boulder command:

boulder                 # starts the FastAPI server & opens the interface
boulder some_file.yaml  # starts with a YAML preloaded

Optional flags:

boulder --host 0.0.0.0 --port 8050 --debug  # customize host/port, enable auto-reload
boulder some_file.yaml --no-open             # do not auto-open the browser
boulder config.yaml --headless --download output.py  # headless code generation
boulder --dev                                # run in development mode with Vite dev server

Running scenario sweeps

A config declaring a top-level scenarios: block (mapping of id -> overlay) and/or sweep:/sweeps: block can be run as a whole run-set instead of just its base case — see docs/usage.rst for the full walkthrough (GUI split button + caret menu, Scenario Pane, and the CLI's --sweep / --sweep --headless flags).

boulder some_file.yaml --sweep              # GUI, run-set auto-started on load
boulder some_file.yaml --sweep --headless   # no GUI: run every scenario, write
                                             # <config-stem>_scenarios.h5

Development Mode

You can start both the backend and frontend development server with a single command:

boulder --dev

This will:

  • Start the FastAPI backend on port 8050
  • Automatically start the Vite dev server (frontend) with hot-reload
  • Install frontend dependencies if needed (npm install)

Alternatively, run them separately in two terminals:

# Terminal 1: Backend API
uvicorn boulder.api.main:app --reload --port 8000

# Terminal 2: Frontend dev server (auto-proxies /api to port 8000)
cd frontend
npm run dev

Open http://localhost:5173 in your browser.

From Python

import uvicorn
uvicorn.run("boulder.api.main:app", host="127.0.0.1", port=8000)

Notes:

  • Default address is http://127.0.0.1:8050.
  • The API documentation is available at http://127.0.0.1:8050/docs (Swagger UI).

Once running, use the interface to:

  • Upload existing configurations
  • Create new reactor networks
  • Edit properties
  • Run simulations
  • View results

YAML Configuration with 🪨 STONE Standard

Boulder uses YAML format with 🪨 STONE standard (Structured Type-Oriented Network Expressions) - an elegant configuration format where component types become keys containing their properties:

metadata:
  name: "Reactor Configuration"
  version: "1.0"

simulation:
  mechanism: "gri30.yaml"
  time_step: 0.001
  max_time: 10.0

nodes:
  - id: reactor1
    IdealGasReactor:
      temperature: 1000      # K
      pressure: 101325       # Pa
      composition: "CH4:1,O2:2,N2:7.52"

connections:
  - id: mfc1
    MassFlowController:
      mass_flow_rate: 0.1    # kg/s
    source: res1
    target: reactor1

See configs/README.md for comprehensive YAML with 🪨 STONE standard documentation and examples.

Supported Components

Reactors

  • IdealGasReactor
  • Reservoir

Flow Devices

  • MassFlowController
  • Valve

Contributing / Developers

Feel free to submit issues and enhancement requests! Before pushing to GitHub, run the following commands:

  1. Update conda environment: make conda-env-update
  2. Install this package in editable mode: pip install -e .
  3. (optional) Sync with the latest template : make template-update
  4. (optional) Run quality assurance checks (code linting): make qa
  5. (optional) Run tests: make unit-tests
  6. (optional) Run the static type checker: make type-check
  7. (optional) Build the documentation (see Sphinx tutorial): make docs-build

If using Windows, make is not available by default. Either install it (for instance with Chocolatey), or open the Makefile and execute the lines therein manually.

License

Boulder is released under the MIT License.

Copyright (c) 2025 Spark Cleantech SAS

Release files for boulder 0.8.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for boulder 0.8.6
File Size Uploaded
boulder-0.8.6.tar.gz 4.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for boulder 0.8.6
File Interpreter ABI Platform
boulder-0.8.6-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 MB

Release files / boulder-0.8.6.tar.gz

Download URL boulder-0.8.6.tar.gz
Size 4.2 MB
Tags Source
SHA-256 checksum
How to use checksums
1244343d91cc5add19515c76b123f34ab6b4392af0837c18602ec966d5d76ad1
BLAKE2b-256 checksum
How to use checksums
67bbf316b7b1116c3759640c0e98004cbd45a0cc84ff5e34df03ceceab152e9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 2, 2026.

Transparency log

Release files / boulder-0.8.6-py3-none-any.whl

Download URL boulder-0.8.6-py3-none-any.whl
Size 2.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
415fed410dea7b58111eb061f774d323edcfaa5fbcaea9960f9c52ad0578c5ac
BLAKE2b-256 checksum
How to use checksums
29d3210216dd7fe23d0d4ab825e3fe94fa695e0fd266e0b80443b6699c941fe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 2, 2026.

Transparency log

Release history Release notifications | RSS feed

0.12.5

2 release files

0.12.4

2 release files

0.12.3

2 release files

0.12.2

2 release files

0.12.1

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.7

2 release files

This release

0.8.6 This release

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page