⚠️ Prerequisite: Anki must be running with the AnkiConnect extension installed and active.
- Install from AnkiWeb
- More details: AnkiConnect homepage
Simple Anki Sync for Obsidian delivers the most straightforward way to keep your flashcards in sync without ever breaking your flow. By using a single, minimal Markdown-table format and supporting only Basic cards, you’ll spend zero time tweaking settings and 100 % of your time learning.
With a single command, you can instantly push your notes to AnkiConnect—no background daemons, no surprises. Just run a command to sync the entire vault or your current file, and watch your flashcards update in seconds. Study smarter, stay focused, and let the plugin handle the rest.
For useage make sure Anki is running & User the following commands:
Sync current file With Anki
Sync entire vault With Anki
installation.mp4
-
Open Terminal in Obsidian Plugins Folder:
- Navigate to your Obsidian vault's plugin folder in your terminal or command prompt. This is usually located at:
<YourVault>/.obsidian/plugins/ - For example:
cd path/to/your/vault/.obsidian/plugins/
- Navigate to your Obsidian vault's plugin folder in your terminal or command prompt. This is usually located at:
-
Clone the Repository:
- Clone this repository directly into the
pluginsfolder:git clone https://github.com/lukmay/simple-anki-sync.git
- Clone this repository directly into the
-
Navigate into Plugin Folder & Build:
- Change directory into the newly cloned plugin folder:
cd simple-anki-sync - Run the following commands to install dependencies and build the plugin:
Then:
npm install
This will create the necessarynpm run build
main.jsfile within thesimple-anki-syncfolder.
- Change directory into the newly cloned plugin folder:
-
Enable in Obsidian:
- Ensure Anki is running. (And the AnkiConnect add-on is installed and configured in Anki).
- Restart Obsidian or reload its plugins (e.g., by toggling "Community Plugins" off and on).
- Go to
Settings > Community pluginsin Obsidian. - Find "Simple Anki Sync" in the list and toggle it on.
Commands:
Sync current file With Anki
Sync entire vault With Anki
Sync any minimal Markdown table from Obsidian into Anki as Basic cards. Just tag your note with the deck name and subdeck:
#anki/MyDeck/Subdeck
Then write your cards in this format:
| Front |
| ----- |
| Back |You can even include line breaks and images in-editor:
| Front with math: $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$ |
| -------------------------------------------------------------- |
| Back<br><br>With newlines, and images<br>![[example_tree.png]] |Run the Sync Anki Cards command, and your cards—with proper deck/subdeck handling—appear in Anki instantly.
- Deck renaming
Rename your#anki/…tag and on next sync all existing cards move into the new deck automatically. - Image support & resizing
Embed images on either side using![[image.png]]and control their display size inline eg.![[image.png|300]]. - Math auto-formatting
Dollar-delimited LaTeX in Obsidian becomes nicely rendered in Anki. - Automatic deletion
Delete a card in Obsidian and the corresponding Anki card is removed on sync. IMPORTANT: don't delete the Anki-ID below manually - Backlinks
Each card carries a URL back to its source note for easy context retrieval. - Anki-Tags
Each card in Anki has a assigned tagobsidian_simple_anki_sync_createdto easely filter for this automatically created cards.
showcase.mp4
#anki/Physics/Quantum <-- never forget to set a deck!
Welcome to your quantum mechanics flashcards. Write each card as a minimal Markdown table, then run Sync Anki Cards.
| What is the Heisenberg uncertainty principle? |
|---|
| It states that you cannot simultaneously know the exact position and momentum of a particle. |
| Solve for |
|---|
| Use the plus/minus to get both roots: |
| What does a particle-in-a-box wavefunction look like? Label the nodal points. |
|---|
| See diagram: ![[particle_box.png]] The (n)th state has (n-1) nodes. |
Note you can set the size of images as following:
![[particle_box.png]] <-- default
![[particle_box.png|200]] <-- resized
To remove a card from Anki, simply delete its table (or row) here. On next sync, the card will vanish from Anki too.
Every card you sync will carry a URL back to this note so you can jump right back to your source.
Happy studying!




