Skip to content

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.

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.

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.

The task guides use runnable Rust examples. Node and Python API pages explain their corresponding interfaces and any differences.

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.