🥷
gagan@mesa — open works/… — claude code
Index
032025AI flashcards · Spaced repetition

Kortex

Next.js app that ingests PDFs and generates spaced-repetition flashcards with Google Gemini — SM-2 scheduling, learn/practice flows, streaks, and a social feed. Neon Postgres, serverless on Netlify.

Detail

Next.js 14 app that ingests PDFs, extracts content with `pdf-parse`, and generates spaced-repetition flashcards using Google Gemini — scheduled with SM-2, the same algorithm Anki uses.

Originally built on a server-side SQLite file; migrated to Neon serverless Postgres (dedicated schema, HTTP driver) to run fully serverless on Netlify. Card quality reviewed with a companion prompt eval loop.

Stack
  • Next.js
  • TypeScript
  • Neon Postgres
  • Google Gemini
  • Zod
  • Netlify
Next
Self-Healing ML Pipeline
All works