
Finspire — Interactive Financial Literacy PWA
- Category
- EdTech PWA
- Role
- Fullstack & Systems Engineer
- Year
- 2026
- Development Team
- Arrasyd Nanda FairuzReifan Putra PratamaFaiz Baraka Putra
An interactive story-driven financial literacy PWA for Indonesian youth featuring mascot Foxy. Built collaboratively by Arrasyd Nanda Fairuz, Reifan Putra Pratama, and Faiz Baraka Putra (Team PatangPuluhPatang) — 3rd Place National Winner at JHIC 2.0.
Background & Problem
Financial literacy education for teens and young adults (ages 16–24) often feels overly theoretical and disconnected from daily spending decisions. Finspire (private production-pilot repository) was built collaboratively by Arrasyd Nanda Fairuz, Reifan Putra Pratama, and Faiz Baraka Putra (Team PatangPuluhPatang) to turn personal finance into an interactive narrative simulation combining a multi-account virtual wallet, decision mini-games, and gamified progression so concepts like budgeting and pay yourself first stick through practice.
Architecture & Key Features
- Narrative Engine & Multi-Account Simulation: Drives interactive scene graphs (Chapter 1 Keep It Alive and Chapter 2 Pay Yourself First), Foxy mascot dialogues, XP/coin/streak mechanics, and mastery artifacts.
- JSON Schema Content Governance: Every content release pack is validated against a JSON Schema Draft 2020-12 contract (
validate-content.mjs) and verified via SHA-256 manifest checksums incontent-loader.tsto guarantee disk-to-database integrity. - Serializable ACID Sync & Modern Auth: Built with Next.js 16, React 19, Drizzle ORM + PostgreSQL, and Better Auth (including Google OAuth and DB-backed rate limits), with strict serializable transactions in
sync-handler.tsfor consistent gameplay state. - Layered Automated Testing: Covers content validator regression tests, unit tests, and PostgreSQL integration tests protected by a dedicated
TEST_DATABASE_URLDB guard.
Technical Decisions & Trade-offs
- Strict Serializable Transactions for Gameplay Sync: Enforcing serializable isolation in PostgreSQL for score, energy, and virtual ledger updates prevents duplicate state mutations under concurrent requests, at the cost of clean serialization-conflict retry handling.
- Schema-Validated Content Packs vs Hardcoded UI: Decoupling story chapters into validated JSON packs increases initial tooling setup, but allows educators and content authors to audit and ship new chapters without touching core engine code.
- Bug Notes & Fixes: Early content validation triggered false positives against the canonical PRD spec and concurrent progress syncs risked duplicate wallet mutations; resolved via schema reconciliation (
test-validator-regressions.mjs), strict serializable transactions insync-handler.ts, and SHA-256 manifest verification incontent-loader.ts.