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

@protolabsai/rabbit-hole-cli

v0.1.3

Published

Rabbit Hole CLI — search the web, ingest media, run deep research. Designed to be shelled out to by fleet agents.

Readme

@protolabsai/rabbit-hole-cli

rh — Rabbit Hole CLI. Search the web, search your ingested corpus, queue media to the processor, and run deep research. Designed to be shelled out to by fleet agents (protoMaker, workstacean) instead of a long-lived MCP transport.

Install

# published to npm:
npm i -g @protolabsai/rabbit-hole-cli
rh --help

The build is a self-contained single file (deps are bundled), so an agent image can also just drop in the binary — no node_modules alongside it:

COPY --from=cli-build /app/packages/cli/dist/index.js /opt/rh/rh.mjs
RUN ln -s /opt/rh/rh.mjs /usr/local/bin/rh && chmod +x /opt/rh/rh.mjs

Commands

rh search  "<query>"  [--text] [-m 5]
rh recall  "<query>"  [--text] [-k 8]
rh research "<topic>" [-d 2] [--max-results 4]
rh ingest  <path|url> [-m <mime-type>] [--wait]
rh status  <job-id>   [--wait] [--result]

All commands emit JSON by default (for agent consumption); pass --text (where available) for a human-readable markdown view. Log lines go to stderr so JSON / reports on stdout pipe cleanly.

  • rh search — web search. Prefers our in-house SearXNG (RH_SEARXNG_ENDPOINT); falls back to Tavily when SearXNG is unset / unreachable and a Tavily key is present.
  • rh recall — vector search over your ingested files (the pgvector corpus_chunks corpus, qwen3 1024-dim embeddings). Embeds the query via the gateway and returns the top-k cosine matches. Hits GET {job_processor_url}/search.
  • rh research — a 3-stage loop: the LLM plans --depth sub-queries, each is searched (SearXNG/Tavily), then the LLM synthesizes a markdown report with inline [n] citations.
  • rh ingestPOST {job_processor_url}/ingest. Local files are read + uploaded; URLs are fetched server-side. Returns { jobId, sidequestId, queue } where jobId is the caller-tracked id. With --wait, polls GET /ingest/:id/status every 2s until a terminal state (completed / failed), then exits non-zero on failure.
  • rh statusGET {job_processor_url}/ingest/:id/status. With --wait, polls until terminal; with --result, also fetches GET /ingest/:id/result (the stored extraction) when status=completed.

Config

Sources, in priority order:

  1. CLI flags
  2. Env vars (RH_* prefix preferred, generic fallbacks recognized)
  3. ~/.config/rh/config.yaml
  4. Defaults

Env vars

| Var | Default | Purpose | | --- | --- | --- | | RH_JOB_PROCESSOR_URL | http://job-processor:8680 | ingest / status / recall target | | RH_SEARXNG_ENDPOINT (or SEARXNG_ENDPOINT) | http://searxng:8080 | in-house web search (preferred) | | RH_TAVILY_API_KEY (or TAVILY_API_KEY) | optional | Tavily fallback when SearXNG is unavailable | | RH_LLM_BASE_URL (or OPENAI_BASE_URL) | http://gateway:4000/v1 | OpenAI-compatible endpoint | | RH_LLM_KEY (or OPENAI_API_KEY) | required for recall/research | gateway / OpenAI key | | RH_LLM_MODEL | protolabs/smart | model for research synthesis | | RH_CONFIG_PATH | ~/.config/rh/config.yaml | override config file location |

Config file format

# ~/.config/rh/config.yaml
job_processor_url: http://job-processor:8680
searxng_endpoint: http://searxng:8080
tavily_api_key: tvly-xxx          # optional fallback
llm_base_url: http://gateway:4000/v1
llm_key: sk-…
llm_model: protolabs/smart

Defaults assume docker-network deployment

The baked-in defaults (http://job-processor:8680, http://searxng:8080, http://gateway:4000/v1) resolve inside the ai_default Docker network where the job-processor, SearXNG, and LiteLLM gateway are reachable by service hostname. From outside the network, override the URLs via env or the config file.

Teach an agent to use rh (Claude skill)

The repo ships a loadable Claude skill that tells an agent when and how to use these commands. Drop it into your project- or user-scoped skills directory:

# from a clone of rabbit-hole.io
cp -r .claude/skills/rabbit-hole <your-project>/.claude/skills/   # project-scoped
cp -r .claude/skills/rabbit-hole ~/.claude/skills/                 # user-scoped

See .claude/skills/rabbit-hole/SKILL.md.