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

@stackwright-pro/cesium

v0.1.0-alpha.2

Published

CesiumJS 3D globe map provider for Stackwright Pro -- one-line swap from MapLibre 2D

Readme

@stackwright-pro/cesium

CesiumJS 3D globe map provider for Stackwright Pro

One-line swap from MapLibre 2D to Cesium 3D globe. All existing type: map and type: map_pulse YAML renders on a 3D globe -- zero content changes.

Quick Start

pnpm add @stackwright-pro/cesium cesium
// _app.tsx or layout.tsx
import { registerCesiumProvider } from '@stackwright-pro/cesium';

// With Cesium Ion (terrain + high-res imagery):
registerCesiumProvider({
  ionToken: process.env.NEXT_PUBLIC_CESIUM_ION_TOKEN,
});

// Or without (basic globe, OSM imagery):
registerCesiumProvider();

One-Line Swap from MapLibre

- import { registerMapLibreProvider } from '@stackwright/maplibre';
- registerMapLibreProvider();
+ import { registerCesiumProvider } from '@stackwright-pro/cesium';
+ registerCesiumProvider();

Cesium Asset Setup

CesiumJS requires static assets (web workers, etc.) served from a known path.

Option A: Copy to public/ (recommended)

cp -rf node_modules/cesium/Build/Cesium/ public/cesium/

Add to .gitignore:

public/cesium/

Option B: CDN (development only)

registerCesiumProvider({
  baseUrl: 'https://cesium.com/downloads/cesiumjs/releases/1.122/Build/Cesium/',
  ionToken: '...',
});

Features

| Feature | MapLibre (2D) | Cesium (3D) | | ----------------- | :-----------: | :--------------------: | | Markers | Y | Y | | Polylines | Y | Y (clamped to terrain) | | Polygons | Y | Y | | GeoJSON | Y | Y | | Globe view | -- | Y | | Terrain elevation | -- | Y | | 3D buildings | -- | Y (via Cesium Ion) | | Sun lighting | -- | Y | | Marker altitude | -- | Y | | SSR-safe | Y | Y |

YAML -- Zero Changes Required

# Works with BOTH MapLibre and Cesium -- the provider is an implementation detail
- type: map_pulse
  collection: vessels
  center: { lat: 29.76, lng: -95.36 }
  zoom: 10
  markerMapping:
    lat: latitude
    lng: longitude
    label: vesselName
    popup: '{{ vesselName }} -- {{ speed }}kn'
    colorField: status
    colorMap:
      underway: '#22c55e'
      moored: '#3b82f6'

Cesium-Specific MapConfig Options

# These fields activate when Cesium is the provider:
- type: map
  center: { lat: 40.71, lng: -74.00 }
  zoom: 12
  view: globe # 'globe' (3D) or 'map' (2D) -- Cesium supports both
  terrain: true # Enable terrain elevation

Environment Variables

| Variable | Purpose | | ------------------------------ | ------------------------------------------ | | NEXT_PUBLIC_CESIUM_ION_TOKEN | Cesium Ion token (client-safe for Next.js) | | CESIUM_ION_TOKEN | Alternative (server-side only) |

License

Proprietary -- Per Aspera LLC

CesiumJS itself is Apache-2.0 licensed. Cesium Ion services require a separate Cesium Ion account.