Home listings with saved search alerts, built by Claude Code on Elements
Search homes by price, beds, baths, type and neighborhood, request showings, save homes and searches with email alerts, and give agents a listings desk and inbox.
How it's built
Keystoop needed search results that change as agents work, inquiries that reach an agent's inbox and email, saved searches that send alerts, and a listings desk with photo uploads. Each of those is a part of Elements, so the agent spent its 34 minutes on the brokerage site itself.
- Live search. Listings are a LiveTable, so a new listing or a move from active to pending shows up in every open search page at once, and the price, beds, baths, type and neighborhood filters run in the page over that live list.
- A live inbox. Inquiries are a LiveTable split by agent, so a question or showing request sent from a listing page lands in that agent's open inbox the moment it is sent.
- Server calls as function calls. Inquiries, favorites, saved searches, listing status and photo uploads all go to the server through
@rpcfunctions called straight from the page. Uploaded photos are served at addresses browsers keep for a year. - Jobs and email. Each inquiry queues an email to the agent in the same transaction. When a listing goes active, a job emails everyone whose saved search it matches, and each search hears about each listing once.
- Data from SQL files. Migrations define the site and seed three agents, thirty listings across eight neighborhoods with photo galleries and open houses, inquiries in each inbox, and a buyer with two saved searches.
- Sessions and roles. Agent pages and server calls share one guard on the agent role.
Why Elements
Elements is the integrated stack for building apps with AI: a TypeScript project server, build system, app framework and deployment system, engineered from the ground up as one. Your editor, tools and one or many agents all connect to the same always-on project server, which runs type checking, program analysis, migrations and tests as the agent builds. Built-in guardrails keep the app structured correctly and secure as it grows from prototype to production.
Run it yourself
Paste this into a terminal. It installs Elements, creates your copy of this app and starts it.
curl -fsSL 'https://elements.dev/install?create=keystoop&scaffold=demo-keystoop' | sh