Simple Anki Sync

by Lukas Mayr
5
4
3
2
1
Score: 49/100

Description

The Simple Anki Sync plugin provides an efficient way to push Markdown-based flashcards directly into Anki using AnkiConnect. It supports syncing individual files or entire vaults with a single command, handling deck and subdeck structures via tags like #anki/MyDeck/Subdeck. Flashcards are written as minimal Markdown tables and can include LaTeX math, images with size adjustments, and line breaks. Quality-of-life features include automatic deck renaming, backlinks to source notes, and tag assignment for easy filtering in Anki. Deleted cards in Obsidian are also removed from Anki during sync, keeping both systems aligned.

Reviews

No reviews yet.

Stats

13
stars
695
downloads
1
forks
302
days
20
days
20
days
1
total PRs
0
open PRs
0
closed PRs
1
merged PRs
4
total issues
1
open issues
3
closed issues
0
commits

RequirementsExperimental

  • Anki running with anki-connect extension

Latest Version

21 days ago

Changelog

This release adds two new media types to the sync pipeline and cleans up a long-standing editor quirk.

✨ New Features

🔊 Audio embeds → Anki sound tags

![[Recording.m4a]] inside a card table now uploads the audio binary to Anki and rewrites the embed as Anki's native [sound:Recording.m4a] tag — so the card actually plays on review.

Supports all Obsidian-recognized audio formats: flac, m4a, mp3, ogg, wav, webm, 3gp.

🎨 Partial Excalidraw embeds

Embeds that target a group, area, or frame inside an Excalidraw drawing now render only that region in Anki — matching what Obsidian shows in preview.

