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

city-script

v0.5.0

Published

A set of simple scripts that can be loaded to https://github.com/anvaka/city-roads

Readme

city-script

Collection of scripts that can be loaded into city-roads.

I'm working on adding more scripts, and you are more than welcome to contribute your ideas and scripts here.

Find Paths

Allows you to draw thousands of shortest paths in any city between two random points, or between one fixed point and thousands random points.

find paths demo

If you have long distance loved ones you can make a perfect gift, drawing "all roads lead to you" city

Read documentation here

Color by elevation

This script reads elevation data from MapBox and allows you to color roads based on their level above the sea.

20m above the sea in Seattle

Read documentation here

Roads orientation

This script renders a histogram of roads length-directions. You can click on bars to highlight matching roads:

road orientations

Read documentation here

Sampling nodes

This script samples N nodes from the graph, and assigns nearest neighbors to the sampled nodes using color. Nodes are sampled based on either longest shortest distance between all previously sampled nodes or with probably proportional to the shortest distance.

sample nodes

Read documentation here

More scripts

I hope to add more scripts. If you have requests - please do not hesitate to open issue here, or ping me on twitter.

If you are a software engineer and would like to build the scripts too - you are more than welcome to explore the source code.

I'm slowly updating documentation for the most major modules used by the city-roads, and if you don't want to wait or need some ideas how to do X (where X is your own passion/idea) - please ping me. I love data visualizations and would be glad to help.

Support

Your support is more than welcomed! More than anything it sends me a strong signal that I'm doing something useful, that the time is not wasted, and someone finds this valuable. Please be my sponsor if you love this work.