Inspiration
In New York City, more people die from heat than from all other natural disasters combined. That risk is not shared equally. The city’s own Heat Vulnerability Index shows that some neighborhoods — often those with less green space, less air conditioning, and lower incomes — are far more exposed than others. I live in Elmhurst, Queens. Our official score is a medium 3 out of 5, but the next ZIP over, Corona, is a 4. Official cooling-center maps appear during emergencies. What was missing was a year-round, plan-ahead tool: your official score, a personal plan, and a real, walkable cool place, plus a way to check on a neighbor.
What it does
- Look up your neighborhood. Type a ZIP code or neighborhood name (default: Elmhurst, 11373). HeatHaven shows the official Heat Vulnerability Index, from 1 (lowest risk) to 5 (highest). A 5-segment gauge springs to the score, and a citywide map colors every neighborhood by the same official index.
- See why. Summer surface temperature, the share of households with air conditioning, green space, and median income are compared with the median of NYC neighborhoods in the index. If a ZIP and a neighborhood disagree — Corona’s neighborhood is 3, but ZIP 11368 as a whole is 4 — both official numbers are shown. The boundaries are different, and we do not hide that.
- Go somewhere cool. Libraries, Parks recreation centers, and official city pools are ranked by walking distance. Elmhurst Library is a 2-minute walk from the center of ZIP 11373. Hours are parsed from official listings so you can see “open now” or “closed now,” plus accessibility and a map link. Official cooling centers are activated during a heat emergency — the app tells you to call 311.
- Make a personal plan. The official index is never changed. Checkboxes drawn from CDC and city heat guidance (age 65+, young children, pregnancy, chronic illness, no working AC, outdoor work, living alone, top floor, prior heat illness) add planning points and a care tier: Stay aware, Make a plan, High care, or Highest care.
- Hand someone a buddy card. Type a name, print a card with the nearest cool place and the signs of heat exhaustion versus heat stroke (call 911).
- Live weather, honestly. The National Weather Service forecast and heat alerts load when they can. If they cannot, the app says so. A mute toggle (M) silences the sound cues.
How we built it
A zero-backend static site in vanilla HTML, CSS, and ES modules. No framework, no runtime dependencies, ready for GitHub Pages.
- Official extracts in
data-raw/are compiled bynpm run datainto one compact dataset: 184 ZCTAs, 197 scored neighborhoods, 218 libraries, 20 recreation centers, and 91 pools, with simplified 2020 NTA map polygons. - Walking time uses a haversine distance and a 3 mph walking speed. Library hours are parsed from the published text and evaluated in America/New_York.
- The personal plan is a transparent, documented point model. It is a planning tool, not a medical diagnosis, and the official HVI is displayed separately.
- The interface is built to feel alive: a 60 fps heat-atmosphere canvas, a springing HVI gauge, number count-ups, a glowing choropleth, hover micro-interactions, and subtle Web Audio cues with a mute toggle. Interactive gauges and cards use
user-select: noneso a demo recording never picks up stray text selection. - Quality:
- 21 unit and data tests (
node --test), including a rebuild-from-raw identity test, plus ESLint with 0 warnings. - 23 headless-Chrome end-to-end checks covering search typo tolerance, Corona’s ZIP-versus-neighborhood note, filters, the highest-care plan, HTML-escaping on the buddy card, keyboard access, mobile and tablet layout, and zero application console errors.
- 21 unit and data tests (
Challenges we ran into
- Heat risk is published at more than one geography. The Open Data file is official HVI by ZIP; the Health Department’s interactive index is official HVI by 2020 neighborhood, with the component factors. We kept both, and we surface it when they differ.
- “Cooling centers” only exist when the city activates them. Shipping a stale 2020 emergency-site list would have been misleading, so we plan ahead with year-round air-conditioned public places and send people to 311 for official centers during a heat emergency.
- Library hours arrive as free text in several formats. We wrote a parser and test it against Elmhurst Library’s official listing, including “open now” in New York time.
Accomplishments that we're proud of
- Every score on the screen is a real official number, not a stub.
- The first three seconds show a living map of heat inequity across the city, with Elmhurst’s official 3 already on the gauge.
- A highest-care plan for an older neighbor without air conditioning names the actual nearest library and can be printed as a buddy card the same afternoon.
What we learned
Social-good tools earn trust by being precise about sources and humble about what they are not. HeatHaven will not diagnose you, and it will not pretend a ZIP score and a neighborhood score are the same thing.
What's next for HeatHaven
- Spanish, Bengali, and Chinese, reviewed by native speakers — Elmhurst is one of the most linguistically diverse places in the country.
- A small building-level pilot: buddy cards and library-hour flyers in a few Elmhurst walk-ups, measured by how many neighbors named a cool place they would actually go.
- Optional, privacy-respecting SMS reminders when a heat advisory is issued.
Limitations
English-only today. Library “open now” depends on published hours and can miss holiday closures. Recreation-center and pool hours should be confirmed with NYC Parks. Live weather needs a network connection; the rest of the app works offline from the bundled official data. HeatHaven is a planning tool, not a medical diagnosis, and not a substitute for 911.
Built With
- canvas
- css3
- eslint
- github
- html5
- javascript
- national-weather-service
- node.js
- nyc-open-data
- puppeteer
- svg
- web-audio-api