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

@theruid/ruid

v0.3.48

Published

Standalone CLI coding agent — works with any LLM provider

Readme

ruid (@theruid/ruid)

A fast, standalone CLI coding agent that works with any LLM provider — Anthropic, OpenAI, DeepSeek, Groq, OpenRouter, Ollama, LM Studio, or any OpenAI-compatible endpoint.

Installation

npm install -g @theruid/ruid

Quick Start

ruid

On first launch, run /setup to connect your API key or local model endpoint.

Usage

Launch the interactive coding environment:

ruid

Configure providers, API keys, or endpoints at any time using the setup wizard:

ruid setup

Operating Modes

Switch modes at any time by pressing Tab in the prompt or typing /mode <mode>:

  • [CODE] Mode (Default): Standard safe mode. Read-only tools are auto-approved; mutating tools (write_file, edit_file, bash) require human confirmation (y/n/a).
  • [PLAN] Mode: Read-only architecture mode. Mutating file tools are disallowed; the agent explores code and uses task tracking to build step-by-step plans.
  • [AUTO] Mode: Autonomous execution. All tools are pre-approved without prompts for fast iteration.

Keyboard Shortcuts & Commands

| Shortcut / Command | Action | |---|---| | Tab (in prompt) | Cycle operating mode ([CODE] → [PLAN] → [AUTO]) | | Ctrl+Enter | Insert newline for multi-line prompts | | @<filename> | File picker autocomplete & auto-attach file content | | PageUp / PageDown | Scroll chat transcript | | Ctrl+C | Interrupt running turn (press twice to exit) | | /tasks or /plan | View currently active plan and tasks | | /mcp | List connected Model Context Protocol (MCP) servers & tools | | /hooks | List configured pre/post tool execution hooks | | /rollback [turn] | Revert file modifications back to pre-turn state | | /new | Start a new chat session | | /resume or /sessions | Open session picker to resume conversations | | /setup | Provider setup wizard | | /providers | List configured providers and connection state | | /connect <name> | Switch active provider | | /model <id> | Switch model (no argument = show current) | | /clear | Clear conversation history | | /exit, /quit | Save and exit | | /help | List commands |


Model Context Protocol (MCP)

Add external MCP tools directly in ~/.ruid/config.json:

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-memory"]
    },
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    }
  }
}

Run /mcp in the terminal to inspect active servers and tools.


Tool Execution Hooks

Configure custom pre-execution and post-execution hooks in ~/.ruid/config.json:

{
  "hooks": {
    "preToolUse": [
      {
        "tool": "bash",
        "command": "node guard.js",
        "timeoutMs": 5000
      }
    ],
    "postToolUse": [
      {
        "tool": "*",
        "command": "node log.js"
      }
    ]
  }
}

Hooks receive the event JSON payload on stdin and via RUID_TOOL_NAME, RUID_SESSION_ID, and RUID_WORKSPACE environment variables. Pre-tool hooks fail closed (exit code 2 passes custom rejection message to the model; other non-zero codes block execution).

Run /hooks in the terminal to inspect configured hooks.


License

Apache-2.0