Inspiration
Most neighborhoods are full of people who would happily help: give a ride to the pharmacy, lend a drill for an hour, pick up groceries for someone who can't get out. What's missing is a simple, safe way to ask. Group chats get noisy, social feeds reach the wrong people, and posting your home address for strangers to see is a real risk.
We wanted a board that does one job well: you post a small need in plain words, and neighbors who are actually nearby can offer to help, without your street address ever being public.
What it does
- Post a need in your own words. An AI step sorts it into one of seven kinds (ride, errand, childcare, tech help, tool lending, cooking, other) and an urgency, and reads the time window.
- Neighbors within a chosen radius see it (2 km by default, up to 10 km) on a board grouped like a timetable: Today, Tomorrow, This weekend, with the most urgent needs first.
- Offer, accept, chat. Once the poster accepts an offer, the two of them get a private chat to sort out the details, and they can rate each other afterwards.
- Privacy by default. Everyone sees only the area and the distance ("Near Central Square · 0.8 km"). The exact location is shared only with the participants of an accepted claim, and the database enforces that, not just the UI.
- Works on a weak signal. A need written offline is saved on the device and posted when the connection comes back.
- Try the demo. Judges can explore a full board of sample needs without making an account.
How we built it
- Frontend: React 19, TypeScript, Vite and Tailwind CSS v4, with light and dark themes and full keyboard and reduced-motion support.
- Backend: Supabase for email sign-in links, Postgres, Realtime updates and Edge Functions. Every table has row-level security, and the sensitive reads go through dedicated database functions (
get_nearby_needs,get_need_safe_detail,claim_need, ...) that return only what the caller is allowed to see. - AI: Groq (
llama-3.3-70b-versatile) turns a free-text post into structured data and ranks volunteers for a need. - Maps: Leaflet and OpenStreetMap.
- Hosting: Vercel, deployed automatically on every push to
main.
Distance. We measure the distance between two points on the map with the haversine formula, which accounts for the curve of the Earth (radius 6,371 km). It takes the latitude and longitude of each point and returns the straight-line distance in kilometres.
Matching fallback. If the AI ranking isn't available, each volunteer gets a simple score:
- 3 points for every one of their skills that matches the need
- Plus a distance bonus:
- under 1 km: +2
- under 2 km: +1
- under 5 km: +0.5
- farther: +0.1
The five volunteers with the highest scores are notified.
Challenges we ran into
- Privacy that actually holds. Hiding addresses in the UI is easy; making sure the API can't leak them is the real work. We moved every sensitive read behind row-level security and database functions that check who is asking.
- A demo that never touches the database. The demo uses a fake user whose ID isn't a real UUID, which made Postgres reject queries (
invalid input syntax for type uuid). We had to give every screen (notifications, posting, profile setup) its own demo path. - Remembering people who sign in by email. Returning users kept landing on profile setup again, because the app decided where to send them before their profile had loaded. Waiting for the profile first fixed it.
- Keeping the AI key out of the browser. For speed, the first version called Groq directly from the browser, which exposes the key. We wrote Supabase Edge Functions so the calls can move to the server.
- A layout that reads well everywhere. The four-column board broke in narrow windows; container queries let each row adapt to the space it actually has.
What we learned
- Row-level security and
SECURITY DEFINERfunctions in Postgres, and how easy it is to accidentally make a function callable by everyone. - Turning messy free text into reliable structured data with an LLM, and always having a non-AI fallback.
- That accessibility settings like reduce motion change what people see, so animations should be extras, never the only way information gets across.
- How much a good demo mode matters when someone has two minutes to understand your idea.
What's next
- Move all AI calls behind the Edge Functions.
- Verified neighborhoods, and a way to report or block someone.
- Push notifications when a need matches your skills.
Built With
- deno
- framer-motion
- groq
- leaflet.js
- llama
- openstreetmap
- postgresql
- react
- supabase
- tailwindcss
- typescript
- vercel
- vite