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

tile-squirrel

v1.6.0

Published

Tile Squirrel reads from a rabbit queue and cache tiles from a tilelive source to a tilelive sink

Readme

Tile Squirrel

Tile Squirrel is designed to render map tiles in bulk across multiple hosts. Tiles are added to a queue, and then one or more workers can read from the queue and render tiles. RabbitMQ is used for queuing, and tilelive is used for sources and destinations for tiles.

Commands

squirrel.js

This is the tiling worker. It reads from the queue and makes tiles.

Usage: node squirrel.js [options]

Options:
   -c CONFIG, --config CONFIG    Provide a configuration file
   -r MODULE, --require MODULE   Require a specific tilelive module
   -v, --version                 Show version info

A configuration file is required.

add-bbox.js

Add all tiles in a bounding box to the queue. Can work on one or more sources at a time. Tiles are split into groups for queuing.

Usage: node add-bbox.js [sources]... [options]

sources     source names to queue

Options:
   -c CONFIG, --config CONFIG   Provide a configuration file. Configuration file is not needed, but if it is provided sources will be verified to exist in config.
   -z ZOOM, --zoom ZOOM         zoom, can be a single number or a range like 5-10
   -b BBOX, --bbox BBOX         BBOX in W,S,E,N format  [-180,-85.0511287798066,180,85.0511287798066]
   --xSize size                 Max x size of chunks.  [8]
   --ySize size                 Max y size of chunks.  [8]
   -v, --version                Show version info

A zoom, or range of zooms, and one or more sources is required.

add-tile-list.js

Add a list of tiles to the queue. Defaults to reading from STDIN, but can also read from a file.

Usage: node add-tile-list.js [sources]... [options]

sources     source names to queue

Options:
   -d, --dryRun    Dry run. Don't actually add messages to queue.
   -v, --version   Show version info

Read a list of tiles to queue for rendering.

add-tile.js

Add a single tile to the queue.

Usage: node add-tile.js [source] [tile] [options]

source     Source to queue
tile       Tile to queue

Options:
   -c CONFIG, --config CONFIG   Provide a configuration file. Configuration file is not needed, but if it is provided sources will be verified to exist in config.
   -v, --version                Show version info

Queue a single tile

copy-info.js

Copy metadata from a source to a sink

Usage: node copy-info.js [sources]... [options]

sources     source names to queue

Options:
   -c CONFIG, --config CONFIG   Configuration file.
   -v, --version                Show version info

Copy metadata from a source to a sink.

Configuration

Configuration File

The configuration file defines a tilesets, each with a source and a sink.

{
  "topo": {
    "source": "tmsource:///Users/jesse/projects/topo.tm2source",
    "destination": "file:///Users/jesse/working-data/squirrel-tiles?filetype=pbf"
  },
  "osm":{
    "source":"tmsource:///Users/jesse/projects/osm.tm2source",
    "destination":"s3simple://vector-tiles-testing.gaiagps.com/osm/?filetype=pbf"
  }
}

The configuration file aims to be compatible with Tessera.

Environment variables

  • AMPQ_HOST - RabbitMQ host to connect to. Defaults to localhost.
  • AMPQ_TOPIC - RabbitMQ topic to use. Defaults to tiles.
  • UV_THREADPOOL_SIZE - Threadpool size to use. defaults to 4
  • TILESQUIRREL_OPTS - Additional command line arguments.
  • WORKER_COUNT = Number of worker threads to start. Defaults to the number of cpu cores.