Static, local-first Nostr workout tracker PWA.
The source of truth for this project is docs/instruction.md.
This is a separate product from the self-hosted Workstr server app. It uses Vite, TypeScript, IndexedDB, Workstr-managed local-key accounts, and GitHub Pages/static hosting.
For repository work, use MODULES.md to locate the code and tests that own
a behavior.
npm install
npm run dev
npm run modules
npm test
npm run build
npm run check
npm run smoke:browsernpm run modules performs the fast architecture check configured in
scripts/module-policy.json: documented paths, module-size growth, generic filenames,
and cross-feature imports are enforced; documentation/test matching and broad imports
are reported as non-blocking warnings. Existing oversized modules may shrink or stay
stable but cannot grow past their recorded baseline.
Run npm run check before handoff or review. It runs the module check, the test suite,
and the production TypeScript/Vite build. .github/workflows/check.yml runs the same
command for pull requests and pushes to main, feature/**, and fix/** branches.
npm run smoke:browser separately builds and opens the isolated browser-smoke page on a
loopback origin. Its mock signer, mock publisher, and empty relay list prevent fixture
actions from reaching public Nostr transport; the command also verifies that the normal
production build does not emit the smoke entrypoint.
src/assets/monero-symbol.png is the official Monero symbol from the Monero project's
press kit. It is bundled rather than hot-linked, and the
only changes to it are a resize and a palette reduction - the geometry and colours are the
project's own. It is drawn in the centre of Monero receive codes and nowhere else.
- PWA shell
- Workstr account creation/restore showing npub
- IndexedDB namespace per pubkey
- Offline reload
- Core typed contracts and tests