Skip to content
← All work

My own product - live · 2026

A raffle platform that runs a whole event from a phone

A mobile-first PWA that takes an in-person basket raffle from ticket sales through the draw, with no app store and no cash box.

smoothraffle.com →
automated tests
2,300+
schema migrations
45
runtime dependencies in the API
3
  • The Buy tickets screen: a running ticket count, then bundles such as 1 ticket for $1 and 6 tickets for $5, each marked with the prize tier it buys into.
    Buying tickets. Each bundle is tied to a prize tier.
  • The prize list: numbered baskets with their tier, contents, rough value and how many tickets are in so far.
    The prizes a guest sees after scanning the code at the door.
  • The organizer draw screen: three baskets with a Draw winner button marked App draw, and one marked Paper draw with a field for the winning stub number.
    The draw. App draws and paper draws sit side by side.

Context

In-person basket raffles and 50/50 draws are still run on paper: pre-printed tickets, a cash box, handwritten basket lists, and a volunteer reading names off stubs at the end of the night. Organizers lose track of which tickets went into which basket, and patrons can only spend the cash they walked in with.

The problem

Replace the paper: card and wallet payments at the door, and a draw nobody can dispute, without an app store review cycle or rented hardware.

What I did

  • -Built it as an installable PWA: home screen on iOS and Android, no store submission, no store fees.
  • -Modeled baskets, items, ticket types and tiers so a given ticket tier can only be entered into the baskets it qualifies for - the rule organizers had been enforcing by hand.
  • -Wired Stripe for card, Apple Pay and Google Pay as browser capabilities, which needs a verified domain rather than an Apple Developer membership.
  • -Added QR-code invites, cash sales alongside wallet sales, and email and SMS notification for winners.
  • -Made the digital draw checkable. The server publishes the SHA-256 of a secret seed before drawing and reveals the seed afterwards, so anyone can recompute the winner from the seed and the entry list. A basket drawn by hand from a bucket is recorded as exactly that, with no fairness claim attached.
  • -Gave every event its own roles and made them deny by default: a person with no role on an event has no access to it, rather than being treated as a guest.
  • -Put the rules that protect the money into CI. Every amount is integer cents, every SQL value binds as a parameter, and a build that breaks either rule does not ship.

Integrations

Stripe Payments and payouts
Card, Apple Pay and Google Pay at the door. Each organizer onboards through Stripe Connect, and a ticket sale is a direct charge on that organizer's own account. Refunds, webhook signature checks and the Connect calls are plain REST, with no SDK in the money path.
Twilio Email and text
Sign-in links, winner notices and reminders for prizes not yet collected. Texts go only to people who ticked a consent box that is kept separate from every other agreement.
Google Sign-in and venue lookup
Sign in with Google beside an emailed magic link. Venue search is proxied through the API, so the Places key never reaches a browser.
Web Push Alerts on the phone
Notifications to an installed phone through the browser's own push service, with no app store and no third-party push vendor.
Cloudflare Hosting, data and jobs
The API on Workers, data in D1 and photos in R2. Open phones get updates over server-sent events, and an hourly scheduled job checks abandoned checkouts against Stripe before releasing their tickets.

Outcome

A live product that runs a full event on hardware the volunteers already own: catalog, ticket sales, allocation, the draw, winner notification.