Skip to content
All work

2026 · Full stack

Friendly Bet

A Progressive Web App for small friendly bets, using browser fingerprinting for lightweight user identification and a real-time database for live scores.

A closer look

Friendly Bet

Betting between friends, without an account

Repository

friendly-bet-app

pushed 15 Jul 2026

Commits in the last year

3

Language bytes

  • TypeScript135k
  • JavaScript1k
  • CSS0k

The problem

Splitting a bet between friends usually means a spreadsheet, a group chat and a rule everyone half-remembers. There is no owner to ask and no way to settle it without an argument.

What I built

  1. 01

    Browser fingerprinting identifies a returning player without a login form, so starting a bet takes seconds.

  2. 02

    Firestore keeps scores live, so the number on screen is the number everyone agrees on.

  3. 03

    Route handlers cover the whole lifecycle: creating a bet, wagering on it, voting, resolving, and disputing a result.

  4. 04

    An admin API approves or rejects accounts and reads transactions, so someone has to be in charge of the money side.

  5. 05

    A service worker and manifest make it installable, which is what people actually use at a pub table.

What it changed

  • No account needed to place the first bet.

  • Every resolution is a recorded state change rather than a promise.

  • Runs as an installed app rather than a bookmarked tab.