Flashcard SM-2 scheduler
Review flashcards card by card: paste your own deck (TAB, `::`, `|` or comma separated, `##` groups, `{{c1::answer}}` cloze) or start from the built-in sample deck, flip each card and rate it known or forgotten — SM-2 computes the next interval and EF, and progress, recall rate and the seed fingerprint all come from the real session.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
How many cards one round reviews; a number above the deck size is rejected.
The same seed with the same deck always draws the same order; a new seed gives another order.
Flashcard review
Press flip to see the answer, then rate it known or forgotten. Keyboard: space flips, left and right change cards, K is known, J is forgotten.
- Cards
- 5
- Reviewed
- 0 / 5
- Known
- 0
- Forgotten
- 0
- Recall rate
- 0.00%
- Left
- 5
- Current interval
- 0 d
- Seed
- flashcard
- Seed fingerprint
- ba35d2bd
What this tool does
- Learn vocabulary or terminology: paste a front/back list, press load, and review card by card — known and forgotten really drive SM-2.
- Review one group at a time: `## name` starts a group (English words, facts, git commands) and the group selector draws from just that group.
- Bring an existing deck: TAB, `::`, `|` and commas all separate columns, and `{{c1::answer}}` turns a line into a cloze card whose front shows `[...]`.
- Sanity-check your schedule: every interval and EF is computed by the SM-2 formula (known = 5, forgotten = 2) rather than estimated.
Example
Input
The built-in sample deck (5 cards), seed `flashcard`, card count left empty (up to 10); rate card 1 known and card 2 forgotten
Output
Round order: 中国的首都是[...]。 → 键盘 → 香蕉 → 苹果 → 水在标准大气压下的沸点是[...]。 Card 1 known: next interval 1 day · EF 2.60 (quality 5) Card 2 forgotten: interval reset to 1 day · repetitions zeroed · EF 2.18 (quality 2) Progress: 2 / 5 reviewed · recall rate 50.00% · 3 left
The order and the seed fingerprint are real values: seed `flashcard` hashes to `ba35d2bd` and the same seed with the same deck always draws the same order (with `42` it becomes 苹果 → 中国的首都是[...]。 → 香蕉 → 水在… → 键盘, fingerprint 89a6b4b1).
Frequently asked questions
How do I review?
The page opens with the built-in sample deck loaded. Click the card (or press space) to flip to the back, then press known or forgotten. You cannot rate a card before flipping it, and after each rating the round moves on to the next card you have not reviewed yet. When every card is rated you get the round-finished panel.
What are the keyboard controls?
Click the card area once so the board has focus, then: space flips, left and right move between cards, K is known and J is forgotten. Clicking a numbered chip in the round queue jumps straight to that card, and undo reverts the last flip or rating.
What do known and forgotten mean for the schedule?
Known is SM-2 quality 5 and forgotten is quality 2. Anything below 3 counts as a lapse: repetitions reset and the interval goes back to 1 day. Otherwise the first repeat is 1 day, the second 6 days, and after that round(previous interval × EF), with EF updated by EF' = max(1.3, EF + 0.1 − (5−q)×(0.08 + (5−q)×0.02)).
Is the review order reproducible?
Yes. Cards are drawn with the same seeded PRNG used across the site (xorshift128 plus a Fisher-Yates shuffle). The seed defaults to `flashcard` and you can change it. Leaving the card count empty means up to 10 cards; a number larger than the current group is rejected instead of being silently clamped.
What format should my own deck use?
One card per line: front, then back, then optional tags separated by TAB, `::`, `|` or a comma (commas follow CSV quoting rules). `## name` starts a new group. A single-column line must contain a `{{c1::answer}}` blank, otherwise the line is skipped and its line number is reported. At most 500 cards; more is an error.
Is my deck uploaded?
No. Importing, flipping and the SM-2 maths all run in your browser: no network requests, nothing written to local storage (a refresh returns to the sample deck). LaTeX is not rendered either — formulas are kept as plain text.
Keywords:flashcardSM-2spaced repetitionLeitnerreview