Everything you need to create gratings, run simulations, and plot results inside Grax Web.
The active workspace root is {{ workspace_root }}. By default, Grax Web stores data in
.grax-web/ in the current working directory unless you switch the workspace from the home page.
Grax Web keeps all local state under the active workspace directory. The default workspace is
.grax-web/ next to where you launch grax-web.
saved_gratings/One JSON file per saved grating spec.runs/One run directory per simulation, with manifests and CSV outputs.plots/Saved comparison plots and their manifests.previews/Temporary and live preview images shown in the browser.The workspace can be changed from the home page. When you switch workspaces, the app reads and writes future gratings, runs, and plots in the new location.
saved_gratings/<grating-id>.json.After saving, the grating detail page lets you edit the profile, review the preview image, or delete the grating. Saved gratings are the starting point for simulations.
Each run gets its own directory under runs/<run-id>/. The manifest records the workflow, grating
metadata, selected orders, and progress state. The run directory also stores the result CSV files and generated
preview images for that run.
plots/<plot-id>/.The saved plot page shows the rendered image together with the selected runs and orders so you can trace exactly how the comparison was assembled.
Exported plot images are copied from the live preview so the saved file matches what you saw in the browser.
If you want to change the Web UI, these files control the main moving parts:
src/grax/web/app.py: routes, workspace behavior, simulation wiring, and runtime page data.src/grax/web/templates/*.html: page text, layout, and button placement.src/grax/web/static/web.css: styling and responsive layout.src/grax/web/static/web.js: client-side preview and form interactions.src/grax/web/persistence.py: how gratings are stored and reconstructed from JSON.src/grax/web/runs.py: run manifests, result loading, and comparison plot saving.
To change the default workspace folder, edit the create_app() setup in
src/grax/web/app.py. To change the docs itself, edit this template and the matching external docs
notes in docs/index.md and docs/installation/web-ui.md.