Skip to content

Getting Started

cfasim-ui is a Vue 3 component library for building interactive simulations. It runs your model — written in Python or Rust — directly in the browser using Web Workers.

Packages

PackageDescription
@cfasim-ui/componentsAccessible UI components built on reka-ui
@cfasim-ui/chartsSVG charting components (LineChart, ChoroplethMap, DataTable)
@cfasim-ui/themeDesign tokens, reset, and utility classes
@cfasim-ui/pyodideRun Python models in the browser via Pyodide
@cfasim-ui/wasmRun Rust/WASM models in the browser

Choose your guide

Follow the guide for the language your model is written in:

  • Python Projects — Vite + Vue + Pyodide. Write your model in Python, build it as a wheel, and run it in the browser.
  • Rust Projects — Vite + Vue + WebAssembly. Write your model in Rust, compile to WASM, and run it in the browser.

Both guides walk through project setup, model creation, Vite configuration, and wiring up the UI from scratch.