A small local web app + helper server for mining subtitles into Anki.
aniplayer.html— main web UI (open in browser or served by the backend)aniplayer.js— frontend logic and controlsstyles.css— frontend stylesserver.py— lightweight backend: static file server plus API endpoints
- Python 3.8+
- FFmpeg available on
PATH(for audio/screenshot extraction) - Anki with the AnkiConnect plugin (for adding cards)
- Optional:
ANTHROPIC_API_KEYenvironment variable for LLM chat features
- Start the backend server:
python server.py- Open the player in your browser:
http://localhost:8766/aniplayer.html
server.pywill print diagnostics on startup (FFmpeg found, Anki reachable, Anthropic key).- The backend exposes helper endpoints used by the frontend (lookup, anki add, chat).
- If you prefer, you can open
aniplayer.htmldirectly from the filesystem, but some features (Anki/LLM/lookup proxy) require the backend.
Title (homepage):
Dual (how it works):
AI chatbox:
MIT — feel free to reuse and modify.


