Offline-ready web & mobile calculator for base-12 arithmetic.
All code is written by AI, using Antropic Codex under my guidance. Codex configuration is stored in file CODEX.md.
Digit sets toggle: support both classic X,E and A, B. No glyphs are used at the moment.
Input model: keep an internal rational representation (numerator/denominator bigint).
Formatting: convert rational → dozenal string only at render time.
Keyboard & a11y: full keyboard support, ARIA roles for buttons, big tap targets.
Language: TypeScript
UI framework: Svelte (with Vite)
Styling: Tailwind CSS
PWA: vite-plugin-pwa (Workbox under the hood)
Testing:
- Unit: Vitest
- Property-based: fast-check (great for number systems)
- E2E/UI: Playwright
Precision math: fraction.js (rational arithmetic) or roll your own tiny rational type with bigint
npm i -D svelte-preprocess
npm run dev
npm test
npm run build && npm run preview