Inspiration

In New York, the most useful thing to know about an apartment is what the city already knows about its building: open hazardous violations, heat complaints every winter, evictions, a landlord who keeps getting cited. All of it is public. Almost none of it is usable. It's spread across separate city datasets that each identify buildings differently, and a renter with a lease to sign by Friday won't join them.

Haunting Report does that join, and answers the one question a renter actually has: compared with the buildings around it, how bad is this one?

What it does

Type any NYC address and you get the building's record:

  • The spirit board. Every residential building with 3+ apartments, about 172,000, is ranked within its neighborhood every night. Score = (3 × class C + 2 × class B + 1 × class A) HPD violations over 36 months, per apartment. The board shows where the building falls, from Peaceful to Cursed, with its exact rank.
  • The medium's reading. A 2–5 sentence summary written by Gemini from the records on the page, then checked by the server before anyone sees it. Any sentence with a number that isn't in the records, or that cites a section that didn't load, gives advice, speculates or calls the building safe, is removed. Each remaining sentence links to its source.
  • Six live record sections: open HPD violations in plain English, HPD complaints, 311 requests, evictions, DOB permits and building facts. Each names its dataset and how current it is.
  • Neighborhood pages listing the most haunted buildings.
  • Honest empty states. No records doesn't mean safe. It usually means HPD doesn't cover the building, and the page says so.
  • An MCP server, so Kiro or any MCP client can look up buildings from chat, with no API keys.

The Frankenstein part

Seven city datasets that were never meant to work together, each with its own quirks:

  • HPD violations and complaints: both key on bbl, but one stores it as text and the other as a number.
  • 311 requests: thousands of rows have an "Unspecified" borough.
  • Evictions: some rows use county names (KINGS, RICHMOND).
  • PLUTO: bbl is a float string, "1015500031.00000000".
  • DOB legacy permits and DOB NOW: they key on bin instead, in different systems with dates stored as text.

NYC Geosearch turns free text into identifiers, and a census crosswalk places each building in its neighborhood. Every quirk was found by probing the live APIs, and each is documented in docs/data-sources.md.

How we built it

Built in Kiro IDE, from an empty folder to a deployed app. Everything Kiro produced is in /.kiro.

Spec-driven development, six specs: building-linker, neighborhood-rankings, building-dossier, ai-summary, haunted-design and mcp-server. Each has EARS-style requirements, a design and a task list. Decisions that were mine to make went into the requirements as numbered decisions with a recommendation, and the agent stopped for sign-off before writing tasks.

The biggest difference from vibe coding: the specs changed when reality disagreed with them, and recorded why.

  • The first rule said to ask the user when Geosearch confidence was low. Probing showed every result scores exactly 0.8, right or wrong, so the rule now compares the parsed query with each candidate.
  • The agent's spec review tested my assumptions against live Geosearch. It found ordinary queries resolving to the wrong building ("350 88th St, New York" → Brooklyn). These became failing tests first, then fixes.
  • The design used React streaming until a test page showed Hostinger's CDN buffers responses. It switched to sections fetched by the browser, with the measurements kept in design.md.

Five steering docs (product, data-conventions, code-style, deployment, design-system). One example: Socrata timestamps have no time zone, so rendering them through UTC shows a 7:30 pm filing on the next day. Once that was a steering rule, every later adapter followed it without being reminded. deployment.md turned every Hostinger surprise into a rule.

Property-based testing: 315 tests, about 60 of them properties written with fast-check.

  • The ranking is checked against a naive O(n²) oracle.
  • Matched plus unmatched counts always equal the input totals.
  • No adapter can ever output a person's name.

A property caught a real bug that example tests missed: an empty count string from Socrata was being kept as a valid zero.

Also from Kiro:

  • An agent hook that runs the core tests on every save.
  • The MCP server, registered in .kiro/settings/mcp.json.
  • The frontend-design skill, which drove the séance-ledger redesign.

Stack: TypeScript monorepo (core logic, storage, nightly refresh, Next.js 16 web app, MCP server) on Hostinger Node.js hosting with MariaDB and a nightly cron job.

Challenges we ran into

  • Hostinger's build servers have a glibc too old for Next's native compiler. The fixes were webpack, a pinned WASM SWC and an ES-module config.
  • The first scheduled cron run fired and did nothing. It now calls a wrapper script with absolute paths that logs its own start and end.
  • Socrata is slow and flaky from shared hosting: the same query took 0.3 to 11 s, with intermittent 503s. So every section loads, times out and retries on its own, and results are cached.
  • The AI got numbers right and meaning wrong, totalling hazardous and non-hazardous violations together. Totals were removed from its input, so any sum it invents now fails the number check.

Accomplishments that we're proud of

  • The whole city is ranked every night, safely. A failed or short refresh leaves the previous rankings live, and tests prove it, including a failure injected mid-publish.
  • An AI summary that's checked, not trusted. A sentence with any number that isn't in the records is never shown.
  • Missing data never looks like good news.

What we learned

  • Probe before you specify. Half the requirements that changed did so because the live API behaved differently from its documentation.
  • A spec is most useful when it keeps the reason for each decision. The "why" notes stopped the same mistakes coming back.

What's next for Haunting Report

  • Owner-portfolio views, with careful privacy design.
  • HPD litigation and registration data.
  • A Spanish-language version.
  • Alerts when a building you follow gets a new class C violation.

Try it

No login needed. Try these three example searches on the home page:

  • 1248 St Marks Ave, Brooklyn: a possessed walk-up.
  • 350 E 88th St, Manhattan: the "no housing records" notice.
  • 350 88th St, New York, NY: asks which borough.

A first visit can take up to 20 seconds per section, because the city's datasets are slow on cold queries. A reload is near-instant.

Built With

Share this project:

Updates

Submission history