# My Swahili Flashcard App
Personal Swahili vocabulary flashcard PWA. Offline-first, iPhone-first, no
backend. See build-doc.md for the full requirements.
## Commands
```sh
npm install
npm run dev # dev server
npm run build # production build -> dist/ (includes service worker)
npm run preview # serve the production build locally
npm run build:dict # regenerate public/dictionary.json from kaikki.org
# (downloads ~77 MB to scripts/.cache/ on first run)
```
## Deploying
Any static host (Cloudflare Pages / Netlify / GitHub Pages). Build command
`npm run build`, output directory `dist`. HTTPS is required for the service
worker. Then on the iPhone: open in Safari → Share → Add to Home Screen.
Backups: Settings → Export JSON. Treat exports as the real backup — iOS can
evict browser storage.
Dictionary data from kaikki.org (Wiktionary extract),
CC-BY-SA / GFDL.