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

react-earth-lite

v0.1.1

Published

A tiny React Three Fiber Earth object with NASA-derived maps, clouds, night lights, atmosphere, and pins.

Readme

React Earth Lite

A tiny open-source Earth object for React Three Fiber. The default globe uses compressed NASA-derived textures for a realistic Blue Marble-style Earth while keeping runtime dependencies limited to React, Three, and React Three Fiber.

Goals

  • JS package size under 10 KB gzipped, excluding peer dependencies
  • Default texture payload under 500 KB to 1 MB total
  • Default draw calls: 2; 3 with atmosphere; 4 with atmosphere and markers
  • Default geometry capped at 64 x 32 sphere segments
  • Default GPU texture memory target under 20 MB
  • No controls, postprocessing, optional dependencies, 8K assets, or globe framework

Install

npm install react-earth-lite three @react-three/fiber

Or install a GitHub Release tarball:

npm install https://github.com/OWNER/REPO/releases/download/v0.1.0/react-earth-lite-0.1.0.tgz

Replace OWNER/REPO with the GitHub repository.

Usage

import { Canvas } from "@react-three/fiber";
import Earth from "react-earth-lite";

export function Scene() {
  return (
    <Canvas camera={{ position: [0, 0, 3.2], fov: 42 }} dpr={[1, 1.5]}>
      <Earth radius={1} rotationSpeed={0.026} />
    </Canvas>
  );
}

Named imports work too:

import { Earth } from "react-earth-lite";

Custom Textures

<Earth
  texturePaths={{
    day: "/textures/earth-day.webp",
    clouds: "/textures/clouds-alpha.webp",
    night: "/textures/night-lights.webp",
    normal: "/textures/earth-normal.webp",
    specular: "/textures/ocean-specular.webp",
  }}
/>

Use equirectangular 2:1 textures. The bundled defaults are 1024x512 for day, clouds, and night maps, with smaller support maps for normal and specular detail.

Markers

<Earth
  markers={[
    { lat: 40.7128, lng: -74.006, color: "#ffd166" },
    { lat: 28.6139, lng: 77.209, color: "#7dd3fc" },
  ]}
/>

Markers are rendered with one instanced draw call.

Core Props

| Prop | Default | Notes | | --- | --- | --- | | radius | 1 | Globe radius in scene units | | rotationSpeed | 0.026 | Earth radians per second | | cloudRotationSpeed | 0.018 | Cloud layer radians per second | | quality | "auto" | "low", "medium", "high", or "auto" | | segments | Auto | Clamped to max 64 x 32 | | texturePaths | Bundled maps | Overrides realistic default maps | | clouds | true | Transparent rotating cloud layer | | atmosphere | false | Optional additive rim shader | | nightLights | true | Night-side city lights | | normalMap | true | Terrain normal perturbation | | specular | false | Optional ocean specular shine | | markers | [] | Array of { lat, lng, color, size } | | reducedMotion | "auto" | Honors prefers-reduced-motion by default |

Texture Sources

The bundled maps are resized and compressed derivatives of NASA Earth imagery:

  • Blue Marble Next Generation base map: https://science.nasa.gov/earth/earth-observatory/blue-marble-next-generation/base-map/
  • Blue Marble clouds: https://visibleearth.nasa.gov/images/57747/blue-marble-clouds/57750l
  • Black Marble night lights: https://science.nasa.gov/earth/earth-observatory/earth-at-night/maps/
  • Blue Marble topography and bathymetry: https://science.nasa.gov/earth/earth-observatory/blue-marble-next-generation/topography-bathymetry-maps/
  • NASA media usage guidelines: https://www.nasa.gov/multimedia/guidelines/index.html

Development

npm run dev
npm run lint
npm run build

npm run build creates the package bundle in dist/. npm run build:demo builds the demo app.

Release

npm run lint
npm run build
npm pack

The package tarball contains the ESM bundle, TypeScript declarations, NASA-derived WebP texture assets, README, changelog, and MIT license. See RELEASE.md for the GitHub tag workflow.

License

MIT. The bundled texture assets are derived from NASA imagery; see the texture source links above and NASA media usage guidelines.