Anki Inject is a minimalist desktop companion designed to streamline your study workflow. Instead of manual data entry, use Google Gemini AI as your high-speed formatting assistant to transform "fuzzy" study notes, raw textbook snippets, or unstructured thoughts into perfectly structured Anki flashcards.
Stop wrestling with formatting. Start refining your knowledge with an AI study collaborator.
- ๐ Fuzzy Note Processing: Paste messy, unstructured notes and let Gemini AI extract core concepts and structure them into clear Q&A pairs.
- ๐ช Formatting Assistant: Automatically converts raw text into clean HTML-formatted flashcards, saving you hours of manual tagging and styling.
- ๐ฉโ๐ป Human-in-the-Loop: Anki Inject doesn't replace your study processโit accelerates it. Review, refine, and edit every card in an immersive editor before it reaches your deck.
- ๐ค AI Refinement Assistant: Use natural language to instantly "Simplify", "Explain", or "Correct" any card during the review phase.
- ๐ฅ Seamless Injection: Directly push your final, polished cards to Anki with a single click.
- โ๏ธ Native Persistence: Securely stores your settings in standard system configuration paths for a truly native experience.
- ๐จ Modern UI: Features a beautiful, distraction-free interface with stacked card aesthetics and neutral color palettes designed for focus.
- ๐ง Customizable AI Prompts: Take full control of the generation process. Define your own system prompts in Settings to tailor how the AI formats your cards (e.g., "Always use bold for keywords", "Make it a multiple choice question").
- Paste your content: Textbooks, articles, or notesโany text works.
- Generate: Let Gemini AI extract the important bits and structure them as Q&A.
- Refine: Edit cards manually or ask the AI Assistant for help.
- Inject: Send everything to Anki with a single click.
- Language: Python 3.10+
- Application Wrapper:
pywebviewโ Native windowing and Python/JavaScript bridge. Optimized for the GTK backend on Linux. - AI Integration:
google-genaiโ Interfaces with Google's Gemini models for flashcard generation and refinement. - HTTP Client:
httpxโ Modern, async-ready HTTP client for AnkiConnect and AI streaming. - Process Management:
psutil&gcโ Used for memory profiling and manual garbage collection.
- Framework: Svelte (TypeScript) โ High-performance reactive UI with a near-zero runtime footprint.
- Styling: Tailwind CSS โ Utility-first styling with modern aesthetics.
- Icons: Lucide Svelte โ Clean, scalable UI icons.
- Build Tool: Vite โ Fast, modern frontend bundling.
- Bundler: PyInstaller โ Standalone executable packaging.
- Distribution: AppImage โ Universal single-file Linux distribution.
The easiest way to get started is to download the latest version for your operating system from the Releases page.
- Windows: Download the
.exeand run. - Linux: Download the
.AppImage, make it executable (chmod +x ...), and run.
- Have Anki installed and running.
- Install the AnkiConnect add-on.
If you want to build from source or contribute:
-
Clone the repo:
git clone https://github.com/yourusername/anki_inject.git cd anki_inject -
Backend Setup (Python & uv):
uv sync
-
Frontend Setup (Svelte & Node):
cd frontend npm install npm run build cd ..
-
Run:
uv run main.py
Contributions are welcome! Whether it's a bug report, a new feature, or UI polish, feel free to open an issue or pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Powered by Google Gemini AI & Svelte Targeted at Language Learners, and Life-long Students.

