Scan your whole stack
Are you using react-svg-worldmap-regions?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.0.0
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.
| Version | Published | Status |
|---|---|---|
| 1.0.0 LATEST | 29 Nov 2026 | No rules fired |
| 0.0.0-stage | 29 Nov 2026 | Not shown |
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.
The publisher’s own README, as collected from the registry.
States, provinces and other regions for react-svg-worldmap. Zoom in on a country and the map draws its regions.
react-svg-worldmap works the same with or without this package. Nothing changes until you pass the provider to a map.tier: "all" gives every first-level division instead: 4,139 regions in 175 countries. See Tiers.npm install react-svg-worldmap react-svg-worldmap-regions
Works with react-svg-worldmap ^2.7.0 and ^3.0.0.
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.
| 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:
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.
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.
| 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:
The map is a thematic visualization, not a legal boundary reference.
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.
MIT. The map data is public domain (Natural Earth, geoBoundaries for Kenya); see Map data.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.