Last Updated: November 2026
The Table Stats plugin (table-stats) adds a small statistics panel at the table. A seated player sees, for each other player at the table, how that player has played in the hands the two of them played together, with the number of hands beside each line, and their own statistics. It is a player-advice feature, so it is off at real-money tables by default and allowed at play-money tables, where every player can see that it is on.
The plugin source is in plugins/table-stats (plugin API 1.4).
Enabling the Plugin
It’s sold separately as table-stats-<version>.tgz. Upload it under Extensions › Plugins with Upload plugin (see Installing the First-Party Plugins) and activate it:
| Capability | Why |
|---|---|
storage | Each player’s records about the players they sat with, the table rosters and each player’s panel choice |
users:read | Shows usernames in the panel (one batched lookup per request) |
hooks:player-actions | Reads the public betting actions of each hand (opt-in hook game:player:action) |
Settings
Extensions › Plugins, Settings on the Table Stats row:
| Setting | Default | Meaning |
|---|---|---|
| Enabled | On | Statistics for the whole site. Off: the server returns nothing and the panel is not offered. |
| Play-money tables | On | Statistics at play-money tables. |
| Real-money tables | Off | Statistics at real-money tables and at tournament tables. On an engine that shares its advice setting with plugins (API 1.4 gameSettings), the plugin follows the site’s one switch for player-advice features at real-money tables instead, and this switch is not used. In certified mode this switch cannot be saved on, and statistics stay off at real-money tables whatever either switch says. |
| Statistics about bots | On | Statistics about house bots, under the same rule as for players. Bots always carry the bot badge. |
| Tables without statistics | empty | Table ids, separated by commas or spaces, where statistics are off whatever the other switches say. This is the per-table switch: the table settings have no plugin section, so it lives here. |
| Keep statistics for (days) | 365 | A record not updated for this many days is deleted the next time its owner reads it. 1 to 3650. |
A table whose mode the engine does not report (an engine older than this plugin’s hook fields) counts as real money.
What the Panel Shows
The panel fills the table.hud.panel slot (the Extras rail on the standard table). For each other player it shows:
| Label | Definition |
|---|---|
| VPIP | Share of the hands counted in which the player voluntarily put chips in before the flop: a call, bet, raise or all-in in the first betting round. Blinds and antes are not voluntary; a check in the big blind is not either. |
| PFR | Share of the hands counted in which the player bet or raised before the flop. An all-in counts only as VPIP. |
| Flop | Share of the hands counted that reached the flop with the player still in. |
| Showdown | Share of the flops the player saw that went on to a showdown with the player in it. |
| (n hands) | The sample: the hands counted. |
Shares are whole percentages; with no sample the panel shows -. A player with no hands together yet shows "No hands together yet".
The fairness rules
- Only hands you played with them. Your record about another player is built only from hands you were both dealt into, at a table where statistics were on. A hand you did not play adds nothing. There is no site-wide statistic about anybody.
- Only what you could see. The statistics use public actions and whether a player went to showdown. Hole cards are never read, stored or shown, whether or not they were shown at showdown, and nothing comes from the deck record.
- Your own statistics cover all your own hands.
- Bots carry the bot badge; statistics about them follow Statistics about bots.
- Nothing is pushed to other players. The panel asks for your own records once when you join and at most once per finished hand (no more often than every 15 seconds), in one request for the whole table.
- Each player can hide their own panel ("Hide my statistics panel"), and show it again.
Disclosure before sitting
GET /api/v1/plugins/table-stats/tables/:tableId/disclosure (public) answers { statsOn, modeKnown }. A theme or the join dialog can read it to say "Statistics are on at this table" before a player sits. The core join dialog does: when the plugin is active it loads a small line on demand (client/src/components/game/TableStatsDisclosure.tsx) that asks this route and shows the line when statsOn is true. Inside the panel, every seated player sees the same line.
Theme Support
| Theme | Panel shown |
|---|---|
| Core standard table (and Pokerfest’s standard skin) | Yes, in the Extras rail |
| Neo | Yes |
| Play UI | Yes |
| Riverhouse | Yes |
| Felthouse | Yes (side column or Table sheet) |
| Wildcard UI | Yes |
| Pokerfest’s own table layout | No: that layout has no table.hud.panel slot |
Data, Retention and Account Closure
- Records live in plugin user storage under the owner (the viewer):
opp:<player>per player sat with,selffor their own statistics,preffor the panel choice. At most one record per pair of players; each record keeps its counters and the ids of its last 64 hands, which stop a replayed hand from counting twice. - When a player closes their account (or it is anonymised), their own records go with the rest of their plugin data, and every other player’s record about them is deleted too. A hard delete removes them through the foreign key.
- A record not updated within Keep statistics for days is deleted when read, and all of a player’s expired records are swept once a day when they open the panel. Records about an account are also deleted when an admin deletes it.
- Table rosters (
roster:<table>, global storage) hold the player ids at a table and its mode, and are ignored once six hours old.
For Developers
src/server/stats.tsis the one pure module that defines every statistic (handFacts,viewOf).src/server/aggregator.tsbuilds per-hand facts fromgame:hand:started,game:player:actionandgame:hand:completed. The completion hook runs no query; writes are batched a moment later, one read and one write per pair. A hand that started before a restart is not counted.src/server/config.tsholds the one rule (statsAllowed) every route and the aggregator use. It readsCERTIFIED_MODEthroughregistry.config.get, and the real-money switch from the engine’s advice setting throughregistry.gameSettings.get('advice.realMoneyAllowed')when the engine offers it (its ownrealMoneyTablessetting otherwise, or when the read fails).- Routes:
GET /tables/:tableId(signed in, only for a table the viewer is seated at, 403NOT_SEATEDotherwise),GET /tables/:tableId/disclosure(public),GETandPUT /me/preference(signed in; the write carries CSRF). No route takes a player id; signed-in routes are limited to 30 requests a minute per player. - Tests:
plugins/table-stats/src/__tests__/(npm testin the plugin) andsrc/core/plugins/__tests__/table-stats-plugin.integration.test.ts(PostgreSQL).