| .buildkite | ||
| .cargo | ||
| .config | ||
| .cursor/rules | ||
| .github/ISSUE_TEMPLATE | ||
| .idea.dist | ||
| .vscode.dist | ||
| build | ||
| cargo | ||
| docs | ||
| ftl | ||
| proto | ||
| pylib | ||
| python | ||
| qt | ||
| rslib | ||
| tools | ||
| ts | ||
| .deny.toml | ||
| .dockerignore | ||
| .dprint.json | ||
| .eslintrc.cjs | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| .mypy.ini | ||
| .prettierrc | ||
| .python-version | ||
| .ruff.toml | ||
| .rustfmt-empty.toml | ||
| .rustfmt.toml | ||
| .version | ||
| .yarnrc.yml | ||
| Cargo.lock | ||
| Cargo.toml | ||
| check | ||
| CLAUDE.md | ||
| CONTRIBUTORS | ||
| LICENSE | ||
| ninja | ||
| package.json | ||
| pkgkey.asc | ||
| pyproject.toml | ||
| README.md | ||
| run | ||
| run.bat | ||
| rust-toolchain.toml | ||
| SECURITY.md | ||
| uv.lock | ||
| yarn | ||
| yarn.bat | ||
| yarn.lock | ||
Anki®
This repo contains the source code for the computer version of Anki.
Anki is a powerful, intelligent flashcard program that makes remembering things easy.
📖 About Anki
Anki is a spaced repetition flashcard program. It helps you memorize information efficiently by presenting cards at optimal intervals based on your performance. Anki uses an algorithm to schedule reviews, ensuring you see cards right before you're about to forget them.
Key Features
- Spaced Repetition: Scientifically-proven algorithm for efficient learning
- Rich Media Support: Add images, audio, video, and LaTeX to your cards
- Cross-Platform: Available on Windows, macOS, Linux, iOS, and Android
- Synchronization: Keep your cards in sync across all your devices
- Extensible: Powerful add-on system for customization
- Open Source: Free and open-source software
🚀 Getting Started
For Users
If you're looking to use Anki, the easiest way is to download the latest release from the official website.
Want to try the latest features? Check out Anki betas for pre-release versions.
For Developers
This is a complex project with multiple components:
- Backend: Rust (
rslib/) - Core scheduling, database, and sync logic - Python Library: (
pylib/) - Python bindings and add-on API - Frontend: TypeScript/Svelte (
ts/) - Modern web-based UI - Qt Interface: Python/Qt (
qt/) - Desktop application wrapper
Quick Start
-
Prerequisites:
- Rust (version specified in
rust-toolchain.toml) - N2 or Ninja build system
- Python 3.9+ (3.9 recommended)
- Platform-specific tools (see platform docs below)
- Rust (version specified in
-
Clone the repository:
git clone https://github.com/ankitects/anki.git cd anki -
Install build tools:
# Install N2 (recommended) or Ninja bash tools/install-n2 -
Platform-specific setup:
-
Build and run:
# Build the project tools/build # Run Anki ./run(On Windows, use
.\runinstead)
For detailed development instructions, see the Development Guide.
Pre-built Python Wheels
If you're developing add-ons or need Python bindings without building from source, you can install pre-built wheels from PyPI:
pip install --pre aqt
See betas.ankiweb.net for more details.
🤝 Contributing
We welcome contributions! Whether you're fixing bugs, adding features, or improving documentation, your help makes Anki better for everyone.
How to Contribute
- Read the guidelines: Check out our Contribution Guidelines
- Find an issue: Look for issues labeled
good first issueor browse open issues - Fork and branch: Create a feature branch from
main - Make changes: Write clean, tested code following our style guidelines
- Submit a PR: Open a pull request with a clear description of your changes
Development Resources
- Development Guide - Building and running Anki
- Architecture Documentation - Understanding the codebase
- Contributing Guide - Contribution process and guidelines
- Editing Guide - Code editing best practices
📚 Project Structure
anki/
├── rslib/ # Rust backend library (core logic)
├── pylib/ # Python library and bindings
├── qt/ # Qt desktop application
├── ts/ # TypeScript/Svelte frontend
├── ftl/ # Fluent translation files
├── proto/ # Protocol buffer definitions
├── docs/ # Documentation
└── tools/ # Build and development scripts
🛠️ Technology Stack
- Rust: Core backend, scheduling algorithm, database operations
- Python: Add-on API, Qt bindings, build scripts
- TypeScript/Svelte: Modern web-based user interface
- Qt: Desktop application framework
- Protocol Buffers: Inter-process communication
- SQLite: Database storage
📄 License
Anki is licensed under the AGPL-3.0-or-later license.
🙏 Acknowledgments
Anki is made possible by the contributions of many developers and the support of the community. See CONTRIBUTORS for a list of contributors.
🔗 Links
- Official Website: https://apps.ankiweb.net
- Documentation: https://docs.ankiweb.net
- Beta Builds: https://betas.ankiweb.net
- Add-ons: https://ankiweb.net/shared/addons/
- Community: https://forums.ankiweb.net
- GitHub: https://github.com/ankitects/anki
📞 Support
- User Support: https://help.ankiweb.net
- Security Issues: See SECURITY.md
Note: This is the computer version of Anki. For mobile apps, see: