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

earth-visualization

v1.0.1

Published

Fully packaged Earth visualization with textures and Three.js bundled.

Readme

Earth Visualization

Fully packaged real-time Earth visualization for the browser. Ships with the Three.js renderer, high-resolution textures, atmospheric shaders, and a complete Walker Delta satellite constellation - everything bundled so you can drop it into any project with a single dependency.

Features

  • High-quality Earth shading with day/night transition, specular oceans, and bump-mapped terrain
  • Animated cloud layer and additive atmosphere glow
  • 1,584 instanced satellites with illumination logic
  • Adaptive level of detail for smooth performance
  • Bundled textures and Three.js runtime (no external asset hosting required)

Installation

npm install earth-visualization

or

yarn add earth-visualization

Usage

import initEarthVisualization from 'earth-visualization';

const container = document.getElementById('earth');

const { renderer, dispose } = initEarthVisualization(container, {
  autoResize: true,
  rendererOptions: {
    antialias: true
  }
});

// Call dispose() when you no longer need the visualization
// dispose();

Options

  • autoResize (boolean, default true): Update the renderer when the window resizes.
  • rendererOptions (object): Extra options forwarded to new THREE.WebGLRenderer().
  • textures (object): Override URLs for any bundled texture (day, night, clouds, topography, specular, landOcean). Use this to swap in custom imagery or a CDN.
  • onTextureError (function): Called with the failing URL if a texture cannot be loaded.

The initializer returns { scene, camera, renderer, dispose }.

Package Layout

dist/
  index.js          ESM build (minified + sourcemap)
  index.cjs         CommonJS build (minified + sourcemap)
  textures/         Copied texture assets
src/
  app.js            Visualization implementation
  index.js          Package entry (re-exports init)
  dev.js            Local demo bootstrapping
  index.html        Manual test page (expects bundler build)
  textures/         Source texture files
rollup.config.mjs   Build configuration

All textures are imported inside the module; the Rollup build copies them into dist/textures and rewrites the URLs automatically, so consumers get working paths by default.

Development

npm install
npm run build          # Produces dist/ with bundled code and textures
npm pack               # Optional: inspect the tarball before publishing

For manual testing:

  1. Run npm run build.
  2. Serve the project root with any static server (for example npx http-server . -p 8080).
  3. Open http://localhost:8080/src/index.html.

That page loads src/dev.js, which imports the bundled module from dist/index.js and mounts the visualization into the #app element.

Publish Checklist

  1. Update version in package.json.
  2. Run npm run build and npm pack to verify the bundle contents.
  3. Tag the release (git tag vX.Y.Z && git push --tags).
  4. Publish: npm publish --access public.

License

MIT (c) 2025 Earth Visualization contributors. Includes Three.js (MIT) and bundled NASA imagery (public domain). Review the upstream licenses if you swap in alternate data.