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

swiftroutercli

v4.0.4

Published

The official SwiftRouter Command Line Interface using React Ink Components

Readme

SwiftRouter CLI

The Official Command Line Interface for SwiftRouter API Gateway, built with React Ink.

V3 Features (Codex Parity)

  • Interactive Markdown Renderer: Syntactically highlights Assistant markdown responses within the terminal.
  • Intelligent Bash Execution: Automatically detects bash snippet blocks and prompts: Execute suggested command? [Y/n].
  • RAG Local Workspaces: Injects process.cwd() state and files directly into a system prompt context so the AI knows where you are.
  • Persistent History Storage: Automatically saves conversation threads to ~/.swiftrouter-cli/history.json and recalls them using up/down keys in the input.
  • Slash Commands & Menus: Type /models to pop open a sleek ink-select-input menu fetched directly from the SwiftRouter /v1/models API endpoint. Navigate with up/down arrows!
  • System Commands: Type /clear to reset the terminal history buffer, or /exit//quit to cleanly exit the CLI.

Installation

npm install -g swiftroutercli

Configuration

Upon first launch, the CLI asks for configuration parameters. You can also configure via system ENV variables:

  • SWIFTROUTER_API_KEY
  • SWIFTROUTER_BASE_URL (Defaults to http://localhost:3000)

Usage

Simply run the CLI anywhere on your system:

swiftroutercli chat
  • Type /models to select models interactively.
  • Type /clear to reset the session.
  • Type /exit to quit.

Additional Commands

  • swiftroutercli config --set-api-key <KEY> --set-base-url <URL>: Manually configure CLI
  • swiftroutercli models: List available models natively
  • swiftroutercli status: Check authentication and connection status
  • swiftroutercli logout: Clear local configuration securely

Built With

  • ink
  • marked-terminal
  • ink-select-input
  • eventsource-parser

License

ISC