Pedro Remigio Bracamontes90 downloadsGenerate Anki flashcards from notes with local or cloud LLMs and send them to Anki through AnkiConnect.
Ankinator is an Obsidian plugin that turns notes, selected text, or multiple files into study cards for Anki using large language models (LLMs) and AnkiConnect.
The goal is to speed up flashcard creation without leaving your Obsidian workflow: select the content, choose how many cards to generate, and send them directly into your Anki deck.
Ankinator does not require payment or an account. It does not display advertisements and does not collect server-side telemetry. The plugin does not include a separate privacy policy because it does not send analytics or usage data to a telemetry service.
The plugin uses network requests only for the services required to generate and create cards:
http://localhost:8765, to read available decks and note types and to create cards. Generated card content is sent to Anki through this connection.When a local LLM is selected, the note content is sent to the configured local endpoint instead of a cloud provider. The plugin does not access files outside the Obsidian vault; it reads only the active note, selected notes, or files explicitly selected in the plugin.
For multiple notes, use the command Create cards from multiple notes, filter the vault files, select the notes, and continue to the same creation modal. Decks and note types are loaded from AnkiConnect when the modal opens; they are not configured as fixed values in the plugin settings.
If a card cannot be confirmed, Ankinator opens a result modal grouped by source note. It keeps the generated cards and statuses in memory for that operation only. Before retrying an uncertain result, it checks Anki for a matching note; no recovery data or card content is saved to the vault.
In simple terms, the workflow is:
Obsidian note -> LLM generation -> flashcards -> AnkiConnect -> Anki
.
├── src/
│ ├── main.ts # Plugin entry point
│ ├── settings.ts # Plugin settings and configuration
│ ├── i18n/
│ │ ├── index.ts # Internationalization helpers, key types and prompts
│ │ ├── en.json # English strings (reference language)
│ │ └── es.json # Spanish strings
│ ├── services/
│ │ ├── ankiConnectApi.ts # AnkiConnect integration
│ │ ├── controller.ts # Card creation logic
│ │ └── llmApi.ts # LLM connection and generation logic
│ └── ui/
│ ├── modal.ts # Main modal for creating cards
│ ├── cardResultModal.ts # Per-note results and retry actions
│ └── noteSelectionModal.ts
├── tests/
│ └── i18n.test.mjs # Translation verification suite
├── manifest.json
├── package.json
├── LICENSE
├── README.md
├── TRANSLATIONS.md # Translation guide
├── esbuild.config.mjs
└── styles.css
Requirements:
Install dependencies:
npm install
Development mode:
npm run dev
Production build:
npm run build
Lint:
npm run lint
Tests:
npm test
npm run build.main.js, manifest.json, and styles.css into the plugin folder in your Obsidian vault.Ankinator ships with English and Spanish, following Obsidian's language setting. All user-facing strings live in src/i18n/en.json and src/i18n/es.json and are read through t().
t() in code.en.json, translate it, and register it in src/i18n/index.ts.npm test to verify key parity, matching placeholders, and that no UI string is hardcoded.See TRANSLATIONS.md for the full guide.
The plugin version must stay in sync across three files:
package.json — the npm package version.manifest.json — the version Obsidian reads; the release tag must match it exactly (no leading v).versions.json — maps each plugin version to the minimum app version.Bump all three at once with npm, which also commits the change and creates the tag:
npm version <major|minor|patch>
This updates package.json, runs version-bump.mjs to update manifest.json and versions.json, and creates a tag without a prefix (see .npmrc). Push the commit and the tag; the release workflow builds the plugin and attaches main.js, manifest.json, and styles.css.
Never edit manifest.json by hand without bumping package.json (and vice versa): they must always be equal.
Contributions are welcome. To contribute in a clean and consistent way:
npm run build and npm run lint before submitting a pull request.Copyright (C) 2026 Pedro Remigio Bracamontes
This project is licensed under the GNU General Public License v3.0 or later.
You may use, study, modify, and redistribute this software under the terms of the GPL-3.0-or-later license. Distributed versions must preserve the same freedoms and provide the corresponding source code under the applicable license terms.
The full license text is included in LICENSE.
Ankinator is designed to simplify flashcard creation directly from Obsidian, keeping the workflow focused on your notes, your content, and your study productivity.
If you want to extend the project, you can contribute new model integrations, parsing improvements, user experience enhancements, or additional card format support.