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

@topgunbuild/server

v2.2.1

Published

TopGun server — prebuilt binary distribution. Zero Rust toolchain required.

Readme

@topgunbuild/server

Run a TopGun server with a single command — no Rust toolchain required.

npx @topgunbuild/server

This boots a zero-config server on ws://localhost:8080 with embedded redb storage. Data survives restarts; no Postgres, no Docker, no Rust compiler needed.

Installation

npm install @topgunbuild/server
# or
pnpm add @topgunbuild/server

Only one platform binary is downloaded — the one matching your OS and CPU. The others are skipped silently at install time.

Supported Platforms

| Platform | Package | |----------|---------| | macOS (Apple Silicon / M1–M4) | @topgunbuild/server-darwin-arm64 | | Linux x64 | @topgunbuild/server-linux-x64 |

Additional platforms (macOS Intel, Linux arm64, Windows) are planned.

Usage

Start the server:

npx @topgunbuild/server

Or if installed globally / in your project:

topgun-server

The server listens on ws://localhost:8080 by default. Set the PORT environment variable to change the port.

Admin Dashboard

This package bundles the prebuilt admin dashboard SPA. With the server running, open http://localhost:8080/admin/ — the dashboard is served directly by the binary, with no extra process, build step, or monorepo checkout required. On a zero-config no-auth server (the npx default) it opens straight to the Dashboard, no login needed.

The bin shim resolves the bundled SPA relative to its own location and sets TOPGUN_ADMIN_DIR automatically when you have not set it. Point TOPGUN_ADMIN_DIR at a custom build directory to override; an explicit value is never overwritten.

Package size note. Bundling the SPA grows this meta package from ~9 kB to roughly 316 kB packed / 1.1 MB unpacked (v2.1.0). The increase is the Monaco-editor-heavy admin SPA (~991 kB JS + ~40 kB CSS, gzipping to ~298 kB). The SPA ships only here in the platform-independent meta package — the per-platform binary packages stay binary-only and well under 20 MB.

Storage

The server uses embedded redb storage by default. Data is written to ./topgun.redb in the current directory. No external database is required.

To use Postgres, set STORAGE_BACKEND=postgres and DATABASE_URL=<your-postgres-url>.

Contributor / Monorepo Usage

Inside the TopGun monorepo, pnpm start:server either uses a prebuilt binary (if present) or falls back to:

cargo run --bin topgun-server --release

The prebuilt binary is produced by running:

bash scripts/build-server-binaries.sh

License

Apache-2.0