Data explainer
usaciv data sources: the public datasets behind the map
The usaciv data sources are public government datasets that Andrej Karpathy merges into one hex map. They supply terrain, city yields and districts, turning real statistics into a strategy map. The project is a data visualization built on those statistics, not invented game numbers.
What usaciv is
Karpathy posted the map on November 26, 2026. It loads under the title “usaciv — the United States as a strategy game” with a “Surveying the land” loading screen.
The project ships 19 lenses, a City View for 524 metros and nine advisors plus an Explorer. The map is a free browser map, not a turn-based game with a known rule set.
The public datasets behind usaciv data sources
Karpathy's post lists 31 public data sources. An independent write-up matches that count and calls them government sources.
The 31-source count is the point: the map merges many public series, not one table.
The map reconciles environmental, economic, infrastructure and disaster layers onto one 25 km hex grid, so an environmental layer and an economic layer share the same cells.
Its accuracy follows those public series at 25 km hex resolution, with values reconciled onto hexes rather than replaced by invented figures.
- Census / ACS: You get ACS data from the Census Bureau, whose American Community Survey metro and micro areas form the map's cities.
- BEA, BLS, EIA: Named among the 31 public sources.
- NOAA, USGS: Named among the same public-source set.
- DoD, NPS, FAA, FEMA, CDC: Named in the post and the independent write-up.
How data becomes yields and districts
The map turns economic and jobs data into city yields.
| Map output | Input signal | How it appears |
|---|---|---|
| Gold yield | GDP from the economic data | City gold yield |
| Science yield | Professional, scientific and technical services plus information jobs | City science yield |
| Food yield | Agriculture, forestry, fishing and hunting jobs | City food yield |
| Production yield | Manufacturing, construction and mining jobs | City production yield |
| Districts | Real industry specializations | San Jose gets a Campus; Detroit is Motor City |
Yields are therefore readings of the local economy, while district names follow the same industry profile.
The yields are built from employment counts in those sectors, so each city reads its own workforce.
Tracing usaciv data sources back to a number
The help page offers the full source code as usaciv-source.zip under the MIT license, so the data inputs can be inspected.
The source code is a direct route to check how a public column becomes a map value.
The Explorer turns any column for any of 3,100+ counties into a table and scatter plot linked to the map.
The advisors each open a dashboard on one part of the economy:
- Treasurer: GDP by industry.
- Master of Trade: freight routes, ports and airports.
- Keeper of the Census: where people move.
- General: military bases.
- Cartographer: custom charts.
Use those dashboards to check an input's wider context before reading its hex.
The data year and the Almanac
The top bar's Turn counter is the data year, taken from the 2025 one-year American Community Survey.
The Almanac explains the build: the lower 48 are projected Albers equal-area and cut into 117 × 90 hexes, each 50 km corner to corner.
The Almanac's geometry fixes where a hex sits; the Turn label fixes the year of its numbers.
What the map leaves out
Karpathy states that Claude skipped a few states and territories when building the map.
You can check the FAQ for the short answers on those gaps. That is the short answer to where the usaciv data sources come from.
Frequently asked questions
Which layers does the map reconcile onto one grid?
Elevation, land cover, GDP, jobs, power plants, mines, ports, airports, bases, parks, universities, freight flows and disasters sit on one 25 km hex grid.
How long did the build take?
Karpathy's account puts the build at about seven hours and 45,000 lines of code. That total is the build effort, not the ACS data year on the top bar.
How are Wonders picked?
Published rules choose Wonders: national parks rank by visitor numbers and universities by R&D spending. Those two ranks decide which sites qualify.
Can the Explorer show every county?
A few states and territories were skipped when the map was built, so the Explorer can't show every county.
How do usaciv data sources handle the 50 km hex?
The 50 km figure is corner to corner for each of the 117 × 90 hexes. The reconciled layers sit on a 25 km grid, so the two numbers describe different parts of the same geometry.