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

ragent-cli

v1.8.0

Published

CLI agent for rAgent Live — browser-first terminal control plane for AI coding agents

Downloads

1,879

Readme

ragent-cli

CLI agent for rAgent Live — browser-first terminal control plane for AI coding agents.

Installs a lightweight connector on your Linux host that streams terminal sessions to the rAgent Live portal via WebSocket.

Requirements

  • Node.js >= 20
  • Linux (systemd recommended, pidfile fallback available)
  • tmux (optional, for multi-session support)

Installation

npm install -g ragent-cli

Quick Start

  1. In the rAgent Live portal, click Setup Host to generate an enrollment token.
  2. On your Linux host:
ragent enroll \
  --portal "https://your-portal.example.com" \
  --token "your-enrollment-token" \
  --as-service

This enrolls the host, installs a background service, and starts streaming.

Commands

ragent enroll

Enroll a host using a short-lived enrollment token from the portal.

ragent enroll --token <token> [options]

| Option | Description | |--------|-------------| | --token <token> | (required) Enrollment token from portal | | --portal <url> | Portal base URL (default: http://localhost:3000) | | -i, --id <id> | Host ID (auto-detected from hostname) | | -n, --name <name> | Host display name (auto-detected from hostname) | | -c, --command <command> | Shell command to run (default: bash) | | --as-service | Install and start background service after enrollment | | --no-run | Enroll only; do not start the connector |

ragent run

Run the connector using saved credentials.

ragent run [options]

| Option | Description | |--------|-------------| | --portal <url> | Portal base URL | | --agent-token <token> | Agent token (uses saved token by default) | | -i, --id <id> | Host ID | | -n, --name <name> | Host name | | -c, --command <command> | Shell command to run |

ragent service

Manage the background connector service.

ragent service install [--start] [--no-enable]
ragent service start
ragent service stop
ragent service restart
ragent service status
ragent service logs [-n <lines>] [-f]
ragent service uninstall

Uses systemd user units when available, with a pidfile-based fallback.

ragent doctor

Run environment and connectivity checks.

ragent doctor [--portal <url>] [--fix]

Checks: platform, Node.js version, tmux, portal reachability. Use --fix to interactively install missing dependencies.

ragent update

Update the CLI from npm.

ragent update [--check]

Use --check to see if an update is available without installing.

ragent sessions list

List tmux sessions, windows, and panes on this host.

ragent sessions list

Configuration

Config is stored at ~/.config/ragent/config.json. The enroll command creates this automatically.

Environment Variables

| Variable | Description | |----------|-------------| | RAGENT_PORTAL | Default portal URL | | RAGENT_NO_ART | Set to true to disable ASCII art banners | | RAGENT_DISABLE_UPDATE_CHECK | Set to true to skip update checks | | NO_COLOR | Set to 1 to disable ANSI colors |

Development

cd cli
npm install
npm run build      # Build with tsup
npm run typecheck   # Type check with tsc
npm test           # Run vitest tests
npm run dev        # Watch mode

License

MIT