A Prompt for a Study Flashcards App
A flashcard app is a scheduling problem wearing a card costume. This brief gets the schedule right first, then makes reviewing feel quick.

Key takeaways
- Name the review schedule in the brief. A simple box system with fixed intervals is easy to understand, test and explain to students.
- Store every review as a row. You can change the schedule later and recompute, and you get honest stats for free.
- CSV import on day one decides whether people bring their existing cards or leave.
This prompt builds a study flashcards app for exam season: decks of question and answer cards, a daily review session that shows each card when it is due, a simple spaced repetition schedule you can explain in one sentence, and import from a spreadsheet so nobody types two hundred cards by hand. Copy the brief, paste it into Startbase, and keep reading for the reasoning, the next prompts and the usual fixes.
Copy the brief
Build a study flashcards web app for students, focused and distraction-free, works well on a phone. Use Startbase Cloud for sign-in (email and password) and data. Data: decks (owner, name, description, color), cards (deck, front text, back text, optional hint, created_at), card_state (card, box from 1 to 5, due_date), and reviews (card, user, result: again or got it, reviewed_at, seconds taken). Schedule: a new card starts in box 1. Got it moves the card up one box; Again sends it back to box 1. Due intervals by box: 1 day, 3 days, 7 days, 14 days, 30 days. Screens: 1) Home: today's due count across all decks, a Start review button, my streak of days with at least one review, and a daily goal (default 30 cards) with a progress ring. 2) Decks: list with due and total counts per deck. 3) Deck page: card list with box number, add and edit cards, and Import CSV (two columns: front, back; first row may be a header; preview before import). 4) Review: show the front, tap to flip, then Again or Got it; keyboard shortcuts space to flip, 1 for Again, 2 for Got it; end with a summary. 5) Stats: reviews per day for 30 days and cards per box. Each user sees only their own decks. Out of scope: shared or public decks, images and audio on cards, AI card generation, and classes or teachers.
Why these lines matter
The schedule is spelled out to the day. Spaced repetition has many versions, from simple box systems (often called the Leitner system, after the person who popularized physical card boxes) to adaptive algorithms that compute a new interval for every card. If you leave it open, the agent picks one, and you will not be able to tell whether a card showing up today is a bug or a feature. Five boxes with fixed intervals is easy to test: answer Got it, check the due date moved three days.
- card_state separate from cards: the card is the content; its box and due date are your progress. Keeping them apart means editing a typo does not reset your progress, and a shared-decks version later can give each learner their own state.
- Reviews as rows: stats, streaks and any future schedule change all come from this table. If you later decide intervals should be different, you can recompute from history.
- Two buttons, not four: some apps offer Again, Hard, Good and Easy. Two buttons are faster on a phone and harder to game. You can add more once you see how people use it.
- Keyboard shortcuts: students review on laptops at night. Space, 1 and 2 make two hundred cards feel quick.
- CSV with preview: people already have cards in spreadsheets or other apps. A preview step catches a swapped column before it creates two hundred backwards cards.
- A daily goal and streak, not points: a goal gives a finish line for today. The streak counts days, not cards, so one review keeps it alive on a bad day.
The three follow-ups to send first
- 01"Add a reverse mode per deck: when on, each card is also asked back to front, with its own box and due date."
- 02"Add a cram session for a deck that ignores due dates and shows every card once in random order, without changing boxes or due dates."
- 03"Send me a reminder email at 6 pm in my time zone on days when I have cards due and have not reviewed yet. Let me turn it off in settings."
Reverse mode is the first request from anyone learning vocabulary. Cram mode exists because exams do not care about your schedule, and it must not wreck the spacing data. The reminder email is the only nudge most web apps can count on. In Startbase Cloud it is a scheduled job plus an email: jobs run on a schedule inside your database (in UTC, so the agent has to convert from each user's time zone), and your app can send email through the platform sender with no keys once the App AI gateway is on, within a daily per-project limit, or through your own domain when you outgrow it.
Two variations
A language deck with audio
Add to the brief: "Cards can have an audio file on the back. Store audio in a private storage bucket. In review, play the audio automatically after the flip, with a replay button." Record your own audio or upload clips you have the rights to use. Pair it with reverse mode and you have a vocabulary trainer.
Cards drafted from your notes
Add an AI step: "On a deck, I can paste my lecture notes. An AI call returns up to 20 question and answer pairs as structured JSON. Show them as drafts I can edit, keep or discard before they become cards." Keep drafts out of review until approved: generated cards are often too long or test trivia, and a human pass fixes both. The App AI gateway handles the call without API keys in your app, and text calls spend runtime usage, so set a cap first.
Usual problems and how to word the fix
- Cards due "today" appear tomorrow, or twice. Dates stored as timestamps in UTC shift across midnight. Ask: "Store due_date as a date, compute today in the user's time zone, and count a card as due when due_date is today or earlier."
- Review shows the same card twice in a row. Ask: "When I press Again, put the card back at least five cards later in this session, not next."
- Import creates backwards cards or merges commas. Ask: "Parse CSV properly, including quoted fields that contain commas and line breaks, and let me swap columns in the preview."
- The streak resets at the wrong time. Ask: "A streak day is a calendar day in my time zone. Show yesterday as done if I reviewed before my local midnight."
- Editing a card resets its progress. Check that edits change cards only. Ask: "Editing a card's text must not touch card_state."
When it is ready to share
Use it yourself for a week of real study first; a flashcard app proves itself on day four, when the first cards come back. Then publish it to a startbase.app address in one click and send the link to your study group. Each person signs up and keeps their own decks.
For the deeper explanation of spaced repetition, card design and what makes study apps stick, read how to build a flashcard app. The reminder email relies on two backend pieces: scheduled jobs and sending emails from your app. The Jobs docs show where to switch the reminder on and off and read its run history.
Frequently asked questions
What is the Leitner system for flashcards?
It sorts cards into numbered boxes. A card you get right moves to the next box, which is reviewed less often; a card you miss goes back to the first box. It is a simple, explainable form of spaced repetition.
Is a box system as good as an adaptive algorithm?
Adaptive algorithms can space reviews more efficiently, but a box system is easier to understand and test, and it works well for most students. Store every review so you can switch schedules later without losing history.
Can I import my existing flashcards?
Most apps can export cards as CSV. A two-column import (front and back) with a preview step brings them in and catches swapped columns before anything is saved.

