2026
grAte
Every New York City restaurant's health inspection grade on a map, with search, "near me" and each restaurant's full inspection history.
grAte (grade + ate) puts the city's restaurant inspection results on a map, so you can check a place before you sit down. Search by name, cuisine, street or ZIP code, or tap Near me to see what's around you. Every restaurant opens to its grade, its latest score, a chart of its scores over time and every violation inspectors have cited.
The data is NYC Open Data's restaurant inspection results: about 300,000 rows, one per violation, that the city rewrites every day. Rather than storing that 150 MB file, a nightly job on Cloudflare Workers re-reads the last 90 days and keeps one row per restaurant and one per inspection in D1, about 20 MB in all. Only rows that changed get written, so a quiet night writes almost nothing, and every run has a budget of rows it may write so a bug can't run up a bill.
The city only keeps about three years of results and drops restaurants once they close. grAte deletes nothing, so its history keeps growing.
Finding restaurants near you happens entirely in your browser: the page loads one compact file of the whole city, so your location never reaches the server. Thirty thousand dots are drawn straight onto a canvas over the map, which stays smooth where one map marker per restaurant would crawl.