Search Stats Extended
Like the new anki stats screen? Want more? This is the addon for you.
Config
-
pinnedGraphs: Graph cards selected with the star beside their heading. Favorites appear above Anki's native graphs, remain accessible when their category is collapsed or hidden, and are remembered in pin order. Star a card again to return it to its category. See Favorite graphs.
-
hiddenGraphs: Graph cards hidden with their Hide button, including favorites. Use Show hidden graphs at the top of Statistics to reveal them temporarily, then Unhide to restore individual cards. Hidden choices are saved; the reveal toggle starts off each visit. See Hidden graphs.
-
activeRetrievabilityThresholds: Editable Time Active Γ Average R cutoffs in Lapse (defaults: daysLower: 30, daysUpper: 180, rLower: 80, rUpper: 90). Time includes suspended periods and both introduction and current Anki days; Average R samples each dayβs final replayed state, using now for today. Full history and current presets load automatically when visible. Incomplete histories are reported and excluded. See stability metrics.
-
exposureStabilityThresholds: Four editable cutoffs for the Exposure Γ Stability matrix in the Lapse section. Defaults: repsLower: 5, repsUpper: 30, s90Lower: 7, s90Upper: 30. The middle bands include both endpoints. Apply thresholds in the panel to save them. Cells and row/column/diagonal totals show active studied card counts and scheduled daily load from stored intervals, using the same formula as Future Due's Daily load; new and inactive cards are excluded. The S90 cutoffs also define Maturing and Matured in the Introduced section's Daily maturation graph. See stability metrics.
-
loadDelayMs: The number of ms to delay before displaying the search stats, Increasing this can help if the search stats appear above the regular stats (Though even with 0ms this doesn't tend to happen)
-
autoRevlogStats: If false, graphs which itterate over every review for the cards in the selection will be hidden by default prompting the user to press a button to load them.
-
autoMemorisedStats: Automatically request historical Memorised calculations when review history loads. When disabled, calibration, UM+, ROC and RWKV daily Calculate actions load their data independently; Memorised panels retain their own Calculate button. An empty FSRS prediction cache still requests replay for calibration.
-
barWidth, barHeight: Change the RESOLUTION at which the bar/candlestick charts are rendered. This can also be used to change their aspect ratio.
-
piePercentages: While true, A third percentage column is added to all pies.
E.g.

Has no effect on Card Count Time Machine.
-
warnings: If set to false, removes any text warning of the cutoff date in the review graphs (denoted by yellow).

-
trends: If set to false, disables trend lines.
-
categories Automatically set when you open and close a tab, can also be set to "removed" to omit the tab entirely
-
forceLang Allows you to force a specific language regardless of what Anki's language is set to.
The Graphs
Here are some examples:
And more:
- Future Due Types
- Future Due Retention
- Intra Day Due
- Todays Retention
- Custom pie
- Review Speed Trend
- SxR Heatmap
- Interval Distribution
- Interval Load
- Lapse Load
- Lapse Distribution
- Lapse Total
- Repetition Load
- Repetition Distribution
- Repetition Total
- Time Distribution
- Time Totals
- Introduced
- Forgotten
- Introductory Rating
- Ratings
- Interval Ratings
- Time Ratings
- Load Trend
- Learn Reviews per Card
- Memorised
- Review Recall and Gain (with or without each answer at a chosen horizon)
- Model Calibration (one or two selected FSRS/RWKV models)
- Model UM+ Comparison (FSRS, current RWKV, and individual RWKV models)
- Model ROC Comparison (any two FSRS/RWKV models)
- Model Current Disagreement (any two models' current card predictions)
- Daily Recall Gap (compare selected models with all-review daily recall)
- Stability Time Machine
- Difficulty Time Machine
- Stability Over Time
- Card Count Time Machine
- Review Interval Time Machine
- Daily Hourly Breakdown
Development
Building this with make works on linux and will probably work on mac
Cloning the Repository
To clone the repository along with its submodule (the Anki codebase), you should use the following command:
git clone https://github.com/Luc-Mcgrady/Anki-Search-Stats-Extended.git --recursive --shallow-submodules
Link the cloned repository to Anki's addons folder
[!NOTE]
This step can be skipped if you have cloned the repo directly into the addon folder.
Once the repo has been cloned, you can add a symlink from this repo to Anki's addon folder so that the addon will be included next time you start Anki
For Linux or MacOS:
ln -s PATH_TO_CLONED_REPO PATH_TO_ANKI_ADDONS_FOLDER/Anki-Search-Stats-Extended
For Windows:
mklink /D "PATH_TO_ANKI_ADDONS_FOLDER\Anki-Search-Stats-Extended" "PATH_TO_CLONED_REPO"
Build the addon
Linux / Mac
run make to setup source files
make
Then every-time you make any changes run make again.
Mac Proto Issues
It is possible that you may run into issues with protoc on mac.
https://github.com/Luc-Mcgrady/Anki-Search-Stats-Extended/issues/22#issue-2769153566
Windows
You need to make the file src/ts/proto and then generate the proto files by running
npm i
npx protoc \
-I anki/proto \
--es_out src/ts/proto \
--es_opt target=ts \
anki/proto/anki/*.proto \
Then whenever you want to build changes
npm run build
I haven't actually tested this so good luck.
Check the makefile for more information
Due to the way its set up you don't have to reload anki for javascript changes, you only have to run make/build again and reload the stats menu.
If you have any cool graph idea's then let me know or just pull request and make it yourself.
License
All files in this repository are licenced under "GPL-3.0-only"
Copyright 2023 Luc McGrady and contributors.