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

@amoradi/atlas

v0.1.1

Published

A lightweight WebGPU-powered world map renderer

Readme

Atlas

A lightweight WebGPU-powered world map renderer.

Atlas Demo

Features

  • WebGPU rendering — fast, GPU-accelerated map drawing
  • Pan & zoom — smooth trackpad and mouse controls
  • Themes — light and dark modes with customizable colors
  • Choropleth — color countries by data values (GDP, population, etc.)
  • Points layer — render markers at coordinates
  • TypeScript — full type definitions included

Installation

npm install @amoradi/atlas

Quick Start

import { Atlas } from '@amoradi/atlas'

const map = new Atlas({
  container: '#map',
  countries: true  // loads Natural Earth 110m
})

map.on('click', (e) => {
  console.log('Clicked:', e.lngLat)
})

Or with a custom GeoJSON URL:

const map = new Atlas({
  container: '#map',
  countries: 'https://example.com/countries.geojson'
})

Custom GeoJSON

Use any GeoJSON with polygon geometries — not just world maps:

// US States
const map = new Atlas({
  container: '#map',
  countries: 'https://example.com/us-states.geojson'
})

// Color states by data
await map.addChoroplethLayer('population', stateData, {
  geoJsonUrl: 'https://example.com/us-states.geojson',
  colors: ['#eee', '#c00']
})

// Or load any custom polygons
await map.addCountryLayer('https://example.com/districts.geojson')

Choropleth Layer

Color countries by value:

await map.addChoroplethLayer('gdp', gdpData, {
  geoJsonUrl: 'countries.geojson',
  colors: ['#2a3a45', '#4a6868'],
  defaultColor: '#2a3a45'
})

// Update data dynamically
map.updateChoropleth('gdp', newData)

Points Layer

Add markers:

await map.addPointsLayer('cities', [
  { lng: -74.006, lat: 40.7128, radius: 8, color: '#ff6b6b' },
  { lng: 139.6917, lat: 35.6895, radius: 6, color: '#4ecdc4' },
])

// Update points
map.updatePoints('cities', newPoints)

API

new Atlas(options)

| Option | Type | Default | Description | |--------|------|---------|-------------| | container | string \| HTMLElement | required | Container element or selector | | theme | 'light' \| 'dark' \| Theme | 'dark' | Color theme | | center | [lng, lat] | [0, 0] | Initial center | | zoom | number | 1 | Initial zoom level |

Methods

  • setTheme(theme) — change theme
  • setCenter(lng, lat) — pan to location
  • setZoom(level) — set zoom level
  • getCenter() — get current center
  • getZoom() — get current zoom
  • on(event, callback) — listen for events
  • off(event, callback) — remove listener
  • refresh() — force re-render
  • destroy() — clean up resources

Events

  • click — fired on map click, includes lngLat and pixel coordinates

Custom Themes

const map = new Atlas({
  container: '#map',
  theme: {
    background: '#1a1a2e',
    land: '#16213e',
    borders: '#0f3460',
    water: '#0a0a0a',
    labels: '#eaeaea',
    points: '#e94560'
  }
})

Browser Support

Requires WebGPU support. Currently available in:

  • Chrome 113+
  • Edge 113+
  • Firefox (behind flag)
  • Safari 17+ (macOS Sonoma)

Development

npm install
npm run dev     # Start dev server
npm run build   # Build for production

License

MIT