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 🙏

© 2024 – Pkg Stats / Ryan Hefner

us-atlas

v3.0.1

Published

Pre-built TopoJSON from the U.S. Census Bureau.

Downloads

18,499

Readme

U.S. Atlas TopoJSON

This repository provides a convenient redistribution of the Census Bureau’s cartographic boundary shapefiles, 2017 edition as TopoJSON. For earlier editions, see past releases. Both projected and unprojected geometries are included. The projection used by these files is:

d3.geoAlbersUsa().scale(1300).translate([487.5, 305])

This is a conic equal-area Albers projection suitable for choropleth maps and designed to fit a 975×610 viewport.

Usage

In a browser, using d3-geo and SVG: https://observablehq.com/@d3/u-s-map

In a browser, using d3-geo and Canvas: https://observablehq.com/@d3/u-s-map-canvas

In Node, using d3-geo and node-canvas: https://bl.ocks.org/mbostock/885fffe88d72b2a25c090e0bbbef382f

File Reference

# counties-10m.json · Download

A TopoJSON file containing the geometry collections counties, states, and nation. The geometry is quantized and simplified, but not projected. This topology is derived from the Census Bureau’s cartographic county boundaries, 2017 edition. The state boundaries are computed by merging counties, and the nation boundary is computed by merging states, ensuring a consistent topology.

# counties-albers-10m.json · Download

A TopoJSON file containing the geometry collections counties, states, and nation. The geometry is quantized, projected using d3.geoAlbersUsa to fit a 975×610 viewport, and simplified. This topology is derived from the Census Bureau’s cartographic county boundaries, 2017 edition. The state boundaries are computed by merging counties, and the nation boundary is computed by merging states, ensuring a consistent topology.

# states-10m.json · Download

A TopoJSON file containing the geometry collections states and nation. The geometry is quantized and simplified, but not projected. This topology is derived from the Census Bureau’s cartographic state boundaries, 2017 edition. The nation boundary is computed by merging states, ensuring a consistent topology.

# states-albers-10m.json · Download

A TopoJSON file containing the geometry collections states and nation. The geometry is quantized, projected using d3.geoAlbersUsa to fit a 975×610 viewport, and simplified. This topology is derived from the Census Bureau’s cartographic state boundaries, 2017 edition. The nation boundary is computed by merging states, ensuring a consistent topology.

# nation-10m.json · Download

A TopoJSON file containing the geometry collection nation. The geometry is quantized and simplified, but not projected. This topology is derived from the Census Bureau’s cartographic nation boundary, 2017 edition.

# nation-albers-10m.json · Download

A TopoJSON file containing the geometry collection nation. The geometry is quantized, projected using d3.geoAlbersUsa to fit a 975×610 viewport, and simplified. This topology is derived from the Census Bureau’s cartographic nation boundary, 2017 edition.

# us.objects.counties

Each county has two fields:

  • county.id - the five-digit FIPS county code, such as "06069"
  • county.properties.name - the county name, such as "San Benito"

The first two digits of the county FIPS code is the state FIPS code.

# us.objects.states

Each state has two fields:

  • state.id - the two-digit FIPS state code, such as "06"
  • state.properties.name - the state name, such as "California"

# us.objects.nation

The nation has two fields:

  • nation.id - the string "US"
  • nation.properties.name - the string "United States"