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

rei-code

v0.1.0

Published

Claude Code–parity terminal coding agent powered by REI Labs Units/Reigents

Readme

REI Code

Claude Code–style terminal coding agent powered by REI Labs Units/Reigents.

What it does

  • Interactive and one-shot CLI for repo-aware coding assistance
  • Tooling: read/write/apply patch, search, git status/diff/log, run commands (deny-by-default)
  • Session persistence and resumable conversations (repo-local state)
  • REI Labs provider integration (Units/Reigents) with debug logging and retry/backoff (no streaming yet)
  • REPL IO purity: all REPL/slash output flows through injectable IO channels (write/info/warn/error/debug/log)

Install (npm)

Global install (adds rei to your PATH):

npm install -g rei-code
rei --help

Run without global install:

npx rei-code --help

Prerequisites

  • Node.js 18+ (required for CLI runtime)
  • REI Labs API key (export REI_API_KEY or pass --api-key)

For contributors/developers in this repo:

  • Bun 1.0+ (used for dev workflow and tests) — install from https://bun.sh

Dev install & build

bun install
bun run build

Run

Interactive REPL:

bun run start
# or
node dist/index.js

One-shot prompt:

node dist/index.js "Add tests for foo"

Print/pipe mode (Claude parity flag):

echo "Summarize src/cli.ts" | node dist/index.js -p

Common flags (parity-inspired):

  • -p, --print – print response and exit
  • -c, --continue – continue most recent session in this repo
  • -r, --resume <id> – resume by session id
  • --unit / --reigent <name> – pick model/unit (unit is resolved server-side; we do not send model)
  • --allow-cmd <prefix> – allowlist a command prefix (still prompts to run)
  • --show-permissions – print current permissions/policy summary at startup
  • --yes – auto-approve safe file writes (never auto-approves commands)

REI-specific subcommands:

  • rei agents:get – fetch agent details (REI REST API)
  • rei chat:test [message] – minimal chat completion test
  • rei mcp list – list MCP servers from the registry
  • rei mcp enable <id> – enable an MCP server in .rei/mcp.json

State & config

Repo-local state lives in .rei/ (see REI.md):

  • .rei/config.json – repo overrides
  • .rei/sessions/ – session logs (JSONL; retention and redaction supported via SessionStore options)

Debugging

Set REI_DEBUG=1 to print request/response envelopes, retry attempts, and provider errors (payloads redacted, unit noted but not sent):

REI_DEBUG=1 node dist/index.js "hello"

See DEBUGGING.md for more.

Testing

bun test

See TESTING.md for the testing taxonomy and near-term coverage goals.

Embedding / IO purity

REPL IO is injectable (write/info/warn/error/debug/log). This enables embedding in TUIs/webviews and transcript capture without stdout scraping. See EMBEDDING_USE_CASES.md for concrete scenarios.

Contributing / repo guide

See REI.md for architecture, conventions, and safety/UX expectations. For migration notes, see BUN_MIGRATION.md.

Roadmap & parity

PRD.md contains the parity charter and current workstreams. Short-term roadmap items are tracked there.

Beta status (current)

Shipped in beta:

  • Provider hardening (capabilities, retry/backoff, structured debug logging)
  • Session persistence/resume (.rei/sessions/*.jsonl)
  • Deny-by-default command policy with allowlist + approval prompts
  • MCP discovery and interactive trust flow (/mcp discover, /mcp inspect, /mcp connect)
  • REPL IO purity (injectable IO channels used across REPL/slash flows)

Deferred to post-beta:

  • Streaming model output
  • Checkpoint/hook/plugin parity beyond command plugins
  • Full parity for all Claude Code subcommands/flags