Supported fragment syntax:

  • ![[drawing.excalidraw.md#^group=<id>]]
  • ![[drawing.excalidraw.md#^area=<id>]]
  • ![[drawing.excalidraw.md#^frame=<id>]]
  • ![[drawing.excalidraw.md#^clippedframe=<id>]]

If the fragment can't be resolved (renamed/deleted ID), the plugin falls back to rendering the full drawing and logs a warning — the card still syncs.

🐛 Bug Fixes

  • Cursor jump fix (Live Preview): pressing ↓ below an Anki-card table no longer jumps the cursor backwards into the top cell of the table. Reading View behavior is unchanged.

🧹 Under the Hood

  • Excalidraw logic extracted into its own module (src/excalidraw.ts) for easier maintenance.
  • Removed dead code from the old toggle implementation and unused AnkiService helpers.
  • Generalized the media regex from image-only to MEDIA_EMBED so audio/Excalidraw/images share one resolver pass.

README file from

Github

Simple Anki Sync - Obsidian Plugin

⚠️ Prerequisite: Anki must be running with the AnkiConnect extension installed and active.

image

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


image

Automatic installation via the Obsidian App (Recomendet)

https://github.com/user-attachments/assets/aebca7a1-14c3-4023-b27a-eade3b551b3c

Manual installation (not recomendet)

  1. 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/
      
  2. Clone the Repository:

    • Clone this repository directly into the plugins folder:
      git clone https://github.com/lukmay/simple-anki-sync.git
      
  3. 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:
      npm install
      
      Then:
      npm run build
      
      This will create the necessary main.js file within the simple-anki-sync folder.
  4. 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 plugins in Obsidian.
    • Find "Simple Anki Sync" in the list and toggle it on.

image

Main Feature: Obsidian → Anki Sync

Commands:
Sync current file With Anki
Sync entire vault With Anki
Unsync current file 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]] |

In Anki:
image

Run the Sync Anki Cards command, and your cards—with proper deck/subdeck handling—appear in Anki instantly.


Unsync Feature

You can cleanly unsync the currently active file from Anki using the Unsync current file with Anki command.
This removes all Anki note references from the file and deletes the corresponding notes in Anki via AnkiConnect, without affecting any other files in the vault. This makes it easy to intentionally remove a note (or an entire file) from Anki while keeping your Obsidian content intact.


Quality-of-Life Features

  • 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]].
  • Excalidraw support
    Embed .excalidraw drawings seamlessly. They are automatically converted to images on sync.
  • 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
  • Precise Backlinks
    Each card carries a URL back to its source note. Clicking it from Anki will open Obsidian and scroll you down directly to the flashcard's exact row!
  • Anki-Tags
    Each card in Anki has a assigned tag obsidian_simple_anki_sync_created to easely filter for this automatically created cards.

image

Video Showcase :)

https://github.com/user-attachments/assets/790abb16-b7ea-43d2-995c-720ac1c9b2ed

Quantum Mechanics Cheat Sheet


#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.


Card Examples

1. Basic definition

What is the Heisenberg uncertainty principle?
It states that you cannot simultaneously know the exact position and momentum of a particle.

2. Math formatting

Solve for $x$ in the quadratic formula: $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$
Use the plus/minus to get both roots: $x_1 = \frac{-b + \sqrt{b^2 - 4ac}}{2a},; x_2 = \frac{-b - \sqrt{b^2 - 4ac}}{2a}$

3. Line breaks & images

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


Deleting Cards

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!

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Markdown Table Editor
4 years ago by Ganessh Kumar R P
An Obsidian plugin to provide an editor for Markdown tables. It can open CSV data and data from Microsoft Excel, Google Sheets, Apple Numbers and LibreOffice Calc as Markdown tables from Obsidian Markdown editor.
braincache
4 years ago by XSPGMike
braincache obsidian plugin
Aosr
4 years ago by linanwx
Aosr is Another Obsidian plugin for Spaced Repetition.
Note Synchronizer
4 years ago by Songchen Tan
Synchronizes Obsidian notes to Anki in a breeze 💨️
Repeat
4 years ago by Andre Perunicic
Review notes using periodic or spaced repetition.
Awesome Flashcard
4 years ago by AwesomeDog
Handy Anki integration for Obsidian.
Flashcard Learning
3 years ago by Gaétan Muck
Obsidian plugin. Uses flashcard system to learn things across own notes.
Auto Anki
3 years ago by ad2969
Using AI to automate card creation for Spaced Repetion in Anki
Flashcards LLM
3 years ago by Marco Pampaloni
Use Large Language Models (such as ChatGPT) to automatically generate flashcards from obsidian notes
Flashcard Generator
3 years ago by ChloeDia
Obsidian Plug-in to automatically create a set of questions/answers on your notes !
QB Reader Parser
3 years ago by Jacob Barta
QBReader parsing for quiz bowl answerlines
Vocabulary Cards
3 years ago by Eugene Myazin
An easy way to display vocabulary words as flashcards and as a list
AnkiSync+
3 years ago by RochaG0
Mochi Cards Pro
3 years ago by Hayden Carpenter
Create flashcards on Mochi.cards using the API provided by Mochi's Pro subscription in Obsidian.
Augmented Canvas
2 years ago by Léopold Szabatura
Supercharge your Obsidian canvas experience with AI features.
Yanki
2 years ago by Eric Mika
An Obsidian plugin that syncs flashcards from a folder in your vault to Anki. Pure Markdown syntax. No fuss.
Better Recall
2 years ago by FlorianWoelki
A better spaced repetition and recall plugin for Obsidian inspired by Anki.
Flashcards
5 years ago by Alex Colucci
🎴 An Anki plugin for Obsidian.md
Export to Anki
5 years ago by Pseudonium
Script to add flashcards from text/markdown files to Anki
Mochi Cards Exporter
5 years ago by kalbetre
Mochi Cards Exporter Plugin for Obsidian
Spaced Repetition
5 years ago by Stephen Mwangi
Fight the forgetting curve by reviewing flashcards & entire notes on Obsidian
Anki Sync
5 years ago by debanjandhar12
Obsidian plugin to make flashcards and sync them to Anki
AnkiBridge
4 years ago by JeppeKlitgaard
Yet Another Obsidian Anki Bridge.
Blue Star
2 years ago by Wang Guoshi
A plugin for Obsidian that generates Anki flashcards in various ways.
Simple Quiz
a year ago by Ivan Kalmar
Creating simple quizzes.
AI-AnkiSync
a year ago by goev
Memodack
a year ago by Pavlo Kobyliatskyi
Your second language memory tool
HiNote
a year ago by Kai
Add comments to highlighted notes, use AI for thinking, and flashcards for memory.
Anki Integration
a year ago by Noah Boos AKA Rift
Create flashcards from your notes with a seamless interface, structuring them with metadata and syncing effortlessly via AnkiConnect.
Come Through
a year ago by mntno
An Obsidian plugin for creating and reviewing flashcards.
Simple Table Math
10 months ago by Sandro Ducceschi
Do some math (sum, average, etc.) in your markdown tables.
Dictionary Lexicon
3 months ago by Alvin
Look up words and improve vocabulary by using flash card style cards.
Anki Helper
3 months ago by Dusk
Decks
3 months ago by Xherdi Lika
An Obsidian Flashcards plugin