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

eurostat-map

v4.4.5

Published

Reusable library to quickly create and customise web maps showing Eurostat data directly retrieved from Eurostat database.

Readme

eurostat-map: Data-Driven Maps

  • Interactive SVG maps rendered using D3.js.
  • TypeScript support with built-in definition typings.
  • NUTS geometries fetched dynamically via the Nuts2json API (TopoJSON format).
  • Eurostat API integration using the JSON-stat standard.

Resources


Quick Start

npm install eurostat-map
import eurostatmap from 'eurostat-map'

or

const eurostatmap = require('eurostat-map')

or

<script src="https://unpkg.com/eurostat-map"></script>

then

eurostatmap
    .map('choropleth')
    .title('Population density in Europe')
    .stat({ eurostatDatasetCode: 'demo_r_d3dens', unitText: 'people/km²' })
    .legend({ x: 500, y: 180, title: 'Density, people/km²' })
    .build()

Want a guided setup? Try the notebook: https://observablehq.com/@joewdavies/eurostat-map-js

Documentation

For detailed documentation on what eurostat-map can do, see the documentation page.

For generated, signature-accurate API docs from TypeScript/JSDoc, see the API docs.

Anything unclear or missing? Feel free to ask!

Made with eurostat-map

Here are some public projects and publications built with eurostat-map:

About

eurostat-map is an open-source JavaScript library for building interactive, publication-ready statistical maps focused on Europe. It combines D3-based SVG rendering with direct support for Eurostat datasets (JSON-stat), NUTS geographies from Nuts2json, and custom data workflows, and includes map types such as choropleth, proportional symbols, cartograms, flow maps, and composition charts. The project is designed for analysts, journalists, and institutions that need reproducible, configurable map visualizations for both exploratory analysis and official communication.

| | | | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | contributors | | | version | See npm | | status | Since 2018 | | license | EUPL 1.2 |

Contribute

Feel free to ask for assistance, fork the project or simply star it (it's always a pleasure).

Copyright

The Eurostat NUTS dataset is copyrighted. There are specific provisions for the usage of this dataset which must be respected. The usage of these data is subject to their acceptance. See the Eurostat-GISCO website for more information.

Disclaimer

The designations employed and the presentation of material on these maps do not imply the expression of any opinion whatsoever on the part of the European Union concerning the legal status of any country, territory, city or area or of its authorities, or concerning the delimitation of its frontiers or boundaries. Kosovo*: This designation is without prejudice to positions on status, and is in line with UNSCR 1244/1999 and the ICJ Opinion on the Kosovo declaration of independence. Palestine*: This designation shall not be construed as recognition of a State of Palestine and is without prejudice to the individual positions of the Member States on this issue.