Anki Reflect โ€“ Session & Weekly Reflection

AnkiWeb addon 809246272

Generates narrative session and weekly study reflections with retention, FSRS metrics, growth graphs, and optional LLM insights from local Anki data.
AI-generated summary; may contain mistakes.

aiexportfsrsstatistics

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
1 (๐Ÿ‘ 1 ยท ๐Ÿ‘Ž 0)
Updated
2026-05-22
Anki versions
2.1.1~
Description language
en

Maintenance

active

  • Last update or commit was 132 days before the snapshot (2026-05-22).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.1+2026-05-22
History across monthly snapshots

Loadingโ€ฆ

Similar addons

README

Anki Reflect

A narrative-driven Anki add-on that generates rich, personalized study session reflections โ€” with FSRS metrics, retention trends, and animated growth graphs.

Anki Reflect hooks directly into your local database (mw.col.db) to analyze your daily or weekly study sessions, generating conversational insights and high-quality charts completely offline with zero binary dependencies.


โœจ Features

Feature Details
๐Ÿ“Š Session Overview Cards reviewed, time spent, avg speed, comparison to previous period.
๐ŸŽฏ Retention Analysis Mature card retention %, correct/total breakdown, and a visual HTML/SVG ring chart.
๐Ÿ” Lapse Tracking "Again" press rate with contextual narrative commentary.
๐Ÿง  FSRS Metrics Median stability, mean difficulty, Estimated Total Knowledge (expected recall count), and struggling card %
๐Ÿ“ˆ Growth Graphs Pure Python SVG graphs (Mature Card Growth, Daily Review Volume, FSRS Stability Distribution). Fully responsive and crisp on Retina/High-DPI screens without requiring matplotlib or compiling C-extensions.
๐Ÿ’ก Narrative Insights Offline, deterministic Python template engine generating conversational, personalized reflections.
๐Ÿค– Optional LLM Plug in an OpenAI or Anthropic key in the config to receive AI-generated narrative reflections.
โฌ‡๏ธ Export Save your study reflections as a standalone HTML file.

๐Ÿš€ Installation & Setup

Development Setup (from source)

If you've cloned this repository directly into your Anki add-ons folder, or have symlinked it:

# Symlink this folder into Anki's add-ons directory
ln -s "$(pwd)" ~/Library/Application\ Support/Anki2/addons21/anki_reflect
# (Linux: ~/.local/share/Anki2/addons21/anki_reflect)
# (Windows: %APPDATA%\Anki2\addons21\anki_reflect)

Restart Anki to load the add-on.


๐ŸŽฎ Usage

Once loaded, go to Tools โ†’ Generate Session Reflection in your Anki menu.

The report will display in a beautiful, dark-mode glassmorphic interface:

  • Session Overview โ€” key stats at a glance
  • Retention & Lapses โ€” accuracy and lapse rate commentary
  • Metric Breakdown โ€” detailed comparison table of current vs previous sessions
  • FSRS Insights โ€” deep dive into stability distributions and knowledge accumulation
  • Mature Card Growth & Volume โ€” clean, responsive timeline charts
  • Reflection & Insights โ€” final motivational commentary

โš™๏ธ Configuration

Settings can be changed by going to Tools โ†’ Add-ons โ†’ Anki Reflect โ†’ Config:

{
  "report_scope": "today",
  "mature_threshold_days": 21,
  "graph_theme": "dark",
  "llm_enabled": false,
  "llm_provider": "openai",
  "llm_api_key": "",
  "llm_model": "gpt-4o-mini"
}
  • report_scope: "today", "week", or "month".
  • mature_threshold_days: The interval threshold (in days) at which a card is classified as mature.
  • graph_theme: Choose "dark" or "light" to match your system aesthetics.
  • llm_enabled: Enable to generate narrative paragraphs via OpenAI/Anthropic. Requires a valid API key.

See config.md for more details.


๐Ÿ—๏ธ Structure

.
โ”œโ”€โ”€ __init__.py          # Entry point โ€” registers menu action & hooks
โ”œโ”€โ”€ manifest.json        # Anki add-on metadata
โ”œโ”€โ”€ config.json          # Default user config
โ”œโ”€โ”€ config.md            # Config documentation (rendered inside Anki)
โ”œโ”€โ”€ _version_info.py     # Version specification
โ”œโ”€โ”€ data/
โ”‚   โ”œโ”€โ”€ queries.py       # SQL queries targeting mw.col.db
โ”‚   โ””โ”€โ”€ fsrs_metrics.py  # FSRS parsing and stats calculation
โ”œโ”€โ”€ report/
โ”‚   โ”œโ”€โ”€ builder.py       # Report orchestration pipeline
โ”‚   โ”œโ”€โ”€ graphs.py        # Offline Python SVG graph generator
โ”‚   โ”œโ”€โ”€ insights.py      # Conditional narrative engine & LLM api client
โ”‚   โ””โ”€โ”€ templates/
โ”‚       โ”œโ”€โ”€ report.html.j2 # Jinja2 HTML report template
โ”‚       โ””โ”€โ”€ styles.css    # Premium glassmorphic styles
โ””โ”€โ”€ ui/
    โ”œโ”€โ”€ menu.py          # Action hooks
    โ””โ”€โ”€ dialog.py        # PyQt WebEngine window

๐Ÿ“œ License

MIT ยฉ Mohammad Hemmati