Moyu Anki Overlay
English | 中文
A minimal always-on-top review pill for the desktop, powered by Anki’s official scheduler — quiet card review while you work or sit in meetings.
By default only the question is shown. Hover or press a shortcut to reveal the answer, then grade with number keys / Space. Reviews are written into your current Anki collection and sync normally to AnkiWeb.
Requires Anki to be running (main window may be minimized). Primarily tested on macOS; Windows works too (change the font in Settings).
Screenshots
Overlay — question only, then hover / shortcut to reveal the answer:
Settings — appearance, fonts, and shortcuts:
Features
|
|
| Overlay |
Frameless, always-on-top, translucent white pill |
| Question-first |
Collapsed state shows front-side plain text only |
| Reveal |
Hover, or keyboard shortcuts |
| Grading |
Digits / Space after reveal (configurable) |
| Deck |
Follows the deck currently selected in Anki |
| Plain text |
Strips HTML, [[type:…]], ruby tags, etc. |
| Settings |
Appearance, fonts, shortcuts in a GUI |
Not in v1: images / audio, cloze highlighting, full template rendering, standalone app without Anki.
Requirements
- Anki 25.09+ (verified on Anki 26.09 / macOS)
- No extra Python/Qt install — use Anki’s bundled runtime
- Prefer exiting the main Reviewer before using the overlay (avoids dual scheduling; overlay auto-pauses when you enter main review)
Install
A. From AnkiWeb (recommended, once listed)
- Open Anki → Tools → Add-ons → Get Add-ons…
- Paste the code from the add-on’s AnkiWeb page
- Restart Anki
B. From this repo
- Download ZIP from GitHub → unzip (e.g.
moyu-anki-overlay)
- Anki → Tools → Add-ons → View Files → opens
addons21
- Copy the folder in as
moyu_anki_overlay (must contain __init__.py at the top level):
addons21/moyu_anki_overlay/
__init__.py
overlay.py
review_controller.py
config_dialog.py
config.json
manifest.json
...
- Fully quit and restart Anki
- Under Tools you should see Show/Hide Moyu Overlay and Moyu Overlay Settings…
C. Symlink (dev)
ln -sfn /path/to/moyu-anki-overlay \
"$HOME/Library/Application Support/Anki2/addons21/moyu_anki_overlay"
Windows (admin PowerShell):
New-Item -ItemType SymbolicLink `
-Path "$env:APPDATA\Anki2\addons21\moyu_anki_overlay" `
-Target "D:\path\to\moyu-anki-overlay"
Usage
- Start Anki and select a deck with due cards
- If auto-show is on, a pill appears near the top; otherwise Tools → Show/Hide Moyu Overlay (default
Ctrl+Shift+M / ⌃⇧M)
- Reveal answer: hover, or press reveal shortcuts (default Space / Enter), or a grade digit (also reveals when hidden)
- Touchpad / mouse: once the answer is visible, single-click defaults to Good, double-click to Hide, and triple-click to Again. Configure each action independently in settings (ratings, hide, undo, focus/reveal, or none). After switching windows, the first single-click only restores focus. Single/double actions wait for the system multi-click interval so triple-click cannot submit an intermediate grade. Dragging never grades.
Undo: Command+Z on Mac / Ctrl+Z on Windows restores the last overlay review and reopens its answer using Anki's native undo. A pending click is cancelled before submission. Undo is guarded against unrelated Anki edits, deck/profile switches, and main-window reviewing; it does not intercept typing in other fields.
- Keyboard grade (answer visible):
1 Again · 2 Hard · 3 Good · 4 Easy; Space/Enter grades per “After reveal” setting (default Good)
- After grading, the next answer starts hidden. Press a review key to continue immediately; only automatic hover waits for mouse leave/re-entry
- macOS full screen / Spaces: the overlay is an independent floating tool panel on all desktops, including full-screen apps. It can be opened while Anki itself is full screen and remains visible when switching apps. macOS 13+ additionally uses the native join-all-applications policy. The nonactivating panel can own keyboard focus while the browser remains the active app; pointer grading uses panel focus rather than requiring Anki to be active.
- Hold and drag anywhere on the text to move; double-click to hide silently. Drag either side to resize (330 px by default, saved). Questions, answers, and notes expand to their full content height. Only the complete card scrolls when it exceeds the available screen height.
Question → Space to reveal → 1–4 to grade → next card → Space to continue
Settings
Tools → Moyu Overlay Settings… or Tools → Add-ons → Moyu → Config
| Group |
Option |
Meaning |
| Appearance |
Opacity |
Pill transparency |
| Appearance |
Card width |
Default 330 px; wraps without truncating content |
| Appearance |
Show/Hide hotkey |
Global toggle |
| Appearance |
Auto-show on start |
Show after profile load |
| Font |
Family / size |
On Windows prefer a system CJK font |
| Reveal |
Shortcuts A / B |
Default Space, Enter |
| Reveal |
After reveal |
Grade when A/B pressed while answer shown |
| Grade |
Again/Hard/Good/Easy |
Digit (etc.) shortcuts |
Notes
- Anki must be running for reviews to be saved and synced.
- Hover reveals and focuses the overlay so keyboard review can continue directly.
- Don’t run main Reviewer and overlay together; overlay hides during main review.
- Renders the card HTML/CSS, preserving paragraphs, emphasis, lists and note styling. Field labels and typing controls are hidden. Surfaces default to opaque white with black ordinary text while explicit color highlights are preserved. Notes expand into available screen space; only content exceeding it scrolls. Template scripts do not execute in the overlay. Reveal keeps the same question DOM node and native geometry, with constant opacity. Unused transparent space is excluded from the input mask.
Publish to AnkiWeb
Official docs: Sharing Add-ons
- Build a
.ankiaddon (zip of folder contents, not the folder itself; no __pycache__):
cd /path/to/moyu-anki-overlay
./pack-ankiaddon.sh
# → dist/moyu_anki_overlay.ankiaddon
- Log in at AnkiWeb
- Open Share Add-on
- Fill Title (≤80 chars), optional tags / support URL, supported Anki version branches, and a Description (Markdown/HTML OK — you can paste CN+EN)
- Upload the
.ankiaddon file
- After approval listing, users install via Get Add-ons… with the numeric code on your add-on page
Updates: upload a new .ankiaddon on the same add-on page (same code). There is no public upload API — use the website.
Project layout
moyu-anki-overlay/
├── __init__.py
├── overlay.py
├── review_controller.py
├── config_dialog.py
├── config.json
├── config.md
├── manifest.json
├── pack-ankiaddon.sh # build .ankiaddon for AnkiWeb
├── docs/screenshots/ # README screenshots
├── README.md
└── README.zh-CN.md
Dev
- Restart Anki after code changes
moyu_debug.log may appear locally (gitignored)
- Do not commit
meta.json (user config / position)
License
Personal/learning tool. Free to modify and use; if you redistribute, please keep attribution.
Feedback
Issues welcome: install failures, shortcut issues, text-cleaning edge cases.