Statistics
stats — Recurring errors
Groups the errors of a filter by game plan and by theme, the most costly first: the Recurring errors table of the Errors tab of the Stats panel (see Stats Panel). Global statistics remain under list --type stats.
./blunderdb stats recurring --db <fichier> [options]
Options:
--player <nom>— Only the decisions of this player.--opponent <nom>— Only the matches played against this player; with--player, the other seat.--tournament <ids>,--from <AAAA-MM-JJ>,--to <AAAA-MM-JJ>,--decision-type all|checker|cube— The same filter aslist --type stats.--limit <n>— Number of groups shown in text (default 20,0for all).--format text|json— The JSON carries each group with the full list of its positions.--quiz— Draws positions at random from those of the three costliest groups (--quiz-size <n>, default 20) and prints them: these are the identifiers that the quiz andquiz_gradejudge. In JSON, theQuizfield.--deck <name>— Creates an Anki deck of that name, filled with all the positions of the three costliest groups.--group <rank>— With--quizor--deck: the group of that rank (1 for the costliest) instead of the first three.
A checker play theme is gammon, blots, point or passive; a cube theme is offer_missed, offer_premature, answer_wrong_pass or answer_wrong_take. Errors that no rule names leave the ranking: they are listed apart, one line per game plan (Unthemed field in JSON), because the explanation only speaks from 60 mp, above the Error threshold. The COST (PR) column is the share of the filter’s PR that the group represents.
Examples:
./blunderdb stats recurring --db base.db --player "Alice"
./blunderdb stats recurring --db base.db --decision-type checker --format json
./blunderdb stats recurring --db base.db --quiz --format json
./blunderdb stats recurring --db base.db --group 1 --deck "Mon pire groupe"
stats plan — The study plan of the filter, like the Study plan card of the dashboard (see Study plan): the mistake families (game plan × theme) ranked by recoverable MWC, the sum over their mistakes of the loss minus the difficulty, with a 95% interval. A family enters the plan from 5 priced mistakes and an interval above zero; the others are listed apart, to be confirmed (Tentative field in JSON). Mistakes without a theme and those without MWC (free game) are only counted (Unthemed, Unpriced).
./blunderdb stats plan --db <fichier> [options]
Same filter options as stats recurring, plus:
--limit <n>— Number of families shown in text (default 10,0for all).--quiz(--quiz-size <n>, default 20),--deck <name>— As forstats recurring, on the positions of the top three families.--queue— Prints the study queue of these families, one position per line, the largest gap to the reference player first (JSON:Queue).--family <rank>— With--quiz,--deckor--queue: the family of that rank (1 for the first) instead of the first three.
./blunderdb stats plan --db base.db --player "Alice"
./blunderdb stats plan --db base.db --player "Alice" --quiz --format json
./blunderdb stats plan --db base.db --family 2 --queue
stats effect — The before/after of each studied family, like the Before/after study card of the dashboard (see Before/after study): the date of the first study action on one of its positions, the loss rate in MWC per 100 decisions of its plan and kind before and after that day, the gain and its 95% interval, and the verdict (improved, worse, undetermined, insufficient under 30 decisions per window).
./blunderdb stats effect --db <fichier> [options]
stats biases — The filter’s signed biases, like the Signed biases card (see Signed biases): take/pass, doubles (overall and by score) and blots, each with its two counts and their cost, the bias, its 95% interval and the verdict (too_much, too_little, balanced, insufficient under 20 decisions). Money play has its own money row and a post-Crawford score is read as 1 point; the share of checker plays that could not be replayed is given under the table.
./blunderdb stats biases --db <fichier> [options]
Same filter options as stats recurring (--player, --opponent, --tournament, --from, --to, --decision-type, --format).
./blunderdb stats effect --db base.db --player "Alice"
./blunderdb stats biases --db base.db --player "Alice" --format json
stats tournament — The review of a tournament for one player, like the Review button of the Tournaments panel (see tournament review): PR and MWC loss (7-pt eq.) against the usual level of the previous 365 days, by round, by rank of the decision in the match, by score (dmp, crawford, post_crawford, other) and by pace (quick, considered), each with its 95% interval and a verdict (worse, better, usual, insufficient without an interval, under 20 decisions on one side or under 5 usual matches), then at most three error families of the tournament.
./blunderdb stats tournament --db <fichier> --id <n> [--player <nom>]... [--format text|json]
Without --player, the player is the one in the most matches of the tournament. --player repeats to review several players in one call. With JSON, one player gives an object and two or more a list, in the order asked; a script whose number of players varies uses the stats.tournamentReviews route (or GetTournamentReviews), which always returns a list.
./blunderdb stats tournament --db base.db --id 3
./blunderdb stats tournament --db base.db --id 3 --player "Alice" --player "Bob" --format json
stats training — The Decision quiz PR, the match PR and Anki retention, folded by calendar window, like the Training tab of the Stats panel (see Stats Panel).
./blunderdb stats training --db <fichier> [options]
Options:
--window week|month— The calendar window (defaultweek).--player <name>,--tournament <ids>,--from <YYYY-MM-DD>,--to <YYYY-MM-DD>,--decision-type all|checker|cube— The match filter; the quiz and Anki journals carry no player.--format text|json— The JSON also carries the list of quiz sessions; text and JSON both give the quiz PR by plan of play.
Each series keeps its sample count: a window without decisions is a dash in text and a zero count in JSON, never a zero value.
Examples:
./blunderdb stats training --db base.db --player "Alice"
./blunderdb stats training --db base.db --window month --format json
stats h2h — Two players against each other: the matches they played together, each one’s PR in every match and overall, and the record of the matches played to completion.
./blunderdb stats h2h --db <fichier> --player <nom> --opponent <nom> [options]
stats contrast — The positions two players both had to play and where one played well (below the Error threshold) and the other did not, widest gap first; a player is judged on their worst play of the position. --limit N keeps the first N lines of the text; the JSON gives everything, with the position_id values.
./blunderdb stats contrast --db <fichier> --player <nom> --opponent <nom> [options]
stats windows — PR over a rolling calendar window: one row per month, each covering that month and the preceding ones of the window (--window month, quarter or a number of months).
--by-phase splits each window by game phase (opening, middle game, race, bear-off…): under each line, one line per phase with its matches, its decisions and its PR, the same figures as the per-phase breakdown of stats breakdown restricted to the window; a phase without a counted decision in the window does not appear. The HTTP daemon returns them in per_phase when the stats.prByWindow request carries "byPhase": true.
./blunderdb stats windows --db <fichier> [--player <nom>] [--window quarter] [--by-phase]
stats ranking — The ranking of players by PR, lowest first, among those with at least --min-decisions counted decisions (500 by default); two equal PRs share a rank. --limit N keeps the first N.
./blunderdb stats ranking --db <fichier> [--min-decisions 1000] [--limit 20]
stats engines — The analysis engines present in the database, under the exact name --engine expects; the same choice as the Engine menu of the Stats panel.
./blunderdb stats engines --db <fichier> [--format json]
Common options: --tournament <ids>, --from <YYYY-MM-DD>, --to <YYYY-MM-DD>, --decision-type all|checker|cube, --format text|json, and the provenance filter --engine <name> (the analysis engine, exact name) and --min-depth <n> (the minimum analysis depth), which list --type stats and list --type players also accept. h2h and windows read the per-match statistics and refuse the provenance filter, which applies to each decision.
Examples:
./blunderdb stats h2h --db base.db --player "Alice" --opponent "Bob"
./blunderdb stats contrast --db base.db --player "Alice" --opponent "Bob"
./blunderdb stats windows --db base.db --player "Alice" --window quarter --format json
./blunderdb stats ranking --db base.db --min-decisions 1000 --limit 20
./blunderdb list --type stats --db base.db --player "Alice" --min-depth 3
stats matches — The matches a corpus figure counts: those where the player (every player without --player) has a decision counted under the filter, from oldest to most recent. Their identifiers are passed to list --type matches --ids.
./blunderdb stats matches --db base.db --player "Alice" --from 2025-01-01 --to 2025-03-31
./blunderdb list --type matches --db base.db --ids 12,15,31
stats tournaments — The tournaments the Dashboard’s tournament count counts: those holding a counted decision of the player (of any player without --player) under the filter, by ID.
./blunderdb stats tournaments --db base.db --player "Alice" --from 2025-01-01
./blunderdb stats tournaments --db base.db --format json
stats progression — The PR of each match in date order, the PR of each tournament and the rolling PR over the last N decisions: the Progression tab of the Stats panel (see Stats Panel).
./blunderdb stats progression --db <fichier> [options]
Options:
--player <nom>,--tournament <ids>,--from <AAAA-MM-JJ>,--to <AAAA-MM-JJ>,--decision-type all|checker|cube— The same filter aslist --type stats.--format text|json— The JSON carries the matches, the tournaments and the rolling PRs.
Examples:
./blunderdb stats progression --db base.db --player "Alice"
./blunderdb stats progression --db base.db --format json
stats breakdown — The PR of the filter broken down by game phase, game plan, comment tag, score (away against away) and cube action, with the direction of cube errors: the Breakdowns tab of the Stats panel (see Stats Panel). The options are those of stats progression.
./blunderdb stats breakdown --db <fichier> [options]
Examples:
./blunderdb stats breakdown --db base.db --player "Alice"
./blunderdb stats breakdown --db base.db --format json
stats summary — The filter’s level without any identifier: counts, PR (checkers, cube) and its 95 % interval, MWC loss per 7-point match, PR by game phase and by score, each row with its count and its interval. No position, match, tournament, opponent or tag appears in it, nor the costliest decisions: it is what a public profile or a business card can show without disclosing anything. The HTTP daemon serves it at the stats.summary route; stats.compute is unchanged. The options are --player, --tournament, --from, --to, --decision-type and --format; there is no --window.
./blunderdb stats summary --db base.db --player "Alice"
./blunderdb stats summary --db base.db --player "Alice" --format json
stats report — The HTML report of the Stats panel (see The HTML report): the filter’s indicators and its ten costliest decisions with their diagram, in a single self-contained file that the browser prints to PDF. The HTTP daemon serves it at the stats.report route, from the same generator.
./blunderdb stats report --db <fichier> --html [options]
Options:
--html— Required: HTML is the only format.--output <fichier>— The file written (default: standard output).--lang <code>— The report language:fr,en,de,el,es,fi,it,jaorru(defaulten).--player <nom>,--tournament <ids>,--from <AAAA-MM-JJ>,--to <AAAA-MM-JJ>,--decision-type all|checker|cube— The filter: the report names its scope.
The diagrams are drawn there with the default palette; only the graphical application uses the board palette chosen on screen.
Examples:
./blunderdb stats report --db base.db --html --output rapport.html
./blunderdb stats report --db base.db --html --player "Alice" --lang fr