AI-AnkiSync

by goev
5
4
3
2
1
Score: 52/100

Description

Category: Learning & Knowledge Management

The AI-AnkiSync plugin enhances flashcard workflows by combining note-based card creation with AI-powered content refinement and seamless syncing to Anki. It detects flashcard patterns in your notes, optionally improves them using OpenAI models, and pushes them to Anki using AnkiConnect. Decks can be auto-assigned based on file names, and tags are derived from note headings to maintain structure and context. The plugin also supports hierarchical tagging and allows you to customize the system prompt for AI-generated enhancements.

Reviews

No reviews yet.

Stats

7
stars
692
downloads
1
forks
478
days
273
days
512
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
19
commits

Latest Version

a year ago

Changelog

Implemented requested changes based on review feedback:

  • Adjusted cases to meet specifications.
  • Cleaned logging and reduced unnecessary output.
  • Added user-facing messages to report process progress.
  • Switched to requestUrl API for network requests.
  • Removed top-level settings headings for better UI integration.
  • Updated version to 1.0.1.

This release addresses all feedback and prepares the plugin for community submission.

README file from

Github

AI-AnkiSync for Obsidian

AI-AnkiSync is an Obsidian plugin that detects flashcards in your notes, enhances the content using a language model, and syncs them with Anki via AnkiConnect. The AI enhancement allows users to input brief keywords, automating the expansion and formatting of flashcards, which speeds up the creation process.

Features

  • Flashcard detection in Obsidian notes (Remnote like)
  • AI-powered enhancement of flashcard content using OpenAI's language models
  • Synchronization with Anki via AnkiConnect
  • Automatic deck assignment based on file names
  • Hierarchical tag assignment based on note structure (headings as tags)
  • Customizable system prompt for card enhancement

Installation

  1. Open Obsidian and go to Settings > Community Plugins
  2. Disable Safe Mode if it's enabled
  3. Click on "Browse" and search for "AI-AnkiSync"
  4. Click "Install"
  5. Once installed, enable the plugin in the Community Plugins tab

Setting up the plugin

  1. Go to the AI-AnkiSync settings in Obsidian
  2. Enter your OpenAI API key
  3. Configure other settings as desired (default deck, AI model, etc.)
  4. Ensure Anki is running and AnkiConnect is installed in Anki
  5. Configure AnkiConnect to allow connections from Obsidian:
    • In Anki, go to Tools > Add-ons > AnkiConnect > Config
    • Find the 'webCorsOriginList' setting and add 'app://obsidian.md' to the list. It should look something like this:
      "webCorsOriginList": [
          "http://localhost",
          "https://localhost",
          "app://obsidian.md"
      ]
      
    • Save the config and restart Anki

Usage

Creating flashcards

Create flashcards in your Obsidian notes using the following format:

- Front of card==Back of card

You can organize your cards under headings, which will be used for automatic tag assignment:

# Topic
## Suptopic 1
text
## Subtopic 2
- Question==Answer

This assigns the following tags: 'topic', 'topic/subtopic_2'

Syncing with Anki

  1. Open the note containing your flashcards
  2. Use the command palette (Ctrl/Cmd + P) and search for "Scan and Sync Anki Cards"
  3. Run the command to sync your cards with Anki

Configuration

Plugin Settings

  • OpenAI API Key: Your API key for accessing OpenAI's models
  • Enable AI Enhancement: Toggle to enable/disable AI enhancement of cards
  • AI Model: Choose between GPT-4o and GPT-4o mini
  • Deck Assignment: Automatically assign decks based on file names
  • Default Deck: The default deck for new cards if automatic assignment is off
  • Tag Assignment: Automatically assign tags based on note structure
  • Default Tags: Default tags to apply to all cards

AI Enhancement

You can customize the system prompt that is sent to the model. The default prompt is:

You are an AI assistant that enhances flashcards. Improve the content on front and back by making it clearer, more concise, and more effective for learning but without changing the meaning. The backside may contain hints for the answer, instructions for creating the answer, or the complete answer. If nothing is provided on the backside, the answer should be generated entirely. If parts of the answer are provided, they should always be used. If appropriate use HTML for formatting (e.g., <strong>, <em>, <code>, <ul>, <li>). Always answer in the given language and ensure proper HTML formatting.

How it works

  1. The plugin scans the active note for flashcard-formatted lines
  2. If AI enhancement is enabled, each card is sent to the OpenAI API for improvement
  3. The plugin checks if the card already exists in Anki
  4. New cards are added to Anki, existing cards are updated
  5. Tags are assigned based on the note's heading structure
  6. The deck is assigned based on the file name or the default setting

Troubleshooting

  • Cards not syncing: Ensure Anki is running and AnkiConnect is properly installed
  • AI enhancement not working: Check your OpenAI API key and internet connection
  • Unexpected deck assignments: Review your automatic deck assignment settings

If you encounter persistent issues, check the console logs in Obsidian's developer tools for more detailed error messages.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.

