A single-user flashcard study app. Installable PWA built for an 8th grader drilling for finals on iPhone. Decks are JSON files bundled at build time — no backend, no auth, no runtime AI.
- Vite + React + TypeScript
- Tailwind CSS v4
react-markdown+ KaTeX for Markdown/LaTeX card renderingvite-plugin-pwa(Workbox) for offline + Add-to-Home-Screen- Deployed as a static site to GitHub Pages
npm install
npm run devOpens at http://localhost:5173/studybuddy/ (note the base path). Hot-reloads on deck JSON edits.
To test on a phone on the same Wi-Fi: npm run dev -- --host and open the LAN URL in mobile Safari.
Production smoke test (service worker active): npm run build && npm run preview.
Pushing to main triggers .github/workflows/deploy.yml, which builds and publishes to Pages. Live at https://ytsaig.github.io/studybuddy/.
First-time setup: in repo Settings → Pages, set Source to GitHub Actions.
- Open https://ytsaig.github.io/studybuddy/ in Safari.
- Share → Add to Home Screen.
- Launch from the home-screen icon — runs standalone, works offline after first load.
Drop a JSON file matching the Deck type into src/decks/:
{
"id": "unit-8-radicals",
"name": "Unit 8: Radicals",
"createdAt": "2026-05-15",
"cards": [
{ "front": "Simplify $\\sqrt{50}$", "back": "$5\\sqrt{2}$" }
]
}Decks are auto-discovered via import.meta.glob in src/decks/loader.ts — no registration needed. They sort newest-first by createdAt.
The create-deck skill converts source material (PDFs, images, or URLs like Blooket sets) into deck JSON. In Claude Code, invoke /create-deck and point it at the source.