- roleWeb organizer, Hack Western
- timelineHack Western 12 → 13
- stackNext.js, tRPC, Drizzle, Cloudflare R2
- impact600+ badges replaced for 500+ hackers
Every accepted hacker generates a pass from their dashboard: an Apple .pkpass served from R2, or a Google Wallet object signed through a service account. The QR on it is their identity for check-in, 9 meals, 13 events and the scavenger hunt.
Context
Hack Western’s site carries the whole hacker lifecycle: application, review, acceptance, then the dashboard people use during the event. The wallet pass is where the digital half meets the physical one. It’s what someone holds up at a door, a meal line, or a workshop table.
Because the same QR drives check-in and the points system, the pass isn’t just a convenience. It’s a credential, and it needed to behave like one.
Passes
The two platforms want different things. Google’s pass is a generic object created against an issuer through a service-account JWT. Apple’s is a signed .pkpass bundle, which the site stores in Cloudflare R2, handing back the newest one for that hacker. Both start from the same user record and the same generated QR.
My work here was the manual pass creation path and, later, the gating around it. The initial QR and wallet plumbing was a teammate’s.

The hole, and closing it
The QR encodes a user id and nothing more, and generation only required being signed in. An applicant who was still pending, rejected or waitlisted could produce a fully working pass. The scan endpoint checked that the scanner was an organizer, but never the status of the person being scanned, so scanning an unapproved pass still awarded points, meals and redemptions.
Closing it meant one shared approval predicate rather than two separate checks that could drift, applied at both the generate and the scan boundary, plus tests over the scavenger hunt flow that depended on it.

The rest of the loop
The pass only matters because of what it unlocks, and most of that was the same stretch of work: the scavenger hunt endpoints, the scan table, redemptions and prize quantities, the backend that turns a scanned QR into points somebody can spend.