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”Install a public package and export your first deck; choose your entry point.
| Language | First result | Continue |
|---|---|---|
| Rust | Run the first-deck example | Add to your application |
| Node / TypeScript | Install and build your first deck | 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, owned Project values, and stable identity.
Build your next feature
Section titled “Build your next feature”- CSV to Anki: turn a vocabulary spreadsheet into an APKG with Python.
- JSON to Anki: generate cards with media and review an update in three languages.
- AI-assisted card generation: draft cards from your notes, review the answers and export an APKG.
- 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.
Card-type guides use runnable Rust examples; the CSV recipe uses Python and the JSON recipe covers all three languages. 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 verified environments for runtime support and client import conditions.
Anki Forge is licensed under MIT. Report reproducible issues on GitHub, or read the contributor guide.