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

starwar-cli

v1.0.3

Published

Navigate your codebase as a 3D star map in the terminal

Readme

✦ starwar

Navigate your codebase as a 3D star map in the terminal.

Each file is a star. Brightness = how often it's edited. Heat color = how recently. Directories form spiral arms. Fly through your codebase like a spaceship.

Install

npm install -g starwar-cli

Usage

# In any git repo
starwar

# With a theme
starwar --theme nebula

# Point at a specific directory
starwar ~/projects/my-app --theme matrix

# Quick mode (skip git history, faster on huge repos)
starwar --quick

Controls

| Key | Action | |---|---| | arrows / hjkl | Rotate view | | w / s | Zoom in / out | | space | Pause / resume rotation | | / | Search for a file and warp to it | | tab | Cycle themes | | r | Reset view | | q / ctrl+c | Quit |

Themes

  • Tron — cyan grid, hot orange stars (default)
  • Matrix — green on black, hacker vibes
  • Nebula — pink and purple, space feels
  • Retro — monochrome terminal aesthetic
  • Sunset — warm oranges and cool purples
  • Midnight — soft blues, easy on the eyes

How It Works

  1. Scans your git repo for all tracked files
  2. Pulls commit history to calculate edit frequency and recency
  3. Positions files in a 3D spiral galaxy (directories = arms, files = stars)
  4. Projects the 3D galaxy onto your terminal in real time
  5. You fly through it

Star brightness is driven by commit count. Star color is driven by how recently the file was touched (hot = recent, cold = old). File size determines star size.

Requirements

  • Node.js >= 14
  • A git repository
  • A terminal with 256-color support (iTerm2, Windows Terminal, Kitty, Alacritty, etc.)

License

MIT