Skip to content

Getting Started

Getting Started is the second page in Start Here. It takes you from a Python DSL example to .fluxion.json, then previews that output in the Web Runtime / Playground.

To try Fluxion without installing anything, open the hosted GitHub Pages playground first. Until the repository owner is known, the expected URL format is https://<owner>.github.io/Fluxion/playground/.

The hosted playground lets you enter Text DSL, compile it in the browser, inspect playback / scrubbing, and read the generated JSON. Use it as the first path for understanding the DSL-to-IR flow before building the runtime or site locally.

From the repository root:

Terminal window
PYTHONPATH=python python examples/simple_circle.py

This writes examples/simple_circle.fluxion.json from the Python DSL example.

Terminal window
cd web
npm ci
npm run build

Return to the repository root and run:

Terminal window
python -m http.server 8000

Open http://localhost:8000/web/, edit the Text DSL, and preview it with live compile, playback controls, scrubbing, and generated JSON output.

The Astro site lives in site/. Build the runtime first so the playground can be copied into the site artifact.

Terminal window
cd web
npm run build
cd ../site
npm ci
npm run build
npm run preview

The site build copies web/index.html, web/dist, and the generated example JSON into site/public/playground/ before producing site/dist/.