NYC dining recommender

A restaurant picker for my summer in New York, seeded from the Eater, Infatuation, and NYT lists. Filters narrow the list, Claude ranks what's left with a reason for each pick, and Resy availability is one click away.

Context
Personal project, shared with a few friends
When
Spring 2026
Built with
Python, FastAPI, SQLite, Claude Haiku, Fly.io

The problem

I was spending the summer in New York and wanted a faster answer to “where should we eat tonight.” The best lists, like Eater’s 38 Essential and the Infatuation Hit List, are written to be read, not searched. And knowing whether a place has a table at 7:30 meant opening Resy for each one.

What it does

You set a neighborhood, a price ceiling, a vibe, and an optional note like “Friday dinner with friends, somewhere we can sit outside.” The app returns five to eight places ranked for that request. Each one comes with a sentence on why it made the cut, the lists it came from, and its Google Maps and Beli ratings for comparison. “Check availability” pulls real Resy slots within two hours of your time. A few friends share the app behind one password, and each of us keeps our own notes (“tried,” “loved,” “skip”) that feed into our own rankings.

The clip uses invented restaurants and ratings, with the AI and Resy calls stubbed out.

I used it for about 40 searches over the summer and ate at 12 of its picks.

How it works

  1. Seeding. Each publication gets its own scraper. Claude turns each list entry into structured fields (neighborhood, price tier, cuisine, vibe) against a strict schema, and duplicates across lists merge into one record that keeps every source.
  2. Shortlist in SQL. Hard filters like neighborhood and price run as a plain database query, so the model never sees places that can’t work.
  3. Ranking with Claude. The shortlist, your note, and your own past marks on those places go to Claude Haiku, which ranks the top picks and writes a reason for each. Results stream in card by card, so the page fills in while the model is still writing.
  4. Availability on demand. Resy only gets called when you ask about a specific place, not on every search.

The whole ranking prompt is short:

You are a helpful NYC dining expert helping a friend pick where to eat.
Given a shortlist of restaurants, soft preferences, and a free-form preferences note,
return a ranked top N with a one-sentence reason for each pick.

Use only the data provided; do not invent details.
Output format: a sequence of `<card id="SLUG">one-sentence reason</card>` tags
in ranked order. No other text before or after the tags.

The tag format is what makes streaming work. Each closing </card> is a complete result the page can render, so there’s no waiting on a full JSON response, and a malformed reply still yields every card that closed properly.

How I checked the rankings

I compared the picks against Google Maps ratings and Beli scores for the same places. That was manual, so I built it into the app: every card now shows both ratings next to the AI’s pick, entered by hand in the admin page.

They’re kept out of the prompt on purpose, with a test that enforces it. If the model could see the ratings it would lean on them, and they’d stop being an independent check on its judgment.

Decisions I made

  • Form, not chat. Most of what matters (where, how much, how many people) is a filter. The free-text note handles the rest, and a form is faster on a phone standing on a sidewalk.
  • Haiku, not a bigger model. Ranking 25 restaurants doesn’t need a frontier model. At my volume Haiku should cost under a dollar a month, and switching models is one config setting if the reasons ever feel thin.
  • The model only ranks what’s in front of it. The prompt tells Claude to use only the data provided, and the database does the filtering first. A recommender that invents a restaurant, or a rooftop that doesn’t exist, is worse than no recommender.
  • It still works when the AI doesn’t. If the Claude call fails, the app falls back to ranking by how many lists a place appears on and says so. If Resy is down, you get a direct booking link instead of an error.
  • What I left out. No real accounts, no maps, and no automatic Google ratings, since the Places API is billed and hand entry is fine at this size. Closed restaurants get flagged when Resy can’t find them, and marking one closed is a single click.

What went wrong

I added a second model provider behind a config switch, and its tests passed. A later cleanup pass found the switch only worked on the non-streaming search. The streaming endpoint, which is the one the app actually uses, kept calling the original model. The setting looked like it worked and did nothing where it mattered. I fixed it and added a test that runs a streaming search with the provider switched and checks which model it reached. The lesson: test the path people actually use, not the one that’s easiest to test.

What I’d do next

Use the notes more. Right now they nudge the ranking. The more useful version would learn each person’s taste from what they’ve marked “loved” and “skip.”

All builds