Inspiration
What it does
How we built it
Charity streams happen all the time now. A streamer goes live during a flood or an earthquake, chat gets emotional, and a big donation number scrolls across the screen. People give because they genuinely want to help.
Then the stream ends, the money goes to an NGO, and that's the last anyone hears of it. Where did it go? Who got it? How much was lost on the way? Nobody can answer, not the viewers and often not even the streamer.
That bothered us. People donate out of kindness, and they deserve to know their money reached someone who needed it. So we built Relief Stream.
What it does
Relief Stream takes the middleman out. Viewers donate through PayPal into one relief pool. A person in the disaster zone can then ask for help directly, and if they check out, PayPal sends the money straight to them.
Every donation, decision and payout is written to a public Solana trail. Each donor gets a receipt that says something like "your $25 went to claim 8B3B, verified, paid." You can follow your own money to the person it helped.
How we built it
When someone asks for help, they send their location, a photo, a message, and their PayPal email. We run four checks on it: is the location really inside a disaster area, is the photo real and not a reused or edited copy, is this a duplicate claim, and have other people nearby reported the same event.
One Gemini call reads the evidence and scores it. But the AI never moves money. Plain TypeScript makes the final call: strong claims are paid automatically, borderline ones go to a human reviewer, and clear fakes are rejected. If the AI is ever unavailable, the claim goes to a human, never to an automatic payout or rejection. Reviewers can approve or reject, but they can never change an amount or a recipient.
Privacy mattered just as much. The public trail uses anonymous ids only. No names, no emails, no exact locations, and photos are deleted once a claim is decided. People in a disaster shouldn't be exposed just because they asked for help.
Challenges
- Catching photos that were cropped, edited or reused took multi-crop CLIP search and perceptual hashing.
- We had to make sure a crash or retry could never pay the same person twice.
- PayPal's sandbox doesn't support India-to-India payments, so we built on US sandbox accounts.
What we learned
AI is great at reading evidence a human would otherwise have to go through by hand. But when real money is involved, the final decision should be simple, checkable code.
Results
In our scripted demo, all 7 planted fakes were caught by the intended check and all 3 genuine claims were paid, three runs in a row. 127 unit tests pass, and every step is verifiable on Solana.
What's next
Real PYUSD transfers on-chain, PayPal production approval, and a proper privacy review, so this can move from test money to real relief.
Built With
- ag-grid
- claude
- clip
- docker
- elasticsearch
- gemini
- groq
- kernel
- next.js
- paypal-orders-api
- paypal-payouts-api
- paypal-webhooks
- playwright
- postgresql
- postman
- prisma
- pyusd
- render
- solana
- transformers.js
- typescript
- vitest
- whisper
- zapier
- zod