Menu

What I learned building an AI study app with Next.js 16, Supabase and FSRS
📰

What I learned building an AI study app with Next.js 16, Supabase and FSRS

DEV Community: nextjs·M Kashif Iqbal·11 days ago
#LZcgXnO3
#devtonextjs#devto#dev#question#mind
Long article (473 words) — no AI summary yet.
Reading 0:00
15s threshold

I'm Kashif, and for the last few months I've been building StudyCove , an app that turns lecture PDFs into flashcards, practice quizzes, timed mock exams, mind maps and a daily study plan.

This isn't a launch post. It's the handful of things that bit me while building it, in case they save you a weekend.

The stack

Next.js 16 + React 19 (App Router, Server Actions)

Supabase for Postgres, auth (Google OAuth) and row-level security

unpdf to pull text out of uploaded PDFs

ts-fsrs for spaced-repetition scheduling

Mind Elixir for the editable mind maps

Cloud Run for the app, Cloudflare in front

1. Don't write your own spaced-repetition scheduler

My first version used a hand-rolled SM-2 variant. It "worked", but intervals drifted in weird ways once people skipped a few days. Switching to FSRS via ts-fsrs fixed it, and the library handles the awkward cases (lapses, relearning, overdue cards) better than I would have.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.