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

@band-app/server

v0.16.7

Published

Web server + dashboard frontend for Band. Provides the tRPC API, WebSocket layer, and bundled UI consumed by the Electron desktop app and (optionally) standalone npm consumers.

Readme

@band-app/server

Web server + dashboard frontend for Band. Provides the tRPC API, WebSocket layer, and bundled UI consumed by the Electron desktop app and (optionally) standalone npm consumers.

Runtime: Node.js 22.5+

This package runs under Node.js v22.5 or newer. The shebang on bin/band-server.mjs is #!/usr/bin/env node.

ℹ️ Users running the Band desktop app do not need to install Node themselves — the desktop shell ships its own bundled Node runtime (via Electron) and spawns the web server under it. The Node 22.5+ requirement only applies to people running this package directly via band-server / node dist/start-server.mjs, or doing local development against the source tree.

# Run the server (standalone consumer scenario)
band-server
# or:
node dist/start-server.mjs

SQLite via node:sqlite

SQLite is provided by Node's built-in node:sqlite module — no native module ships in the bundle. This eliminates the NODE_MODULE_VERSION ABI mismatch that affects packages like better-sqlite3: whatever Node the user runs supplies node:sqlite directly, so the binary always matches the runtime.

node:sqlite is at Stability 1.2 — Release Candidate in current Node, available unflagged since 22.13.0. The API has been stable across Node 22.5 → 23.x → 24.x. The startup ExperimentalWarning can be silenced with NODE_OPTIONS='--no-warnings=ExperimentalWarning' (the test and e2e scripts in package.json already do this).

We were briefly on bun:sqlite (PR #353) to dodge the same ABI problem, but Bun's node:http shim doesn't fire upgrade events on httpServer.on("upgrade", …), breaking tRPC subscription, terminal, and LSP WebSockets (oven-sh/bun#18945, #5951, #24107). node:sqlite gets us the same ABI-stability win without changing the JS runtime.

Install

For the standalone scenario (running band-server outside the desktop app), Node v22.5+ must be on PATH. Desktop app users can skip this section — the .app brings its own Node.

# 1. Install Node.js 22.5+ (https://nodejs.org)

# 2. Install the package
npm i -g @band-app/server     # or: pnpm add -g

# 3. Run
band-server                   # starts on PORT (default 3456)

Environment:

| Var | Default | Notes | |---|---|---| | PORT | 3456 | TCP port to bind | | HOME/.band | — | State directory (sqlite db, settings, logs) |

Development

pnpm install          # at repo root
pnpm dev:web          # vite dev (Node runtime, in-process)
pnpm --filter @band-app/server build
pnpm --filter @band-app/server test    # vitest under Node

The vitest suite, the production bundle (dist/start-server.mjs), and the Playwright e2e helper all run under Node.

Bundle layout (dist/)

dist/
├── start-server.mjs           # esbuild bundle, entry point
├── client/                    # built dashboard frontend (vite)
├── server/                    # SSR server bundle
├── migrations/                # drizzle SQL migrations
├── openapi.json               # generated tRPC OpenAPI spec
└── node_modules/              # only externalized native deps + helpers
    ├── node-pty/              # native PTY (.node + spawn-helper, NAPI — ABI-stable)
    ├── typescript/
    ├── typescript-language-server/
    └── @openai/codex/         # Codex SDK package.json (codex CLI is system-installed)

No SQLite native module ships in the bundle.