For friends
Sell Your Stuff
A sale site you run yourself.
2026
Cloudflare Workers, D1, R2, Resend
Sellers need an invite. Anyone can browse a sale.
It started as the site for my own moving sale, move.pi.co.nz: every item with photos and a price, an offer form, and a private admin page to track offers from first message to picked up. Once the sale was running, I turned it into a template anyone can deploy to their own Cloudflare account, with items, photos, offers and settings all managed from an admin page and nothing hard-coded.
The problem
When I was moving, I didn’t want the admin of Facebook Marketplace, Trade Me and everywhere else, or 600 different emails and messages. So I built one site, hosted it myself, and sent everyone to the same place. Then friends started asking which website I’d sold my things on, and when I said I’d built it myself, I turned it into a template so they could run their own.
How it works
The sale moved off Netlify on its first day: setting it up used the free plan’s whole deploy allowance, and a sale site needs changing every day. On Cloudflare Workers, marking something sold or picked up updates the page in seconds, with no redeploy.
Now it’s two things in one codebase. On sell.pi.co.nz, friends get an invite code, sign up with an email and password, and get their own sale at their own link. Each seller only ever sees their own items and offers, and I can pause or remove a sale from an owner page. Anyone who’d rather run it themselves can still put the template on their own Cloudflare account. Items and offers live in a D1 database. Photos go to R2 on my site, or to KV in the template, so someone running their own copy still doesn’t need a payment card.
The admin login is a signed, HttpOnly cookie, pages build everything from text nodes under a strict content security policy, and photos are resized in the browser before upload, which also strips their GPS location. That last one came from experience: the original sale’s photos carried location data, so the old repository’s history was rewritten and the photos taken out.





