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.

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.

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.

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.

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.

View Markdown