Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

react-svg-worldmap-regions

Latest version: v1.0.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: yams
0 Stars
0 Forks
2 Versions
JavaScript Repo language

Scan summary

react-svg-worldmap-regions was last scanned on 29 Nov 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 29 Nov 2026.
  • Findings: No rules fired in version 1.0.0.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.0 LATEST 29 Nov 2026 No rules fired
0.0.0-stage 29 Nov 2026 Not shown

No rules fired in 1.0.0

Findings

Findings for v1.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.0.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

react-svg-worldmap-regions License: MIT npm version

States, provinces and other regions for react-svg-worldmap. Zoom in on a country and the map draws its regions.

  • Optional. react-svg-worldmap works the same with or without this package. Nothing changes until you pass the provider to a map.
  • Loads only what is needed. The data comes in three levels of detail. Below zoom 8 the map loads one small file per country in view; above it, only the chunks (about 48 kB each) of the part in view, in more detail from zoom 24. Each file is its own chunk in your bundler, downloads the first time it is needed (or while the browser is idle, one zoom step before it is needed), and is decoded once. Zooming into Europe at 4x loads 0.8 MB instead of 4.1 MB with a single level.
  • Local data. No map service and no network requests other than your own app's chunks.
  • Regions that govern. By default, only regions with their own government between the country and its municipalities: 2,133 regions in 109 countries, such as US states, Italian regions or Kenyan counties. Countries without such a level, such as Israel or Ireland, have none. tier: "all" gives every first-level division instead: 4,139 regions in 175 countries. See Tiers.
  • Public-domain data (Natural Earth, and geoBoundaries for Kenya), detailed enough for zoom 64x. The package is 5.8 MB (16.6 MB unpacked, 772 files); an app downloads only the files for what its users look at.

Install

npm install react-svg-worldmap react-svg-worldmap-regions

Works with react-svg-worldmap ^2.7.0 and ^3.0.0.

Usage

import WorldMap from "react-svg-worldmap";
import { createRegionsDetailProvider } from "react-svg-worldmap-regions";

// Create the provider once, outside the component.
const regions = createRegionsDetailProvider();

export default function App() {
  return (
    <WorldMap
      data={[{ country: "us", value: 1 }]}
      size="responsive"
      zoom
      detailLevel="regions"
      detailProvider={regions}
    />
  );
}

Regions appear at zoom level 4 and above, for the countries in view. Change that with zoom={{ regionDetailMinScale: 3 }}. With react-svg-worldmap 3.0.0, add theme="atlasLight" for pale water inside the globe and dotted region borders, and zoom={{ maxScale: 64, showRegionLabels: true }} to zoom deeper and name the regions: the long name where it fits, the short one (MA for Massachusetts) where it does not. regionLabelFormat: "long" or "short" picks one.

API

Export Description
createRegionsDetailProvider(options?) A detailProvider for <WorldMap detailLevel="regions" />. options.tier is "governing" (default) or "all"; options.countries limits it to these ISO codes; options.exclude leaves countries out.
loadRegionCollection(countryCode, options?) Loads one country's regions (RegionCollection, GeoJSON in longitude / latitude). options.level is the level of detail (0, 1 or 2; default 2), options.bounds keeps only the part within [west, south, east, north], options.tier picks the tier. undefined for a country without regions.
preloadRegions(countryCodes, options?) Starts loading these countries ahead of time (options.level, default 0; options.tier).
hasRegions(countryCode, tier?) Whether the package has regions for a country in a tier (default "governing"). Loads nothing.
regionCountryCodes, regionCountries The countries with governing-tier regions, and each one's name, region count and source. Load nothing.
allRegionCountryCodes, allRegionCountries The same for tier: "all".
sourceSummary, sourceUrl Source text and link for the Natural Earth data (public domain; no attribution required). Each RegionCollection names its own source: Kenya's governing-tier counties name geoBoundaries.
Types RegionTier, LoadRegionsOptions, Bounds, DetailLevel, RegionCountryInfo, RegionsDetailProvider, RegionsDetailProviderOptions, RegionsView.

Every region has a name and a shortName, worked out when the data is built (the package only reads them). Short names are unique within a country and never just a number:

  1. the official short name: the ISO 3166-2 code when it has letters (MA for Massachusetts, BY for Bayern), else Natural Earth's postal code;
  2. else, for a one-word name, its first three letters, the first a capital (Bayern without its code would be Bay; Aisne: Ais), then four, and so on;
  3. else the initials of the name (Rio Grande do Sul: RGDS), then the first two letters of the first word (Ri), three, and so on.

Short names are letters only, never digits.

Region ids are ISO 3166-2 codes (US-CA, UA-43) where the source has one, else Natural Earth's own adm1_code, or the country code and the name (IT-ABRUZZO) for merged regions without one. Each region path carries data-region-id, data-region-name and data-country-code.

Regions are visual context: their borders and labels are hidden from assistive technology, like the map's other decorative layers. When the regions matter to your users, list them in your own UI as well; loadRegionCollection(code, { level: 0 }) gives every region's name and shortName.

Tiers

Natural Earth's admin-1 layer, the usual source of "states and provinces", has the first level of division of every country, whether or not anyone governs it: Israel's districts are statistical, Kenya's provinces were abolished in 2013, and England's admin-1 units are its 152 local councils. So the package has two tiers:

  • "governing" (default): only a level of government between the country and its municipalities, as counted by the OECD–UCLG World Observatory on Subnational Government Finance and Investment (SNG-WOFI) and, for the 45 countries it does not cover, national sources. Italy has its 20 regions (not its 110 provinces), the United Kingdom has Scotland, Wales and Northern Ireland, Portugal has the Azores and Madeira, and Israel, Ireland and 64 other countries have no regions, including Nepal, Bangladesh, Côte d'Ivoire and Senegal, whose current governing tier is not available as public-domain data.
  • "all": every Natural Earth admin-1 unit.
const regions = createRegionsDetailProvider({ tier: "all" });

docs/governing-tier.md lists every country with both counts and the reason.

Map data

Source Used for License
Natural Earth 1:10m Admin 1 v5.1.2 All regions, except Kenya's governing tier Public domain
geoBoundaries (Runfola et al. 2020), from RCMRD Kenya's 47 counties (Natural Earth has the 8 provinces they replaced) Public domain
SNG-WOFI (OECD and UCLG), 2020 Which countries have a governing tier (nothing from it is shipped) Reference only

All of it is public domain; no attribution is required. See docs/map-data.md.

The regions follow react-svg-worldmap's map data policy; see docs/map-data.md for how this package applies it. In short:

  • Every region belongs to a country the map draws, and lies inside that country's border on the map. The build checks this for every region, in both tiers.
  • Crimea (UA-43) and Sevastopol (UA-40) are regions of Ukraine.
  • Countries and territories the map does not draw (Andorra, Malta, Singapore and other small states and islands) have no regions.

The map is a thematic visualization, not a legal boundary reference.

Development

yarn install
yarn build:data     # regenerate lib/src/regions (downloads 41 MB from Natural Earth and 8 MB from geoBoundaries once)
yarn test
yarn build
yarn start:website  # the example, at http://localhost:5173

The generated files in lib/src/regions/, lib/src/loaders.ts and docs/governing-tier.md are committed; CI checks that they match the generator. Which tier each country has is in lib/data/governing-tiers.json.

License

MIT. The map data is public domain (Natural Earth, geoBoundaries for Kenya); see Map data.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm react-svg-worldmap-regions

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229