Build Anki decks from code
Anki Forge turns notes, templates and media into Anki .apkg files. Use it when
your learning content lives in code or structured data and you want to rebuild
and distribute decks repeatedly.
Start with your language
Section titled “Start with your language”These guides follow the current source checkout. The languages have separate packaging and verification status; choose your entry point.
| Language | First result | Continue |
|---|---|---|
| Rust | Run the first-deck example | Add to your application |
| Node / TypeScript | Build and run the native SDK | API and async behavior |
| Python | Install and export a deck | API and output ownership |
Prefer to see the result first? Explore the card examples and download their generated packages.
Understand the pieces
Section titled “Understand the pieces”A note holds fields; a note type and its templates turn those fields into cards. Decks group the resulting cards in Anki. The core concepts explain these relationships, Deck versus Project, and stable identity.
Build your next feature
Section titled “Build your next feature”- Basic and Cloze: create question/answer and fill-in-the-blank cards.
- Images and audio: register real assets and attach them to cards.
- Custom note types and template bundles: define fields, layouts and CSS.
- Image Occlusion: create questions from regions of an image.
- Update and distribute: carry identity and revision evidence between releases.
The task guides use runnable Rust examples. Node and Python API pages explain their corresponding interfaces and any differences.
Find answers and contribute
Section titled “Find answers and contribute”Use troubleshooting when an operation fails, and compatibility and releases before depending on a candidate package or promising client behavior.
Anki Forge is licensed under MIT. Report reproducible issues on GitHub, or read the contributor guide.