Inspiration
Every time we stood over the bins in Ottawa we'd end up guessing. Chip bag? Coffee cup? Battery? And then the city changed the rules in 2026, so even what we thought we knew was wrong. We wanted something that just tells you, instantly, and makes doing it right a bit fun.
What it does
Snap a photo of any item and Sortify tells you which Ottawa bin it goes in (blue, black, green or garbage), how to prep it, and where the nearest drop-off is for things like batteries and electronics. Every scan earns points, rarer items earn more, and you climb a city-wide leaderboard. Your home screen garden grows as you recycle, and each month you get a "Sortify Wrapped" recap of your top materials and rarest finds.
How we built it
The app is built with Expo (React Native). The backend is Python with FastAPI, using Google's Gemini vision model to identify items. Gemini picks from a fixed list of categories, and our own rules file maps each one to Ottawa's disposal rules. Supabase handles accounts and the database, and the backend is deployed on Render.
Challenges we ran into
Ottawa switched to a new Blue Box program partway through our build, which moved chip bags, plastic film, foam and coffee cups into the blue bin, so we had to recheck all our rules. Gemini's answers were all over the place until we locked it into a strict schema. And since there's a leaderboard, we had to stop cheating, so we added a daily point cap and blocked rescanning the same photo.
Accomplishments that we're proud of
It actually works end to end, from photo to the right bin to points on the board. We're really proud of the cozy garden design, and of the stuff under the hood: photo location data gets stripped for privacy, and the backend has a big set of automated tests.
What we learned
A ton of backend stuff we'd never touched before: building REST API endpoints, connecting a phone app to a Python server, and working with an AI API (and learning not to blindly trust its output). We got into databases properly with Supabase and Postgres, including row-level security and atomic point updates, used perceptual image hashing to catch duplicate photos, and picked up basic version control with Git and GitHub along the way.
What's next for Sortify
Expanding beyond Ottawa to other cities' rules, adding friends and team challenges, and publishing to app store.
Built With
- cloudflare-tunnel
- expo-router
- expo.io
- fastapi
- google-gemini
- google-maps
- google-oauth
- imagehash
- pillow
- postgresql
- pydantic
- pytest
- python
- react
- react-native
- render
- supabase
- typescript
- uvicorn