Re: PokerTH Web Client
Posted: Sun Jul 26, 2026 11:19 am
Done — it's in the web client as of build 2.1.4-web.64.
How it works: you pick a folder once (Advanced options → Logs → "Automatic .pdb file" → Choose folder…), and from then on the client writes a real SQLite .pdb into that folder and rewrites it after every hand.
A few details that should matter for your tool:
- Same schema as the desktop client (LogVersion 1, the five tables Session / Game / Player / Hand / Action), same file name (pokerth-log-<date>_<time>.pdb), one file per session.
- Same action strings — "posts small blind", "calls", "is all in with", "shows", "wins", "wins (side pot)", "sits out", and so on. Bet and Raise are both logged as "bets", like the desktop client does.
- Cards are the raw 0..51 integers, no conversion. Action.Player is the seat number.
- The file is committed atomically, so your app will never catch a half-written file mid-update.
So existing tools should read it as-is. If yours chokes on anything, tell me exactly where and I'll fix it.
One browser limitation worth knowing: writing into a local folder needs the File System Access API, which means desktop Chrome, Edge and Opera. On Firefox and Safari the option is greyed out, and you still have the manual "Export session" / "Export all history" .pdb buttons. It's off by default everywhere; the folder permission is asked once and remembered across sessions.
Since you're clearly doing stats work, one more thing you may not have noticed: the web client already has its own hand recorder, a stats panel and an optional per-seat HUD — VPIP, PFR, aggression, fold stats, hands played and won, plus a 13×13 range grid per player at showdown. If you were hoping for improvements on that side, or if there are numbers or export formats you'd want that aren't there yet, don't hesitate to say which options would be welcome. Much easier to build the right thing than to guess at it.
How it works: you pick a folder once (Advanced options → Logs → "Automatic .pdb file" → Choose folder…), and from then on the client writes a real SQLite .pdb into that folder and rewrites it after every hand.
A few details that should matter for your tool:
- Same schema as the desktop client (LogVersion 1, the five tables Session / Game / Player / Hand / Action), same file name (pokerth-log-<date>_<time>.pdb), one file per session.
- Same action strings — "posts small blind", "calls", "is all in with", "shows", "wins", "wins (side pot)", "sits out", and so on. Bet and Raise are both logged as "bets", like the desktop client does.
- Cards are the raw 0..51 integers, no conversion. Action.Player is the seat number.
- The file is committed atomically, so your app will never catch a half-written file mid-update.
So existing tools should read it as-is. If yours chokes on anything, tell me exactly where and I'll fix it.
One browser limitation worth knowing: writing into a local folder needs the File System Access API, which means desktop Chrome, Edge and Opera. On Firefox and Safari the option is greyed out, and you still have the manual "Export session" / "Export all history" .pdb buttons. It's off by default everywhere; the folder permission is asked once and remembered across sessions.
Since you're clearly doing stats work, one more thing you may not have noticed: the web client already has its own hand recorder, a stats panel and an optional per-seat HUD — VPIP, PFR, aggression, fold stats, hands played and won, plus a 13×13 range grid per player at showdown. If you were hoping for improvements on that side, or if there are numbers or export formats you'd want that aren't there yet, don't hesitate to say which options would be welcome. Much easier to build the right thing than to guess at it.