Skip to content

Frontend Demo — Local

In demo mode, YAPTIDE runs entirely in the browser. Geant4 is compiled to WebAssembly and executes locally — no backend, no login, no internet connection needed after the initial load.

ScenarioRecommended setup
Frontend / Geant4 in-browser onlyThis page
Full stack with SHIELD-HIT12A or FLUKALocal Celery
Full stack with SLURM clusterLocal SLURM
  • Node.js 20+ with npm
  • Python 3.9+ with pip and venv — needed to build the converter into a Pyodide/WebAssembly module
  • Git

Clone the frontend repo:

Terminal window
git clone https://github.com/yaptide/ui.git

Navigate to the ui directory:

Terminal window
cd ui

Pull the converter submodule. The converter is a standalone Python package that translates the editor’s JSON project format into native input files for simulation engines:

Terminal window
git submodule update --init --recursive

Install frontend dependencies:

Terminal window
npm install
Terminal window
npm run start-demo

Open http://localhost:3000/web_dev.

You get the full editor experience — geometry, beam, scoring, input file generation — plus Geant4 WebAssembly for in-browser simulation. No login required.

Terminal window
npm run build-demo

Output goes to build/.

CommandDescription
npm run start-demoDemo mode (no backend)
npm run build-demoProduction build with demo mode
npm run formatRun code formatter
npm run testRun tests in watch mode