StudyStreak
A browser extension that counts the poker hands I drill on GTO Wizard.
Nothing is saved. Refresh to start over.
A Chrome and Brave extension that counts drill hands on GTO Wizard while you play them. There’s no start button and no session to remember: a content script notices each click that finishes a hand and adds one to today’s total. The popup is read-only, showing today’s count, the current streak, week and month totals, a thirty-day heatmap and a bar toward whatever target you’ve set.
GTO Wizard doesn’t track this itself, and I had no idea how long a feature request would sit. I’d set a goal to drill 100,000 hands this year, and I needed something that counted them.
The prompt
Give this to a coding agent to build your own StudyStreak. The prompt and the prototype are MIT licensed.
Build me a browser extension for Chrome and Brave that counts the drill hands I play on a poker training site and answers one question when I click the toolbar icon: am I still on the streak? It's passive. A script on the training site notices each hand I finish and adds one to today's count, and the popup is a read-only scoreboard. Every study tracker I tried wanted me to remember to start a session and remember to stop it. I never remember, so this one requires nothing of me except playing. ## Ask me first **Which site, and which click?** Mine watches GTO Wizard, where each hand ends with a click in the trainer's action bar. Ask which site I use and how you'll recognise the click that finishes a hand there. On "you choose", build it for GTO Wizard and keep the site match and the selector in one place. ## What I want **The popup.** About 360 px wide, dark, readable in a second without scrolling. A quiet header with the name in small spaced uppercase grey and a gear that opens settings. Then the hero card: today's hands, huge and white, and the streak, huge and amber with a flame in front, labelled "hands today" and "day streak". A streak of zero is an em dash, because a zero is a scold. **Week and month.** Two smaller cards with the hands from the last 7 and 30 days, labelled "week" and "month". Context, not the point. **The heatmap.** Thirty squares in one row under "LAST 30 DAYS", oldest left, today right with a thin amber outline. Green in four tiers (under 50, under 150, under 300, 300 and up), near-black for an empty day. Hover or focus shows `Mar 14 — 184 hands` or `Mar 14 — no hands`. **The goal bar.** `9,140 / 25,000` on the left, the percentage on the right, a thin bar beneath. With no goal, one grey line: "No goal set — configure in settings ⚙". **Settings.** The options page, about 480 px wide. Four sections, each with a green button and a status line that clears after a couple of seconds. Streak: "Days off per week", 0 to 2. Goal: target hands, an optional deadline, and "Start from current total (measures new hands only)". Import History: a CSV with Date and Hands columns that replaces everything after a confirm, then reports "Imported 214 days (3 rows skipped)." Export History: the same CSV, filename stamped with today's date. ## What it is not - Not a poker analysis tool. It counts reps, the way a gym log counts sets, and has no opinion about my decisions. - No start button, no stop button, no sessions and no manual entry. - No hand history, no leaderboard, no account and no server. - No merging on import, and no goal bar past 100%. ## Rules that matter - Never break the host page. Swallow any failure in the script's setup silently. A tracker that interrupts the thing it tracks is worse than none. - Training sites are single-page apps and browsers only inject content scripts on full page loads. Match the whole site and let the click check do nothing off the drill screen. - Buffer rapid clicks, write after a quarter-second pause, and flush when the tab hides or closes. - The lifetime total is a counter I keep, not a number scraped off the page. Hands on another machine don't count. I took that gap deliberately: scraping someone else's page breaks silently, and a tracker that lies is worse than one with a known blind spot. - The streak walks back from today and stops at the first day it can't excuse. With days off at zero, one empty day ends it. Days off are an allowance per calendar week, Sunday to Saturday, not a rolling seven days. - With the checkbox on, goal progress counts hands since the goal was saved, so a goal set on Tuesday doesn't read half-finished on Tuesday. - A missing day is a zero, not a gap. Get this wrong and the streak counts days that never happened. - Storage is the extension's local storage and nothing leaves the machine. `records`: local `YYYY-MM-DD` date and hands, only days with hands. `lastSeenTotal`: bumped in the same write as today's record. `goal`: target, deadline or none, startTotal. `daysOff`: 0 to 2. Build dates from local parts, never UTC, or a late session lands on tomorrow. - Import asks "Replace all hand records with the contents of this file? This cannot be undone." It accepts `YYYY-MM-DD` and `M/D/YYYY`, last value wins for a repeated date, and unreadable rows are counted. - It starts empty: dashes in the popup and "No goal set" until the first hand. - Accessibility: 44 px targets including the gear, visible focus, heatmap squares reachable by keyboard with their tooltip read out, status lines announced, reduced motion honoured. ## How it should feel Near-black, cards one step lighter, dense. White for today, amber for the streak and nothing else, blue for the secondary totals, green for progress. Tabular numerals everywhere, because the numbers change constantly and must not jiggle. Motion is the goal bar easing and buttons pressing in a hair. ## Building this This is a browser extension. Build one I can load into my browser, not a standalone web page. The prototype is the extension's interface rendered as a plain page: the layout and styling carry over; the manifest, permissions, content scripts and storage are still to write.