Notebook2Anki is a Chrome extension that exports Quizzes and Flashcards from Gemini Notebook (formerly NotebookLM) directly to Anki.
- ๐ Quiz Support: Export multiple-choice questions with hints, options, and rationales
- ๐๏ธ Flashcard Support: Export simple front/back flashcards
- โก AnkiConnect Integration: Send cards directly to Anki (requires Anki open)
- ๐ฆ APKG Export: Download as
.apkgfile (works offline, import anywhere) - ๐ CSV Export: Export as CSV for manual import or other tools
- ๐ข LaTeX/Math Support: Cards render mathematical notation via MathJax
- ๐จ Beautiful Dark Theme: Matching Gemini Notebook's aesthetic
- ๐ UI Button Injection: Export button appears directly in Gemini Notebook
- Clone or download this repository
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select the
Notebook2Ankifolder
Coming soon
- Navigate to a notebook in Gemini Notebook
- Generate a Quiz or Flashcards using Gemini Notebook's features
- Click the extension icon in Chrome toolbar
- Choose your export method:
- Send to Anki: Requires Anki desktop open with AnkiConnect
- Download .apkg: Creates a portable Anki package file
- Export CSV: Creates CSV files for quizzes and/or flashcards
- When viewing quiz/flashcard content in Gemini Notebook, an "Anki Export" button appears
- Click the button to send directly to Anki via AnkiConnect
- Anki Desktop installed and running
- AnkiConnect add-on installed
- No additional requirements (works in browser)
The extension creates two note types in Anki:
15 fields for multiple-choice questions:
- Question, Hint, ArchDiagram (for images)
- Option1-4, Flag1-4 (True/False), Rationale1-4
2 fields for simple flashcards:
- Front, Back
Both include dark theme styling and MathJax support.
- Creates deck under
NotebookLM::parent deck - Creates note types automatically if missing
- Best for direct integration
- Portable Anki package
- Import on any device (desktop, mobile, AnkiWeb)
- No Anki instance required during export
- Universal format
- Can import into Anki, Quizlet, or other tools
- Separate files for quizzes and flashcards
Notebook2Anki/
โโโ manifest.json # Chrome extension manifest
โโโ src/
โ โโโ background/ # Service worker for AnkiConnect
โ โโโ content/ # Content scripts for UI injection
โ โโโ popup/ # Extension popup UI
โ โโโ lib/ # Shared utilities
โ โโโ templates/ # Anki card templates
โโโ vendor/ # Third-party libraries
โ โโโ sql.js # SQLite in browser
โ โโโ jszip.min.js # ZIP creation
โ โโโ FileSaver.min.js # File downloads
โ โโโ genanki.js # Anki deck generation
โโโ icons/ # Extension icons
No build step required. Load the extension directly in developer mode.
- Load extension in Chrome
- Navigate to Gemini Notebook
- Create quizzes/flashcards
- Test each export method
This project integrates functionality from:
- notebooklm-anki-extension: Quiz export with AnkiConnect
- flashcardConverter: Flashcard extraction and APKG generation
- sql.js: SQLite compiled to WebAssembly
- JSZip: ZIP file creation
- FileSaver.js: File downloads
- genanki-js: Anki deck generation
MIT License
Contributions welcome! Please open an issue or pull request.
- Make sure Anki Desktop is open
- Verify AnkiConnect is installed: Tools โ Add-ons โ Check for "AnkiConnect"
- AnkiConnect uses port 8765 by default
- The note type might have field mismatches
- Try deleting and recreating the note type in Anki
- Or use APKG export which creates fresh note types
- Make sure you've generated a Quiz or Flashcards in Gemini Notebook first
- Refresh the page and try again
- Some notebooks may have different data structures
- Make sure MathJax is configured in Anki
- Cards use
\(...\)for inline math and\[...\]for display math