arena/094f314c-aram
Aram Pilot Workbench — Browser Edition
A permanent, server-free build of the pilot workbench that runs entirely in the
user's browser (mobile-first, Persian RTL). It executes the exact same tested
Python engine as the backend — pilot_workbook.py, pilot_engine.py,
pilot_editing.py, pilot_demo.py, pilot_store.py — inside
Pyodide (Python 3.12 + openpyxl compiled to WebAssembly).
No financial logic is reimplemented in JavaScript.
Layout
index.html,styles.css,app.js— UI shell (same UX asbackend/src/aram_backend/static/pilot/).bridge.py— JSON-in/JSON-out dispatcher mirroringpilot_api.pywithout FastAPI.../scripts/build_webapp.py— assemblesdocs/(UI + unmodified engine copies +.nojekyll).
Rebuild
python scripts/build_webapp.py
The docs/ folder on this branch is the GitHub Pages source, so the app is
served at https://davoodmehraban89.github.io/Aram/.
Runtime
On first load the page fetches the Pyodide runtime (jsDelivr, with an unpkg
fallback), installs the vendored pure-Python wheels in vendor/
(openpyxl + et_xmlfile, extracted straight into site-packages — no PyPI or
micropip needed), then loads the engine modules from py/aram_backend/. All
data stays in the browser's memory; the durable artifacts are the downloaded
workbooks (ذخیرهٔ کارگاه is a lossless, re-uploadable v0.1 workbook).
Permanent links (no setup required)
The bundle is served verbatim, with correct MIME types, at commit-pinned URLs:
https://rawcdn.githack.com/davoodmehraban89/Aram/<commit>/docs/index.htmlhttps://cdn.jsdelivr.net/gh/davoodmehraban89/Aram@<commit>/docs/index.html
If the owner enables GitHub Pages (Settings → Pages → Source: GitHub Actions),
dispatch .github/workflows/pilot-pages.yml to also publish at
https://davoodmehraban89.github.io/Aram/.
Verification
- Bridge parity + full workflow tested under Node + Pyodide 0.26.4 (same version as the CDN).
- Round-trip: export workspace → re-upload preserves accounts, mappings, approvals, totals.
- Balance semantics: one-sided entries fail the balance check honestly; balanced pairs restore it.
- Error paths: invalid workbook → structured preflight issues; duplicates → 409-style errors.