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

dotsky

v1.0.4

Published

Full-screen terminal planetarium

Readme

✦ dotsky

A full-screen terminal planetarium. No telescope required — just a keyboard and a sense of wonder.

       .      *       +      .      .          .
    +      .     .      *         .       +
  .    *       .      .     ☉       .      *
      .     +      .        .      *       .
   *      .      .      +      .      .      +
            [ TERMINAL SKY ACTIVATED ]

dotsky turns your terminal into a live celestial viewport. Point it anywhere on Earth, dial in any time, and watch the sky render in ASCII — stars, planets, the Moon, and the Sun, plotted in real time.

It is accurate enough to trust, minimal enough to leave running, and weird enough to feel like a piece of arcade hardware that fell off a satellite.


🚀 Install

npm install -g dotsky

Or run it directly with npx:

npx dotsky

🌌 Usage

Launch and let it find your sky automatically:

dotsky

Take the helm manually:

# Set your ground station
dotsky --lat=-33.8688 --lon=151.2093

# Rewind to a specific night
dotsky --time="2026-04-29T21:00:00+10:00"

# Disable geolocation (fully offline)
dotsky --no-geo

# Start with labels enabled
dotsky --labels

# Fine-tune the display
dotsky --aspect=0.5 --fps=15

CLI Options

| Option | Default | Description | | ---------- | ----------- | ------------------------------------ | | --lat | auto | Observer latitude | | --lon | auto | Observer longitude | | --time | system time | Initial observation time (ISO 8601) | | --no-geo | false | Skip IP geolocation | | --aspect | 0.5 | Terminal character aspect correction | | --fps | 15 | Maximum render FPS | | --labels | false | Show object labels on startup | | --help | false | Show help |


🎮 Flight Controls

Once inside, your keyboard is the control deck:

| Key | Action | | ----------- | ------------------------------- | | q | Eject (quit) | | Ctrl + C | Eject (quit) | | Space | Toggle live / manual time | | | Rotate viewport west / east | | + - | Zoom in / out | | l | Toggle object labels | | [ ] | Step time backward / forward | | r | Reset view and time |

In live mode, the sky updates every second. In manual mode, time freezes and you step through it in 10-minute chunks.


🗺️ How Location Works

dotsky tries to lock onto your position in this order:

  1. CLI flags (--lat / --lon) — you know where you are
  2. Cached location — remembers the last session
  3. IP geolocation — asks the internet (only if you let it)
  4. Sydney, Australia — our proud fallback coordinates

If the network is down, no drama. It defaults gracefully and prints a quiet footer:

Location fallback: Sydney

🛰️ What's Under the Hood

  • Node.js + Ink + React — rendering a TUI that feels like a cockpit HUD
  • astronomy-engine — precise celestial mechanics (no guesswork)
  • Custom projection layer — altitude/azimuth mapped to your terminal grid
  • Star density culling — adapts to your viewport so it never feels crowded
  • Debounced resize — handles terminal resizing without tearing the sky apart

The architecture is split into four clean domains:

Astronomy  →  Projection  →  Rendering  →  Terminal
   (data)       (math)        (ASCII)      (display)

Swap in stereographic, orthographic, or azimuthal projections without touching the sky model.


🧰 Requirements

  • Node.js 18+
  • A terminal that supports Unicode and alternate screen buffers
  • Minimum resolution: 80×24

🌠 Roadmap

v1 ships with the core sky. Future orbits may include:

  • Constellation overlays
  • City search
  • Deep-sky objects (nebulae, clusters)
  • Screenshot / export
  • Mouse support
  • Telescope integration

📜 License

ISC


┌─ dotsky ──────────────────────────────┐
│                                          │
│   "The universe is under no obligation   │
│    to make sense to you."                │
│                                          │
│              — but we plotted it anyway  │
│                                          │
└──────────────────────────────────────────┘