This folder is the static GitHub Pages app.
Runtime files:
index.htmlapp.jsstyle.cssi18n/*.jsoncardboxgen_bundle.pygenerated bypython tools/sync_docs.pyfabrication_model.mdgeometry_hardening_audit.mdcamera_qr_sharing.mdwiki/*.mdversioned GitHub-wiki source pages
The app loads Pyodide in the browser and imports cardboxgen_bundle.py. No backend is required. Export is disabled when Python validation reports blocking geometry errors.
The app also supports project handoff without a backend:
- share links with
cfg=...; - pasteable
CBG1:project/location codes; - optional QR scanning when the browser grants camera permission;
/exec/redirect for direct browser launch.
If camera permission is blocked, use the project code fallback. See camera_qr_sharing.md.
The wiki/ folder contains wiki-ready Markdown pages:
Home.mdTemplate-Reference.mdValidation-and-Testing.mdCLI-and-Python-API.mdFabrication-Model.mdCamera-QR-and-Project-Codes.mdRunning-and-Deployment.mdContributing.md
If the GitHub wiki repository has not been initialized yet, create its first page in the GitHub UI, then copy or push these pages to the wiki repository.
From the repo root:
python tools/sync_docs.py
python -m http.server 8000Open http://localhost:8000/docs/.
python tools/sync_docs.py --checkThis fails if docs/cardboxgen_bundle.py no longer matches the package source.
CardBoxGen treats kerf as the full width removed by the cut and stores the computed burn radius, tab/slot fit values, and validation limits in SVG metadata. See fabrication_model.md for the sign convention and calibration workflow.
The Pages workflow uploads docs/ as the deploy artifact. In GitHub repository settings:
- Settings -> Pages
- Source: GitHub Actions
Live app:
https://sunnydesigntech.github.io/CardBoxGen/
Direct execution/classroom launcher entry: