Table of Contents toggle
I Built a Flashcard Plugin for Obsidian Because Making Anki Cards Was Too Slow
First I found out about Anki and fell in love with it. The app is so cool and useful, but it had one problem: creating flashcards was not smooth or fast enough for me. So I went looking for an alternative.

The friction of Obsidian → Anki
I found various other similar tools, but nothing as powerful. I use Obsidian for almost everything (notes, project management, journaling), so I directed my search at spaced repetition plugins built for Obsidian. None of them fit. Read the comparision of Lemma with other obsidian plugin.
Before that, I even tried building a plugin that exports Obsidian notes into Anki cards, and it came with friction too. I was too lazy to convert notes into Anki cards and then import them again.
So I did what any frustrated developer with AI in his hands does: I coded the whole plugin. I called it Lemma. Cards stay plain Markdown in your notes, scheduling uses the FSRS algorithm, and it is free, MIT licensed, with no account and no telemetry. It is published in the Obsidian Community Plugins directory, where it has passed 1,000 downloads.
Why keep flashcards in your knowledge base?
Most spaced repetition tools require leaving your knowledge base, exporting notes, and managing a secondary database. With this plugin you don’t have to switch between apps to recall knowledge and brush up on a concept. Lemma lets you create flashcards right inside your notes and review them anytime you want. Edit the note and the card changes with it. That reduces the friction of learning and of retrieving knowledge quickly.
A note is a deck, and a question is a card. Add the tag #flashcards to any note and it becomes a deck. The cards sit next to everything else you have written, and Lemma finds them and keeps its own index. The heading a card sits under is shown above the question, so you remember where it came from.
Because cards are plain text, they stay readable in any editor, with or without the plugin. Nothing is locked into a database you can’t open.
What is FSRS?
FSRS (Free Spaced Repetition Scheduler) is the modern algorithm behind spaced repetition apps like Anki and this plugin. Older tools, including Anki’s original scheduler, used SM-2, an algorithm from 1987. FSRS instead models your personal forgetting curve with the DSR model, short for Difficulty, Stability and Retrievability, and fits its parameters to your own review history.
Lemma uses FSRS-5 through ts-fsrs, an open source pure TypeScript implementation, so there is no Rust and no WASM. For every card it keeps two numbers: how stable the memory is and how difficult the card is for you. From those it estimates how likely you are to still remember it on any given day.
You read the question, reveal the answer, and press Again, Hard, Good or Easy. Lemma updates the two numbers and picks the next due date. Each button shows the interval it will give you, so you can see what your choice does before you make it.
By default Lemma aims for you to remember a card 90 percent of the time when it comes due. In settings you can change that target, the longest interval and the algorithm weights.
Your deck creation workflow
To create a flashcard deck, first create a markdown note in Obsidian. The note must have one of the tags defined in the plugin; for example, flashcards is already defined. Either put tags: [flashcards] in the note’s frontmatter or write #flashcards in the note. With the note in place, you can start creating flashcards with the shortcut Alt+S.
The shortcut inserts a structure that starts with ---card--- ^someid, and front and back are separated with ---:
---card--- ^basic-unique-001
What is the function of the ribosome?
---
Protein synthesis via translation of mRNA.
---end------end--- is optional. It closes the card explicitly, so a heading or note below it stays outside the answer.
You can put anything in a card that Obsidian and the browser can render: mathematics, code, images, callouts, embeds, or anything else you have in mind. You also don’t have to memorize the syntax. A guided creator modal has a format dropdown and a live syntax preview, and commands insert templates with a fresh block ID. There is even a command that wraps selected text in cloze syntax.
The plugin has seven card and study formats built in:
- Basic: the
---card---block above, with several lines and full Markdown on both sides. - Single line:
Question::Answer, a fast card on one line. - Reversed:
Term:::Definition, one card that shows the definition and asks you to recall the term. - Cloze:
==c1::hidden==. Each cloze number in a paragraph becomes its own card, scheduled independently. - Type in:
?type Question::Answer. You type your answer first, Lemma tells you Correct, Close match or Not correct, then you rate yourself. - Image occlusion:
::. The revealed image swaps in at the exact same spot, with no vertical shift, and you can peek back and forth between the two before rating. You supply both images; Lemma does not draw masks. - Whole note: tag a note
#reviewand review it as one item.
The ==c1::Ebbinghaus== forgetting curve shows memory decays without ==c2::spaced repetition==. ^cloze-001A tip: give every card a ^block-id. The IDs are stable keys, so you can edit a card’s content without resetting your progress.

Reviewing: keys, swipes, and mobile
Space or Enter reveals the answer. Then you rate with a key or a gesture:
| Rating | Key | Gesture |
|---|---|---|
| Again | 1 | Swipe left |
| Hard | 2 | Swipe down |
| Good | 3 | Swipe right |
| Easy | 4 | Swipe up |
Swipes work on the phone, and with a mouse drag on the desktop. Misclicked? Press Z to undo the last rating. Esc exits the session.
The plugin is not desktop-only. It has the same dashboard and review screens on iOS and Android, with a full-screen review, safe-area insets and touch-friendly navigation.
The vision: seamless learning inside notes
This plugin is meant to make learning seamless for Obsidian users. You review information right where you wrote it and where it is stored. Obsidian should have this option natively, but no native plugin exists, so Lemma is my attempt at filling that gap.
Study the way you need to
- Dashboard of decks. All your decks in one view with total, due and new counts, grouped by folder. Study what is due, cram a whole deck, or browse its cards.
- Cram mode. Go through all the information in time for exams.
- Daily limits. Set a limit for new cards and for reviews, applied per deck. The defaults are 20 new and 200 reviews.
- Custom study. Filter by tag, by card state (new, learning, due), or by a card limit for exam week.
- Statistics. Retention curves, card maturity, interval histograms and a 30-day activity line.


Backups, import and sync
There is no Lemma account, no Lemma server and no subscription. Here is where everything lives:
- Your cards are text in your markdown notes. Lemma writes to your vault only when you run a command that says so, such as creating a deck, a card, or a backup. Back them up or sync them however you already do.
- Your review history (schedules and review logs) is stored on each device in IndexedDB, through PouchDB. It is not in your notes, so it does not travel with your vault by itself.
- Backup. Export review data writes schedules, history and streak data to one JSON file in your vault. Import review data merges a backup back in on another device.
- Import cards. Import cards from file creates a deck note from a plain text export of another flashcard app, or from a CSV or TSV file. Anki’s own scheduling history doesn’t come along, so imported cards start fresh.
- Sync (optional). To share review history between devices live, point Lemma at a CouchDB or Cloudant server you run or rent. It is off until you turn it on.
On privacy: Lemma has no telemetry, analytics, ads or crash reporting. It indexes Markdown notes only, and the only network connection it makes is the optional CouchDB sync. One thing to know before you set that up: the CouchDB password is saved in the plugin’s data.json file, and Obsidian doesn’t encrypt that file. Use a dedicated CouchDB user that can reach only the sync database, and use an https:// URL. An http:// URL sends your credentials and review data in clear text.
Install
Lemma needs Obsidian 1.4.0 or newer.
- In Obsidian, open Settings, then Community plugins. Turn off Restricted mode if it is on, choose Browse, search for Lemma, then Install and Enable.
- Add the
#flashcardstag to a note. That note is now a deck. - Write a card on one line:
What is spaced repetition?::Reviewing at growing intervals. - Open the dashboard from the ribbon icon, the status bar on desktop, or the command palette (Open dashboard). Press Study all due.
You can also install by hand: download main.js, manifest.json and styles.css from the latest GitHub release, put them in .obsidian/plugins/lemma-flashcards/ inside your vault, then restart Obsidian and enable Lemma.
Demo of the plugin
- Website: lemma.fundaments.work
- Docs: fundaments.work/docs/lemma
- Source: github.com/Fundaments-Work/Lemma
Lemma is MIT licensed.
If you’ve been looking for modern spaced repetition inside Obsidian, give it a try. If you have an idea, send a pull request, and open an issue if something breaks. And if it helps your studies, you can buy me a momo.