Deck To Anki

by 熊猫别熬夜
5
4
3
2
1
Score: 51/100

Description

Category: Learning & Knowledge Management

The Deck To Anki plugin turns notes into Anki cards through AnkiConnect. Its five parsing modes use headings, lists, individual notes, filenames or linked child notes to define cards and decks. A sync panel previews cards, compares them with Anki and lets you select entries to push, update or delete. Cards support images, maths, tables, highlighted code, wiki links and media embeds. Built in templates include reversible cards, while custom templates let you edit front and back HTML and CSS. Optional backlinks return to source notes, headings or blocks. Tags and deck paths can also be synced into Anki fields. Image compression applies only to uploads and leaves vault files unchanged. Anki and AnkiConnect must be running for sync and File mode cannot contain another File mode note.

Reviews

No reviews yet.

Stats

15
stars
2,148
downloads
1
forks
45
days
45
days
45
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
109
commits

RequirementsExperimental

  • Anki

  • AnkiConnect

Latest Version

a month ago

Changelog

English

⚙️ Improvements

  • Add getSettingDefinitions() so Obsidian 1.13+ can index plugin settings for global search, while keeping display() for older app versions
  • Share one tabbed settings mount between the declarative and legacy paths, and refresh via update() when available

🌐 Localization

  • Make README.md English-primary and move the Chinese documentation to README.zh.md

📝 Documentation

  • Expand the English README with full feature, settings, and install coverage for the community plugin directory

中文

⚙️ 改进/优化

  • 新增 getSettingDefinitions(),使 Obsidian 1.13+ 可将插件设置纳入全局搜索;同时保留 display() 以兼容旧版本
  • 声明式与旧版设置页共用同一套选项卡挂载逻辑,并在可用时通过 update() 刷新

🌐 翻译/本地化

  • 将 README.md 改为英文主文档,中文说明迁移至 README.zh.md

📝 文档/其他

  • 扩充英文 README 的功能、设置与安装说明,便于社区插件目录展示

README file from

Github

Deck To Anki

中文文档:README.zh.md

Overview

Deck To Anki is an Obsidian community plugin that turns notes into Anki decks via AnkiConnect. Write cards in Obsidian (heading trees, lists, single-file cards, or filename-as-front), preview and select them in the sync panel, then push, update, or delete notes in Anki. Optional backlinks jump back to the source note, heading, or block.

Features

  • Notes as cards — author Q&A cards in Obsidian without a separate card editor
  • Five parse modes — head / list / card / title / file
  • Reversible templates — built-in ob-deck-basic++ for flipped review
  • Rich content — images, math, tables, fenced code (Prism highlighting), and tags
  • Wiki links & embeds — [[note]] and ![[media]] support
  • Backlinks — open the source in Obsidian from Anki (ObURI / Advanced URI)
  • Image compression — optional compress-on-sync (vault files unchanged)

Requirements: Obsidian ≥ 1.7.2, Anki + AnkiConnect.

Sync panel

Quick start

