PROJECT CASE STUDY
Hazari Card Game Scoring: An Offline Scorekeeper Friends Can Watch Live
A free, installable scorekeeper for the Hazari card game in English and Bangla. It works offline and can share a read-only live scoreboard by link.
The problem
Hazari is scored over many rounds, usually on paper or in a phone note, and running totals are easy to get wrong. Players at the table or watching from elsewhere also want to see who is leading without asking the scorer to read the numbers out.
How it works
The scorer enters each round on a large keypad built for one-handed use on a small phone. Round totals are checked against the game rules, with a confirmation step when a round does not add up. Scores, rounds and recent player names stay on the device in IndexedDB, so scoring works with no connection once the app has loaded.
The scoring rules are a small, pure TypeScript module with unit tests, kept separate from the interface and storage. The app is a React 19 and Vite progressive web app that can be installed on a phone, with English and Bangla text and optional Bangla digits.
Live sharing is deliberate and read-only. The scorer starts sharing as a guest, with optional Google sign-in, and friends open a link to watch the leaderboard update. Spectators cannot change scores, and a shared link can be revoked or expires. Firebase is used only for this sharing, and the scoreboard shows leader, dealer and streak highlights for viewers.
Results and limits
The app is live and has been used for roughly 80 games so far, according to its owner. It has a unit test suite for the scoring rules and browser tests for the main flows, including offline use and accessibility checks.
Rules for Hazari differ between regions, so the app follows a standard four-player rule set with an adjustable target and round total. It is a scorekeeper first. A practice mode plays against three computer opponents, but the app does not deal cards for a table of friends and has no online multiplayer.