Won a $200 prize at the MTC x Replit x Manara West Buildathon
Bayt Qareeb
A map-first housing and roommate finder for Muslim college students, open only to verified .edu students.
- Result
- Live, with 80 demo listings near seven California campuses
- My role
- Database, .edu sign-in, posting rooms, AI search
- Team
- 3 people
Highlights
- Won a $200 prize at the MTC x Replit x Manara West Buildathon as a team of three.
- Locked the app to verified .edu students and moved its data to Postgres with row-level security.
- Built an AI search that turns a sentence into filters and never lets the model see or write a listing.

The problem
Students moving to a new campus, transfer students most of all, look for housing in a city they do not know, often with strangers, through scattered group chats. Muslim students also need details that generic listing sites leave out: whether a house is brothers-only or sisters-only, whether the kitchen is halal, whether the roommates keep a similar routine.
Bayt Qareeb puts those details on a map around seven California campuses: UCLA, USC, UC Riverside, UC San Diego, UC Irvine, UC Davis and Stanford. Only students who sign in with a verified .edu email can see the listings.
What I built
Three of us built it at the buildathon on 6 November 2026: Waleed Alghaithi, Abas Mohamed and me. My part:
- Moved the app from SQLite to Supabase Postgres, with row-level security on the Listing and User tables so Supabase's public Data API cannot read them.
- Added Clerk sign-in with a .edu gate: only a user whose verified primary email ends in .edu gets in. Anyone else sees a "Students only" screen and the APIs return 403.
- Built the AI search, which turns a typed sentence into filters.
- Seeded 80 listings: 60 around the five Southern California campuses, then 20 around UC Davis and Stanford. The map opens on the signed-in student's campus.
- Built the public landing page and the sign-in and sign-up pages, reworking Abas's design.
- Built room posting: students add, edit and delete their own listings, up to five each.
- Fixed the public pages for phones, including 44 px tap targets and no sticky hover.
Waleed built the first version: the Next.js app with the map, the Prisma schema, the listings API, the first .edu sign-up check and the CI pipeline. He then hardened CI and took the map UI through every later version, adding photo tours, home types and the logo. Abas designed the first landing page and updated the map page UI.
How it works
Next.js middleware requires a Clerk sign-in for every page except the landing and sign-in pages, and for every API route. Pages and APIs then run the .edu check on the server. Listings live in Supabase Postgres behind Prisma. When a student posts a room, the server checks every field against the same rules the seed data must pass and geocodes the address with Mapbox itself, so coordinates never come from the browser. The owner and contact email come from the signed-in account, and the database query for an edit or delete matches on the owner, so someone else's listing returns 404.
The AI search only fills in filters. The search route sends the sentence, such as "sisters private room near UCI under $1,200", to Claude Haiku with a fixed JSON schema of seven optional fields: maximum rent, household, room type, home type, pets, halal kitchen and a place to be near. A validator then drops any unknown key and any bad value, such as a rent outside 0 to 10,000 dollars or a household that is not brothers, sisters or any. The server builds the database query from what is left, with the same logic the filter chips use. The model never sees a listing, never returns one, and cannot write to the database.
Results
Bayt Qareeb won a $200 prize at the MTC x Replit x Manara West Buildathon, and the app is live. On every push and pull request, CI checks that all 80 seed listings pass the same rules as posted rooms, sit within 5 miles of a campus and use fake @example.edu contacts.
Limits and next steps
After launch the app went down when a UI change shipped ahead of the database schema. The evening's last feature, photo tours and home types, added two columns to the Listing table: photos and propertyType. The schema file changed with the code, and its description said the columns had to be added to Supabase. Nothing in the pipeline does that: the build runs next build, and a schema change reaches the database only when someone runs prisma db push by hand. Once the change deployed, Prisma asked the database for two columns it did not have, and the app stopped working. I added the two columns to the database and the app worked again. Running the schema step as part of the deploy would stop it happening again, and the project does not do that yet.
- Rooms that students post show the full matched address and a satellite view of the block.
- The five-listing cap counts and then inserts, so two posts at the same moment could both get through.
- Posting only accepts Southern California addresses, although the map also covers UC Davis and Stanford.
- "Near UCI" in the AI search is a text match on the address and title, not a distance.
- The listing photos are free-license stock images, not the real buildings.
Stack
- Next.js 14 (App Router), React, TypeScript and Tailwind CSS
- Prisma over Supabase Postgres
- Clerk for sign-in
- Mapbox GL JS for the map and Mapbox geocoding on the server
- Anthropic SDK with Claude Haiku for the AI search
- GitHub Actions with gitleaks, CodeQL and Dependabot; Vercel for hosting
Published , updated