Table Stats

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:

CapabilityWhy
storageEach player’s records about the players they sat with, the table rosters and each player’s panel choice
users:readShows usernames in the panel (one batched lookup per request)
hooks:player-actionsReads the public betting actions of each hand (opt-in hook game:player:action)

Settings

Extensions › Plugins, Settings on the Table Stats row:

SettingDefaultMeaning
EnabledOnStatistics for the whole site. Off: the server returns nothing and the panel is not offered.
Play-money tablesOnStatistics at play-money tables.
Real-money tablesOffStatistics 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 botsOnStatistics about house bots, under the same rule as for players. Bots always carry the bot badge.
Tables without statisticsemptyTable 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)365A 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:

LabelDefinition
VPIPShare 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.
PFRShare of the hands counted in which the player bet or raised before the flop. An all-in counts only as VPIP.
FlopShare of the hands counted that reached the flop with the player still in.
ShowdownShare 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

ThemePanel shown
Core standard table (and Pokerfest’s standard skin)Yes, in the Extras rail
NeoYes
Play UIYes
RiverhouseYes
FelthouseYes (side column or Table sheet)
Wildcard UIYes
Pokerfest’s own table layoutNo: 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, self for their own statistics, pref for 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.ts is the one pure module that defines every statistic (handFacts, viewOf).
  • src/server/aggregator.ts builds per-hand facts from game:hand:started, game:player:action and game: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.ts holds the one rule (statsAllowed) every route and the aggregator use. It reads CERTIFIED_MODE through registry.config.get, and the real-money switch from the engine’s advice setting through registry.gameSettings.get('advice.realMoneyAllowed') when the engine offers it (its own realMoneyTables setting otherwise, or when the read fails).
  • Routes: GET /tables/:tableId (signed in, only for a table the viewer is seated at, 403 NOT_SEATED otherwise), GET /tables/:tableId/disclosure (public), GET and PUT /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 test in the plugin) and src/core/plugins/__tests__/table-stats-plugin.integration.test.ts (PostgreSQL).
Try the live demo Pricing

Have questions about Poker Engine? We reply fast.