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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@undp-data/undp-design-system-react

v1.0.27

Published

React based design system for UNDP

Readme

Project Title

Project description [Click here to see the interface]({{link to the site here}}).

Doc for the UI kit can be found here

Table of Contents

Link for the visualization

[{{link to the site here}}]({{link to the site here}})

Deployment

The Production site deployed using Azure Static Web App and work flow can be found [here]({{link to the site here}})

Steps to Integrating the Visualization in the Data Future Platform or Any Other Page

Add the following div in the page

<div id="root"></div>

Apart from the mentioned div above the following script and link needs to be added to the head or in the embed code

<script defer="defer" type="module" src="<Link to the Visualization Mentioned Above>/index.js"></script>
<link rel="stylesheet" href="https://undp-data.github.io/stylesheets-for-viz/style/mainStyleSheet.css" />
<link rel="stylesheet" href="https://undp-data.github.io/stylesheets-for-viz/style/StyleForGraphingInterface.css" />
<link rel="stylesheet" href="https://undp-data.github.io/stylesheets-for-viz/style/StyleForGraph.css" />

Pages on DFx Where the Visualization is Used

All the pages on the DFx or other places like viva topics etc. where this visualization is embeded or used.

Related Repos

  • [name of the data repo](link to data repo): This is the data sheet for visualization
  • stylesheet-for-viz: Repo which defines the css settings for the project

Global CSS for UI and Graphs

Git Repo: https://github.com/UNDP-Data/stylesheets-for-viz

Link for stylesheets

  • https://undp-data.github.io/stylesheets-for-viz/style/mainStyleSheet.css
  • https://undp-data.github.io/stylesheets-for-viz/style/StyleForGraphingInterface.css
  • https://undp-data.github.io/stylesheets-for-viz/style/StyleForGraph.css

Build with

  • React: Used as MVC framework.
  • styled-components: Utilizes tagged template literals and the power of CSS, allows to write actual CSS code to style the components in JS/TS.
  • Various D3 Libraries: Used for visualizations, adding interaction and reading the csv data file.
  • AntD: For UI elements like dropdown, buttons, checkbox, and slider.
  • lodash: Used for manipulating and iterating arrays and objects.

Installation

This project uses npm. For installation you will need to install node and npm, if you don't already have it. node and npm can be installed from here.

To install the project, simply clone the the repo and them run npm install in the project folder. You can use terminal on Mac and Command Prompt on Windows.

This project is bootstrapped with Vite and was created using npm create vite@latest command.

Run the terminal or command prompt and then run the following

git clone https://github.com/UNDP-Data/{{projectName}}.git
cd {{projectName}}
npm install

Local Development

To start the project locally, you can run npm run dev in the project folder in terminal or command prompt.

This is run the app in development mode. Open http://localhost:5173/ to view it in the browser.

The page will reload if you make edits. You will also see any lint errors in the console.

Available Scripts

  • npm run dev: Executes vite and start the local server for local deployment.
  • npm run build: Executes tsc && vite build and builds the app for production and deployment.

Tooling Setup

This project uses ESLint integrated with prettier, which verifies and formats your code so you don't have to do it manually. You should have your editor set up to display lint errors and automatically fix those which it is possible to fix. See http://eslint.org/docs/user-guide/integrations.

This project is build in Visual Studio Code, therefore the project is already set up to work with. Install it from here and then install this eslint plugin and you should be good to go.