Acknowledgements

  • This plugin uses the AnkiConnect add-on for Anki
  • AI enhancement is currently powered by OpenAI's GPT-4o series

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Text Generator
4 years ago by Noureddine Haouari
Text Generator is a versatile plugin for Obsidian that allows you to generate text content using various AI providers, including OpenAI, Anthropic, Google and local models.
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
3 years ago by AwesomeDog
Handy Anki integration for Obsidian.
Gene 🧬
3 years ago by Matiss Jurevics
An AI assistant plugin for Obsidian
AI Commander
3 years ago by Simon Yang
Flashcard Learning
3 years ago by Gaétan Muck
Obsidian plugin. Uses flashcard system to learn things across own notes.
Semantic Search
3 years ago by bbawj
Semantic search for Obsidian.md
text2anki-openai
3 years ago by Mani Batra
brAIn
3 years ago by lusob
Silicon AI
3 years ago by deepfates
Add some intelligence to your notes with Silicon AI for Obsidian
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
AI Notes Summary
3 years ago by R. Ian Bull (irbull)
An Obsidian plugin that uses ChatGPT to generate a summary of referenced notes
Memorization
3 years ago by Joseph Cochran
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
Auto Tag
3 years ago by Control Alt
Easily generate relevant tags for your Obsidian notes.
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.
Canvas LLM Extender
3 years ago by Pasi Saarinen
Let the OpenAI LLM add nodes to your Obsidian canvas
Intelligence
2 years ago by John Mavrick
Aloud
2 years ago by Adrian Lyjak
Obsidian TTS Plugin
Augmented Canvas
2 years ago by Léopold Szabatura
Supercharge your Obsidian canvas experience with AI features.
AI for Templater
2 years ago by TfTHacker
Extends Templater with AI Chat commands using the OpenAI Client Library
CoCo AskAI
2 years ago by Yukee
CoCo-AskAI is an Obsidian plugin that enables AI-powered note assistance, enhancing the writing experience with customizable functions.
ai-writer
2 years ago by Donovan Ye
A plugin for Obsidian that uses AI to help you write better and faster.
The Queue
2 years ago by Kolja Sam Pluemer
An Obsidian.md plugin randomly exposing you to your cards. Supports habits, to-dos, spaced repetition flashcards, iterative reading and more.
Explain Selection With AI
2 years ago by Ben Wurster
This is my first go at making an Obsidian plugin to elaborate on and describe selected bits of information and their context.
You and Your Research
2 years ago by Neo Zhang
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.
Notes Refresher
2 years ago by Connor Park
Obsidian plugin for AI-generated note refreshers
Better Recall
2 years ago by FlorianWoelki
A better spaced repetition and recall plugin for Obsidian inspired by Anki.
Learnie
2 years ago by tankh99
Learnie is an Obsidian plugin that helps to enhance your learning with active recall and spaced repetition.
Review
6 years ago by ryanjamurphy
Add the current note to a future daily note to remember to review it.
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
Incremental Writing
5 years ago by Jamesb | Experimental Learning
An incremental writing plugin for Obsidian where you add notes and blocks to prioritized queues and review them incrementally over time, spaced repetition style.
Recall
5 years ago by Martin Jirlow
A spaced repetition system for 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.
Spaced everything
2 years ago by Zach Mueller
Obsidian plugin to apply spaced repetition to incrementally develop your notes.
Blue Star
a year 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.
Atomizer
a year ago by Zac Bagley
An AI-Driven Obsidian plugin designed to turn lengthy text into insightful atomic notes. Perfect for turning source notes into ideas in a Zettelkasten workflow.
Memodack
a year ago by Pavlo Kobyliatskyi
Your second language memory tool
Spaced Repetition AI
a year ago by Belinda Mo, Athena Leong
AI + Spaced Repetition Plugin for Obsidian
Research Quest
a year ago by Nathan Arthur
AI Helper
a year ago by David Connolly
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.
Large Language Models
a year ago by eharris128, r-mahoney, & jsmorabito
The LLM plugin gives Obsidian users access to local and web-based, large language models via several chat interfaces: modal, widget, FAB window, and commands.
Zhongwen Reader
a year ago by natipt
This is a Chinese hover dictionary and vocabulary-building plugin for ObsidianMD.
Come Through
a year ago by mntno
An Obsidian plugin for creating and reviewing flashcards.
Vault LLM Assistant
a year ago by Brians Tjipto
An obsidian notebook plugin that uses LLM (OpenAI or Gemini) to answer questions and create new notes about your vault
OpenWords
a year ago by insile
用于英语学习中背单词与单词管理的 Obsidian 插件
LLM docs
a year ago by Shane Lamb
Chat with LLM in regular markdown files in Obsidian
Simple Anki Sync
10 months ago by Lukas Mayr
Kindle Vocab
9 months ago by Truong Gia Bao
Generate the markdown version of your Vocabulary Builder in Kindle, and put it in your Obsidian Vault.
AI Image OCR
8 months ago by Rootiest
Obsidian plugin for AI-powered text extraction from images
NoteSmith
8 months ago by csteamengine
AI Companion
5 months ago by Kowshik
An Obsidian plugin that provides AI assistance using OpenAI's API, triggered by the `/ai` slash command.
AI Transcriber
4 months ago by Musashino Software
AI-powered speech-to-text transcription using OpenAI GPT-4o and Whisper APIs
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