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

@xhermes/cli

v0.0.2

Published

xHermes — talk to your Hermes agent from the terminal.

Readme

@xhermes/cli

Talk to your Hermes agent from your own terminal.

The xHermes CLI is a thin terminal client for the xHermes platform. Authenticate with a device-code flow, then xhermes term drops you straight into your agent's pty — the same Hermes you provision in the browser, in iTerm/wezterm/Ghostty.

Install

npm install -g @xhermes/cli

Requires Node ≥ 20. No native dependencies; works on macOS, Linux, and Windows.

You can also run it with no install:

npx @xhermes/cli

Use

The one-shot happy path:

xhermes

Authenticates this machine if needed (opens a browser to xhermes.cloud to approve a short code), then connects you to your agent's terminal. Ctrl+C exits.

Subcommands

| Command | What it does | |---|---| | xhermes | Auth if needed, then connect (same as xhermes term). | | xhermes auth | Just run the device-code flow. Useful for first setup or re-auth after revoke. | | xhermes whoami | Show your signed-in user and agent. | | xhermes term | Open the agent terminal session. | | xhermes logout | Revoke this machine's token on the server and forget it locally. |

Flags

  • --base-url <url> — point at a non-default control plane (default: https://xhermes.cloud).
  • --bridge-url <url> — override the term-bridge WebSocket URL (the CLI normally fetches this from the server during auth).

You can also set XHERMES_BASE_URL or XHERMES_CONFIG_DIR in the environment.

Where things live

| Path | What | |---|---| | ~/.config/xhermes/credentials.json | Your bearer token, base URL, and bridge URL. Mode 0600 on POSIX. Override the directory with XHERMES_CONFIG_DIR. |

The credentials file contains a long-lived bearer token. Treat it like an SSH key.

How auth works

xhermes auth is a device-code flow:

  1. CLI asks the server for a (device_code, user_code) pair.
  2. CLI shows the user_code and opens your browser to <base-url>/cli/authorize?code=….
  3. You confirm in the browser (signed-in xHermes session required).
  4. CLI polls until the server confirms, then stores an opaque bearer token locally.

The plaintext token is delivered to the CLI exactly once. The server stores only an HMAC. Revoke any time from your xHermes dashboard or via xhermes logout.

How term works

The CLI opens a WebSocket to the term-bridge service, authenticated via the bearer token. The bridge resolves the token, looks up your agent, and pipes raw terminal bytes between you and the agent's pty. See ARCHITECTURE.md for the full data path.

Privacy & trust model

The term-bridge sees the entire raw terminal stream between you and your agent — every keystroke you type, every byte the agent prints. This is operationally necessary (it's the same protocol the browser dashboard uses), and the bridge is operated by xHermes.

See SECURITY.md for the threat model and what is and isn't logged.

License

MIT — see LICENSE.