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

@earthos/gis

v0.1.0

Published

EarthOS geodesy, orbital transforms, astronomy, and spatial indexing

Readme

@earthos/gis

Geodesy, orbital transforms, astronomy, and spatial indexing for EarthOS.

The math layer under the globe: WGS84 geodetic conversions, the TEME/ECI to scene frame swizzle, SGP4 propagation wrappers over satellite.js, low-precision sun and moon positions, great-circle measurement, and a bucketed spatial index. Pure functions and typed arrays, no rendering or framework dependencies, so it runs on the main thread, in a worker, or in Node.

Install

pnpm add @earthos/gis

The satellite.js dependency is pulled in automatically. There are no single-instance peers (react, three) to dedupe.

Usage

import {
  parseTle,
  satGeodetic,
  geodeticToScene,
  subsolarPoint,
  observerLookAngles,
} from '@earthos/gis';

const now = Date.now();

// Sub-point (lat/lon/alt) and inertial speed of a satellite.
const sat = parseTle(tleLine1, tleLine2);
const sub = satGeodetic(sat, now); // null if SGP4 signals decay

// Place a ground marker in the earth-fixed group's local scene frame (km).
const [x, y, z] = geodeticToScene(51.48, 0, 0);

// Sunlit point on the surface, for the day/night terminator.
const sun = subsolarPoint(now);

// Azimuth / elevation / range of an object (ECEF km) from a ground station.
const look = observerLookAngles(51.48, 0, 0, satX, satY, satZ);

The scene frame is Y-up with 1 unit = 1 km, so earth-fixed content rides under a single group whose rotation.y is gmstRad(epochMs). See docs/ARCHITECTURE.md for the frame conventions.

Part of EarthOS. MIT licensed.