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

anthxrouter

v1.0.1

Published

AnthXrouter — local LLM router with Web UI, providers, combos, and OpenAI-compatible endpoint

Readme

AnthXrouter

Local-first LLM router with workspace-scoped auth, encrypted provider secrets, and OpenAI-compatible inference endpoints.

Global install (recommended)

npm install -g anthxrouter
anth

Alias:

anthxrouter

Update to the latest version

npm update -g anthxrouter

Or reinstall explicitly:

npm install -g anthxrouter@latest

Your settings, providers, and vault key stay in the user data directory across updates:

  • Windows: %USERPROFILE%\.anthxrouter
  • macOS / Linux: ~/.anthxrouter

CLI options

anth --help          # show commands
anth --version       # show installed version
anth --background    # start server in background and exit
anth --open          # start server and open Web UI
anth --update        # show npm update instructions

Default port: 21228. If the port is taken by another app, AnthXrouter scans the next available port automatically.

System tray (Windows)

Choose Hide to System Tray in the CLI menu — the AnthXrouter logo appears in the Windows notification area (near the clock). Right-click to open the dashboard or quit.

Quick Start (Development)

npm install
npm run dev          # runs both Vite client + tsx-watched server

Production / Deployment

Important: The server must be built before starting in production mode.

npm run build:server   # compiles TypeScript → dist-server/
npm start              # runs the compiled server (node dist-server/bootstrap/index.js)

Safety Guards

  1. Prestart hooknpm start automatically triggers npm run build:server first.
  2. Runtime integrity check — On server boot, the application verifies that the compiled vault module contains the key-drift detection logic. If the check fails (stale build), the process exits with a clear fatal error.
  3. Production bind guard — Binding beyond loopback requires ALLOW_REMOTE_BIND=true and SETUP_SECRET.

Key Security Features

  • Three-plane authentication (workspace, session, CLI API key)
  • AES-256-GCM envelope encryption for provider secrets with on-disk key fingerprinting and runtime drift detection
  • Rate limiting + progressive lockout on auth endpoints
  • SSRF protection on outbound provider requests
  • Workspace-scoped data isolation (all records keyed by X-Workspace-Id)
  • Password never required for inference (CLI keys are separate)
  • /v1/chat/completions forwards to configured providers (OpenAI-compatible and Anthropic)

Project Structure (high level)

server/
  bootstrap/          # app factory + startup
  application/        # services (auth, providers, cli-keys, router)
  http/               # routes + middleware
  infrastructure/     # crypto, db (json file store), repositories
src/
  features/           # React features (auth, provider, combo, endpoint, usage)
  shared/             # api client, i18n, storage, styles
cli/
  menu.mjs            # interactive launcher
  server.mjs          # process management

Environment Variables

See .env.example. All integer variables are parsed safely (empty or invalid values fall back to documented defaults).

| Variable | Default (prod CLI) | Notes | |----------|-------------------|-------| | PORT | 21228 | API + Web UI port | | HOST | 127.0.0.1 | Loopback only unless ALLOW_REMOTE_BIND=true | | ANTHXROUTER_DATA_DIR | ~/.anthxrouter | Store + vault key location | | SETUP_SECRET | — | Required for remote initial password setup |

License

MIT