Inspiration
What it does
How we built it
Challenges we ran into
Accomplishments that we're proud of
What we learned## Inspiration
I run sbbnev.com and a few other small sites for friends and clubs. They're tiny, but every day they collect real analytics, and right now that data just sits there. One of them is a club of about fifty people who meet up, drink, and write everything down. It's niche, but it's real.
Google makes a lot of money selling data. The little clubs I run could make a bit too. The data isn't worth much on its own, but if someone actually wants it, I'd rather sell it than give it away for free. Stablecoins and MPP finally make the payments small enough that this works, even for a few cents.
What it does
Reclaim is a paywall that sits in front of a site's analytics. Someone asks for the stats, a person or an AI agent, and they get back a 402 Payment Required. They pay a few cents in stablecoin on Tempo, and the data comes back. No account, no API key. You pay instead of logging in, and the owner gets paid for every request.
How we built it
It's a small TypeScript service (Hono) in front of a self-hosted Umami. The mppx SDK handles the 402 and checks the payment. Once it clears, the service reads the stats from Umami and sends them back. Payments settle in pathUSD on Tempo. The same service runs a live demo where an agent pays the paywall on its own, so you can watch the whole thing on-chain: it asks, it pays, it gets the data. A separate static page explains the idea. Everything runs on my own Coolify server and deploys straight from GitHub.
Challenges we ran into
The on-chain part took the most fiddling. I had to fund a Tempo testnet wallet, get the client to pay and retry properly, and make sure I was charging in the same token the faucet hands out, or nothing would settle. I also moved the deploys from a local image registry to building from GitHub, on a server that's tight on memory. And I had to make payment really replace the login, without leaking the data before it's paid for.
What we learned
402 has been sitting unused in the HTTP spec for a long time, and it turns out it fits this really well. Paying instead of logging in is a different way to think about access. There's no signup, and an agent can be the buyer just as easily as a person. Charging a few cents per query is what makes selling small bits of data worth it at all.
What's next
Real payments on mainnet, a cheaper summary and a fuller export at different prices, and a small wrapper so any Umami or Plausible site can switch this on without much work.
What's next for Reclaim
Built With
- coolify
- docker
- hono
- http-402
- mppx
- nginx
- node.js
- stablecoin
- tempo
- typescript
- umami
- viem
Log in or sign up for Devpost to join the conversation.