Prerequisites

  1. Install and enable the Deck To Anki plugin
  2. Install and run Anki with AnkiConnect (default http://127.0.0.1:8765)

Suggested AnkiConnect config:

{
    "apiKey": null,
    "apiLogPath": null,
    "ignoreOriginList": [],
    "webBindAddress": "127.0.0.1",
    "webBindPort": 8765,
    "webCorsOriginList": [
        "http://localhost",
        "app://obsidian.md"
    ]
}

Open the sync panel

  • Click the Anki ribbon icon, or
  • Run the command Deck To Anki

Preview parsed cards, select what to sync, check differences against Anki, then run Update / Force. You can copy examples/Deck-To-Anki-演示.md into your vault for a quick trial.

Sync panel

Open the panel from the ribbon or the Deck To Anki command.

Sync panel tabs

  • Current cards: parse the active note
  • All cards / Archived cards: scan notes with deckType inside the configured scan scope
  • Toolbar: expand/collapse, select all, check, refresh, Force, Update
  • Row actions: preview, deck YAML settings, sync one card, checkbox

Check-related options live under Settings → Sync → Check.

Check status colors

Status Color Meaning
Synced 🟩 green Matches Anki
Modified 🟥 red Local differs from Anki
Unsynced 🟨 yellow Not yet pushed to Anki
Anki only 🟦 blue Present in Anki, missing locally
empty 🩵 cyan Empty back (unchecked by default after parse)
Unchecked 🩶 gray Not compared with Anki yet

Check colors

Card preview

Use the Deck View button on a card row to preview the rendered card.

Deck View

Parse modes

Mode Description Note id location
Head (default) Heading at the configured level is the front; body is the back. A lone --- line can split front/back further. <!--ID: n-->
List Top-level list item is the front; indented content is the back (one indent level removed). Trailing ^deckID on the list line
Card After YAML, a lone --- splits front/back; one card per note. YAML deckID
Title Filename is the front; body after YAML is the back; one card per note. YAML deckID
File Parent note organizes child notes via wiki links; children parse as head/list/card/title. Depends on child mode

File mode is for chapter-style decks. Nested File mode is not supported (a child note cannot itself use File mode):

File mode

Deck YAML properties

Deck settings are stored in note YAML and can be edited from the deck row settings panel:

Deck settings

Field Description
deckType head / list / card / title / file
deckName Display name (optional)
deckLevel Head: heading level used as card front (1–6)
deckStatus false studying; true archived
deckFile File mode: parent index note
deckTemplate Anki note type id
deckNumbering Whether to sync deck numbering into the tree field
deckID Card / Title mode: Anki note id

Settings

  • General: default parse mode, heading level, wiki links, Deck View, scan scope
  • Sync: AnkiConnect URL, deck numbering, check options, image compression
  • Fields: tags / backlink / deck-tree fields and backlink scheme
  • Templates: built-in and custom Anki card templates (Front / Back / CSS)

General

Under Settings → General (per-note YAML can override):

  1. Default deck mode — head / list / card / title / file (default Head)
  2. Default heading level — used in Head mode when deckLevel is absent (default H4)
  3. Parse wiki links — convert [[links]] into clickable backlinks (does not affect ![[media]])
  4. Deck View default — source / reading

Scan scope (All / Archive tabs only):

  1. Include folders — empty = entire vault; multi-select, includes subfolders
  2. Ignore folders — exclude from results
  3. Tag filter — keep notes with any listed tag; anki also matches anki/deck

Sync

Requires Anki + AnkiConnect (default http://127.0.0.1:8765).

  1. AnkiConnect URL
  2. Status checks — auto-check when opening panels / selecting cards; optionally require a check before sync
  3. Image compression — compress uploads only; vault files stay untouched; adjustable quality and cache clear

Templates

Defaults include ob-deck-basic and reversible ob-deck-basic++. Customize Front / Back HTML and CSS.

Template editor

Default look in Anki:

Anki card

Fields

Under Settings → Fields:

  1. Sync tags — write ob-deck-tags and sync Anki note tags
  2. Card backlink — write ob-deck-backlink (Head → heading, List → block, Card → file)
  3. Deck tree — write ob-deck-tree; optional clickable crumbs
  4. Backlink scheme — none / oburi / aduri (Advanced URI)

Anki fields

Field Description
ob-deck-id Note identity field (first model field for AnkiConnect)
ob-deck-head Card title / navigation heading; stored separately from front body
ob-deck-front Front body
ob-deck-back Back body
ob-deck-tags Obsidian tags; can sync as Anki tags
ob-deck-tree Deck path crumbs
ob-deck-backlink Backlink to the Obsidian card (heading / block / file)

Commands

Command Action
Deck To Anki Open the sync modal
Open sync sidebar Open the sync sidebar view
Clear all deckIDs in current file Remove deck IDs from the active note
Clear all deckIDs and deck YAML in current file Remove deck IDs and deck YAML properties

Install

BRAT

Add this repository with BRAT:

PandaNocturne/obsidian-deck-to-anki

Manual

  1. Download the latest release from Releases
  2. Place main.js, manifest.json, and styles.css in:
<Vault>/.obsidian/plugins/deck-to-anki/
  1. Reload Obsidian and enable Deck To Anki under Settings → Community plugins

Build from source

npm install
npm run build

Artifacts: main.js, manifest.json, styles.css at the plugin root.

Development

npm install
npm run dev    # watch build
npm run build  # production build
npm run lint

Release checklist:

  1. Bump version / minAppVersion in manifest.json
  2. npm version <new> (updates versions.json)
  3. npm run build
  4. git push origin <tag>
  5. gh release create <tag> main.js manifest.json styles.css

License

See LICENSE in the repository.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
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
4 years ago by Gaétan Muck
Obsidian plugin. Uses flashcard system to learn things across own notes.
text2anki-openai
4 years ago by Mani Batra
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
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
3 years ago by Léopold Szabatura
Supercharge your Obsidian canvas experience with AI features.
Yanki
2 years ago by Eric Mika
Obsidian plugin to sync 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
6 years ago by Alex Colucci
🎴 An Anki plugin for Obsidian.md
Mochi Cards Exporter
6 years ago by kalbetre
Mochi Cards Exporter Plugin for Obsidian
Spaced Repetition
6 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
Blue Star
2 years ago by Wang Guoshi
A plugin for Obsidian that generates Anki flashcards in various ways.
Simple Quiz
2 years ago by Ivan Kalmar
Creating simple quizzes.
AI-AnkiSync
2 years ago by goev
Memodack
2 years ago by Pavlo Kobyliatskyi
Your second language memory tool
HiNote
2 years ago by Kai
Add comments to highlighted notes, use AI for thinking, and flashcards for memory.
Anki Integration
2 years ago by Noah Boos AKA Rift
Create flashcards from your notes with a seamless interface, structuring them with metadata and syncing effortlessly via AnkiConnect.
GitHub Integration
2 years ago by Kirill Zhuravlev
Plugin that fetch your github stars into notes
Come Through
a year ago by mntno
An Obsidian plugin for creating and reviewing flashcards.
Simple Anki Sync
a year ago by Lukas Mayr
Kindle Vocab
a year ago by Truong Gia Bao
Generate the markdown version of your Vocabulary Builder in Kindle, and put it in your Obsidian Vault.
Dictionary Lexicon
9 months ago by Alvin
Look up words and improve vocabulary by using flash card style cards.
Anki Helper
9 months ago by Dusk
Decks
9 months ago by Xherdi Lika
An Obsidian Flashcards plugin
Cornell Marginalia
6 months ago by Latazadehomero
A lightweight Obsidian plugin designed for students who use the Cornell Note-taking System.
LearnKit
5 months ago by William Guy
A native study system for your Obsidian vault. LearnKit turns notes into durable knowledge with flashcards, spaced repetition, reviews, tests, and AI tools.
Easy Recall
3 months ago by Geno Zhou
Quran Life
2 months ago by Imed Ghomari
Language Made Easy
2 months ago by PandoraReads
Language Made Easy — Immersive language learning for Obsidian. 沉浸式英语学习工作台:阅读时即时查词、FSRS 间隔重复闪卡、字幕同步的视频跟读、AI 智能解析——全部在同一个地方完成
MCQ Tracker
24 days ago by Isaac Friedenson
Extract practice questions from .pdfs into individual .md files, practice questions from your notes, grade answers, and track time, confidence and spaced review in note properties.