npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

us-housing-risk-data

v2026.3.24

Published

US housing risk, home values, and environmental safety data by ZIP code and state. Includes Census ACS B25077 median home values, estimated remediation costs, equity trap ratios, and purchase risk scores. Derived from 50+ federal and state sources.

Readme

us-housing-risk-data

US housing risk and water quality data by ZIP code and state. Derived from EPA, FEMA, Census, and 17 other federal sources.

Part of the ZipCheckup project.

Install

npm install us-housing-risk-data

Usage

const risk = require('us-housing-risk-data');

// State-level data (all 50 states + DC)
const ca = risk.getState('CA');
// → { state: 'CA', name: 'California', rank: 8, avgScore: 71, grade: 'B', ... }

const allStates = risk.getAllStates();
// → [{ state: 'AL', ... }, ...] sorted by rank

// Sample ZIP data (100 representative ZIPs — best + worst per state)
const nyc = risk.getSampleZip('10001');
// → { zip: '10001', city: 'New York', state: 'NY', homeSafetyScore: 50, ... } or null

const allSamples = risk.getSampleZips();
// → [...100 records]

// Filtering
risk.filterStates({ minViolations: 70 });
// → states where 70%+ of ZIPs have violations

risk.filterStates({ grade: 'A' });
// → states with grade A

risk.filterSamples({ minScore: 80 });
// → sample ZIPs with Home Safety Score 80+

risk.filterSamples({ state: 'TX' });
// → sample ZIPs in Texas

// Metadata
risk.meta;
// → { generated, nationalAvg, nationalGrade, totalZips, totalStates, sampleCount }

State record fields

| Field | Type | Description | |-------|------|-------------| | state | string | 2-letter abbreviation | | name | string | Full state name | | rank | number | National rank (1 = best) | | avgScore | number | Average Home Safety Score (0-100) | | grade | string | Letter grade (A-F) | | totalZips | number | Number of ZIP codes in state | | pctViolations | number | % of ZIPs with water violations | | pctAorB | number | % of ZIPs graded A or B | | distribution | object | Count of ZIPs per grade { A, B, C, D, F } | | topContaminants | array | Top 5 contaminants found |

Sample ZIP record fields

| Field | Type | Description | |-------|------|-------------| | zip | string | 5-digit ZIP code | | city | string | City name | | state | string | 2-letter state abbreviation | | county | string | County name | | homeSafetyScore | number | Overall score (0-100) | | homeSafetyGrade | string | Letter grade (A-F) | | totalViolations | number | Total water violations | | healthViolations | number | Health-based violations | | leadLevel | number | Lead level (mg/L) | | radonZone | number | EPA radon zone (1-3, 1 = highest risk) | | radonRisk | string | Risk label | | floodClaims | number | NFIP flood insurance claims | | floodDominantZone | string | FEMA flood zone | | totalPopulation | number | Served population |

Data sources

  • EPA SDWIS — Safe Drinking Water Information System (violations, contaminants)
  • EPA Lead & Copper Rule — Lead/copper sampling data
  • EPA Radon Zones — County-level radon risk
  • FEMA NFIP — National Flood Insurance Program claims
  • FEMA Flood Zones — Flood zone designations
  • US Census — Population, housing characteristics
  • 12 additional federal and state sources

Full data for 41,000+ ZIP codes available at zipcheckup.com.

Rebuilding data

node scripts/build-housing-risk-package.js

License

Data: CC BY 4.0

When using this data, please credit: "Data from ZipCheckup"