Development
Three-repo architecture
The platform is split into a Next.js App Router web app, an Express API server, and a Next.js admin console. The web app handles the learning experience and UI, the API handles data access and game logic, and the admin console manages decks, categories, and user insights. Supabase provides authentication and Postgres storage across all three.
Learning flow and Flash Map
Flash Map is the guided roadmap for Kanji study. Users choose a JLPT level and chapter, then progress through phases like cards, repetition, quiz, and match. Each step is validated sequentially so learners cannot skip ahead, and progress is stored in a structured chapter_progress model with resume points.
Spaced repetition engine
The SRS system uses quality scoring (again, hard, good, easy) to drive interval changes, ease factor updates, and next review dates with a hard cap on long intervals. Reviews are scheduled by user-local days, and the dashboard shows a review calendar with upcoming and expired sessions. Deck reviews use SRS sessions so users can study in blocks without losing context.
Gamification and retention
The app includes XP, ranks, streaks, and a lives system. Expired reviews trigger penalties, and completed sessions reward XP and restore hearts. Daily Kanji cards, Pomodoro timers, and victory or loss modals keep the study loop motivating and clear.
Study tools and AI
Flash Kanji includes a dictionary that merges Kanji, Jukugo, and deck card results, a Furigana reader powered by Kuromoji tokenization, a Hiragana/Katakana converter, and a stroke-order viewer. Gemini AI generates mnemonics and example usage inside detail modals, and text-to-speech supports pronunciation practice. A writing board built with perfect-freehand lets users practice stroke shapes directly in the browser.
Auth and access control
Supabase handles Google and email sign-in, and a Next.js middleware proxy protects learning routes until profiles are created. The API validates Supabase tokens, and admin-only endpoints are restricted with an allowlist. WaniKani keys are stored encrypted and used to enrich Kanji detail views.
PWA and localization
The web app ships as a PWA with offline fallback and aggressive cache behavior for smoother study sessions. Next-Intl powers the multi-locale routing and metadata, so SEO and copy stay aligned across English, Japanese, and Myanmar.
Testing and reliability
The SRS engine and kana conversion utilities are covered with Jest tests to prevent regressions in scheduling logic and reading helpers.
Preparation
Data modeling and pipelines
Supabase schema covers Kanji, Jukugo, decks, SRS tables, progress tracking, and user profiles. Import scripts ingest the Joyo Kanji CSV and WaniKani subject IDs, ensuring consistent seed data and future enrichment paths.
API design
The Express server exposes REST endpoints for Kanji, Jukugo, quizzes, decks, progress, and admin operations. OpenAPI documentation is served via Scalar, making it easy to test and extend the API surface.
Designing
The UI is built around a warm orange theme with card-first layouts that keep study content scannable. Flash Map and dashboard views focus on clarity, while detail modals provide depth without breaking the learning flow. Onboarding tours guide new users through the roadmap, dashboard stats, and deck selection.
Methodology (Academic + Engineering)
I followed DSDM Atern (Agile) with:
- iterative development (timeboxing),
- MoSCoW prioritization to focus on Must-Have learning features first,
- regular prototype testing and usability feedback loops.