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

switchboard-router

v0.6.26

Published

Switchboard CLI — local AI routing gateway (install: npm i -g switchboard-router; run: switchboard)

Readme

Switchboard CLI

Start and manage the Switchboard server (dashboard + OpenAI-compatible gateway) from the terminal. Optional system tray on macOS/Linux.

Install (from this monorepo)

# From repo root
npm run cli:pack

# Or develop the CLI package
cd cli && npm run dev

Published package name: switchboard-router (npm). CLI command: switchboard.

Bare name switchboard is already taken on npm by an unrelated package — always install switchboard-router.

npm i -g switchboard-router
switchboard

What it does

  • Launches the Next.js dashboard/gateway
  • Stores runtime data under ~/.switchboard (or %APPDATA%/switchboard on Windows)
  • Optional tray icon and autostart helpers

Default port: 20128

Operations

switchboard                 # start with the interface menu
switchboard --tray          # start directly in tray mode
switchboard status          # show URL, versions, PID, start time, and ownership
switchboard stop            # gracefully stop the owned instance
switchboard restart         # gracefully stop, then start again
switchboard --help          # complete command and option reference

In an interactive terminal, Ctrl+C uses the same graceful shutdown path as switchboard stop: the tray helper, gateway, MITM helper, and recorded child processes are stopped before the launcher exits. In tray mode, choose Quit. If the tray icon is missing, switchboard stop remains available.

Starting Switchboard again is safe. The launcher replaces a verified prior Switchboard instance, including an orphaned bundled next-server, but refuses to signal an unrelated process that happens to use the same port. Use switchboard status for the listener PID and recovery guidance.

Common options:

| Option | Purpose | |:--|:--| | -p, --port <port> | Port from 1 to 65535 (default 20128) | | -H, --host <host> | Bind address (default 127.0.0.1) | | -l, --log | Stream server output while retaining crash diagnostics | | -t, --tray | Start with the system-tray control surface | | --skip-update | Skip the startup update check | | --json | Machine-readable status output |

--host 0.0.0.0 or --host :: is network-exposed and is called out explicitly in the terminal. Auto-start is opt-in from the tray menu; simply hiding the app to the tray does not enable start-on-boot.

Tray/autostart logs on macOS are /tmp/switchboard.log and /tmp/switchboard.error.log. Runtime ownership state is stored under ~/.switchboard/runtime/owned-processes.json (or the configured DATA_DIR).

Related docs