-
-
Enter the address before the viewing.
-
Apartment 154 has its own card, separate from the rest of the building.
-
When the broker says a repair is done, open the city record and ask to see the paperwork.
-
How it works: one address, three city agencies' records, and a check that drops any line without a city record.
-
Find nearby buildings and pick the one you're visiting.
Inspiration
You're looking at a flat in New York. You get about ten minutes. The broker is in a hurry, and other people are waiting at the door. You see a stain on the bathroom ceiling, and the broker says, "Oh, that was fixed."
Was it? The city often knows. Every housing violation, every 311 complaint about heat or leaks, and every complaint to the buildings department is public on NYC Open Data. But nobody reads city records on the stairs, and the right question usually comes to you on the train home.
Here's a real example. Apartment 154 at 2182 Barnes Avenue in the Bronx has 137 housing violations still listed as open, and the oldest is from July 1996. See them in the city's records. Sites like Who Owns What already turn these records into reports to read at home. I wanted them in your hand during the ten minutes when they matter.
What it does
- Find the building. Type an address, or tap Use my location and pick your building from the nearest ones. Add the apartment number if you know it.
- Get a short walk-through. Each stop is one card: This flat, Bathroom & ceilings, Radiators & hot water, Kitchen sink & cabinets, Smoke detector & outlets and Ask the broker. Each card tells you what to look at and what to ask.
- Answer the broker. Tap "That was fixed" and you get a polite reply you can say out loud: "Thanks. The city still lists 187 leak or mold records as open, the oldest since Jul 1996. Could you show me the repair paperwork or the HPD dismissal for those?"
- Check it yourself. Every number opens the city's own record.
- Honest by design. Each dataset shows a "records as of" date. A note explains that a violation can stay open after a repair. A building with nothing on record says so: "No ghosts on record. Still check these basics."
The app has one rule above all others: no claim without a record. If there's no city record behind a stop, the stop isn't shown. The app uses no AI when it runs.
How I built it
The stitch (my Frankenstein entry)
The app joins three city agencies' records that were never meant to be joined:
- Housing violations (HPD) carry both of a building's ID numbers.
- 311 calls carry only one of them, the BBL.
- Building complaints (DOB) carry only the other, the BIN. They store dates as text and use codes that only a city PDF explains.
The city's address search is the bridge: it returns both IDs, so one address pulls in all three. A rule engine then turns the records into questions, and a hand-drawn ghost guides you through them.
Kiro, plan first
I built the whole thing in Kiro.
- Specs. Before any code, Kiro wrote down what the app must do, how it would work, and a to-do list. It then worked through the list one task at a time. After each task it ran the tests, ticked the box, wrote a line in the log and saved. When I changed my mind, the change went into the plan before the code. The plan grew from 8 rules to 20, and 33 tasks got done.
- Steering. Five note files that Kiro reads at the start of every session. They hold the main rule, the city dataset table I checked against the live data on day 1, which part of the code does what, and my design corrections with the reason for each.
- Hooks. Checks that run on their own:
- the tests run every time Kiro changes the data or rule code;
- when a rule changes, the app rebuilds the tours for real saved buildings and fails if any stop loses a record;
- a commit is blocked if the licence file is missing or the
.kirofolder is hidden from git.
To test the second hook, I took the word "plaster" out of the leak rule. The check flagged 141 missing records across three buildings. With the word back, it passed again.
- Property tests. These try a hundred random cards each run. One slips a random, unrelated number into a card and makes sure the check catches it.
- MCP. A hackathon playbook I asked for advice at each phase. It made me put the app online on day 1, cut two datasets and stop adding features on time.
- Skills. Know-how packs for the look and feel: one card at a time, thumb-sized buttons, hover effects only with a mouse, three colour ideas to pick from, and the hand-drawn ghost, which three fresh reviewers checked before it shipped.
Stack
Next.js on Vercel, TypeScript, Tailwind CSS, Vitest and fast-check. All city calls happen on the server, and no API keys are needed.
Challenges I ran into
- The records don't line up. No dataset has both building IDs, so each one is looked up by its own key, and the address search ties them together.
- Words lie. One city order said to paint a metal heat riser. My first rule saw "heat" and called it a heating problem. Imagine asking the broker why the heat went out when the pipe just needed paint. See the city's order. "File annual bedbug report" is paperwork, not bugs, and a carbon monoxide notice is about a sign. Each of these real records is now a test.
- Number words. Writing the property test showed that "three leaks" or "dozens of complaints" would get past a check that only looks for digits. So number words are banned too.
- Building codes from a PDF. The building department explains its complaint codes only in a PDF. I copied all 176 labels from it and checked them twice. None are filled in from memory.
- Too much to read. The demo building has 900 housing violations. Nobody reads that in a hallway, so the app shows one card at a time, and every main path takes at most 2 taps.
- GPS is rough. Between tall buildings it can be 20 to 50 m off, so the app never guesses your building. It lists the nearest ones and you pick. NYC's map box also takes in part of New Jersey, so buildings more than 250 m away are dropped. Your location is never stored or logged, and it isn't put in a link.
What I learned
- A rule like "no claim without a record" is easy to say and hard to keep. It took a check, property tests and a set of real buildings together.
- A building's history and one apartment's history can tell different stories. The app says which one each number belongs to, and shows the date, so you can ask what happened since.
- Checking the city data on day 1, and writing down what I found, saved me from guessing later.
- Designing for a phone in a hallway meant cutting things, not adding them.
Proof it holds
- 223 tests pass.
- 14 tour stops across 4 real buildings and 1 apartment keep all their records every time a rule changes.
- The app works without AI. Without JavaScript it shows the tour as a plain list. If the city's data is down, the demo buildings still work from saved records.
What's next
- Other cities. Many cities publish housing records as open data. Chicago, for example, publishes building violations through the same kind of city data platform NYC uses. The rule check, the tour and the screens would stay the same. Each city needs its own data files, its own word lists for the rules, and its own address search.
- Share a tour. Two people viewing a flat together could follow the same tour.
- More languages. Questions in Spanish and Chinese.
- The two datasets I cut for time. HPD complaints and rodent inspections.
Built With
- kiro
- next.js
- nyc-geosearch
- nyc-open-data
- react
- socrata
- tailwind-css
- typescript
- vercel
- vitest