youssef bimezzagh
← all posts

i auctioned the ad spots on my t-shirt

inspired by @marclou, i sold the ad spots on my t-shirt.

i wore one white tee for all three days of wave by vento in turin, 7–9 october 2026. 12 print spots. spots started at €25. bidding closed on 1 october. the money was for a week in san francisco.

all 12 spots sold.

the problem

a conference is full of people looking at people. a t-shirt is a billboard nobody sells.

my pitch: cheaper per 1,000 impressions than linkedin ads.

but selling 12 spots to strangers is messy. who gets which spot? what if two people pay at the same second? what if someone gets outbid, do i refund them by hand? i didn't want to do any of that by hand.

so i built an auction.

what it does

people bid on a spot, pay by card, and the highest bid on each spot gets printed. if you're outbid, you're refunded automatically.

the details:

  • 12 spots on the front, sleeves and back, each with its own size, opening price and description
  • outbid rule: beat the leader by 30% and at least €10, rounded up to a multiple of 5
  • full payment up front, with stripe checkout
  • a logo preview on the tee before you pay
  • a live wall of sponsors and a leaderboard
  • lead buyer takeover: the brand that has spent the most sits at the top, and anyone can take all of its spots in one payment
  • an admin page to approve or reject logos, add sponsors who paid off-site, and retry refunds
  • english and italian, and visits stored as country + timestamp only, no ip

the live site was itechweek.youssbim.com.

how it works

the whole thing is about one rule: money only moves when the database says so.

bid
 |
 v
pending row (supabase)
 |
 v
stripe checkout (30 min)
 |
 v
webhook + return check
 |
 v
confirm_bid, lock per spot
 |
 +-- leads    -> outbid old holder,
 |               refund them in full
 +-- too late -> refund this bid
 |
 v
realtime "auction" broadcast
 |
 v
every open page refetches

step by step:

  1. you bid. a row is created as pending in supabase, and stripe checkout opens. it expires after 30 minutes.
  2. you pay. a signature-verified stripe webhook tells the site. but the site also asks stripe directly when you come back, so a missed webhook never leaves a paid bid stuck.
  3. the database confirms the bid under a per-spot lock. either it leads, or it arrived too late and gets refunded. two people paying in the same second can't both win.
  4. the previous holder is marked outbid and refunded in full, with idempotency keys so a retry can't refund twice. in a bundle, only the lost spot's share is refunded.
  5. when bidding closes, nothing else is owed. the winning bid is the whole price.

then the server broadcasts on a realtime channel, and every open page refetches. the wall updates live.

one more safety: bidding only opens when the database and payments are both configured, so a half-finished deploy can't take money.

the stack

  • next.js 16 and react 19
  • supabase: postgres, storage, realtime
  • stripe, for checkout and refunds
  • resend, for emails (optional)
  • zod, tailwind v4, motion
  • vercel, with analytics

what i learned

put the rule in the database, not in the app. the lock lives in postgres, so it doesn't matter how many servers or tabs are racing.

ask stripe twice. the webhook is the fast path, the return check is the safety net.

and refunds are part of the product. outbid people are customers too.

i first set the outbid rule at 20%, then raised it to 30%.

it's open source (MIT), and meant as a template: point it at your own event in about an hour. it even has a demo mode with no keys.

thanks for reading. tell me what you’re building.

say hello

keep reading