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

@rag-forge/cli

v0.2.3

Published

Framework-agnostic CLI toolkit for production-grade RAG pipelines with evaluation baked in

Readme

@rag-forge/cli

Framework-agnostic CLI toolkit for production-grade RAG pipelines with evaluation baked in.

rag-forge is the command-line interface to RAG-Forge, a polyglot toolkit for building, evaluating, and auditing Retrieval-Augmented Generation pipelines. It scaffolds new projects, indexes documents, runs hybrid retrieval, scores pipeline output against the RAG Maturity Model (RMM), and ships every report as HTML, JSON, or PDF.

Built for the moment your "demo works on my laptop" RAG meets a real production workload.

Install

npm install -g @rag-forge/cli
# or
pnpm add -g @rag-forge/cli

The CLI delegates pipeline and evaluation work to Python packages. Install them in a dedicated venv:

mkdir -p ~/.rag-forge && cd ~/.rag-forge
uv venv && source .venv/bin/activate
uv pip install rag-forge-core rag-forge-evaluator rag-forge-observability

Verify:

rag-forge --version
rag-forge-eval --help

Quick start

# Scaffold a new RAG project
rag-forge init basic my-rag-project
cd my-rag-project

# Index your documents
rag-forge index --source ./docs

# Run an audit against a golden set
rag-forge audit --golden-set eval/golden_set.json --judge claude

The audit command prints a pre-run banner with sample count, judge model, total judge calls, estimated time, and estimated USD cost — and asks for confirmation (auto-confirmed when invoked through the npm CLI). Per-sample progress streams to stderr as the run proceeds, and a summary line shows scored count, skipped count, RMM level, and report path on completion.

Core commands

| Command | What it does | |---|---| | rag-forge init <template> | Scaffold a new project from a template (basic, hybrid, agentic, enterprise, n8n) | | rag-forge index --source <dir> | Chunk and embed a directory of documents into your vector store | | rag-forge query "<question>" | Run a single RAG query end-to-end against the indexed corpus | | rag-forge audit | Score pipeline output against metrics + the RAG Maturity Model | | rag-forge cost | Estimate audit costs for any judge / evaluator combination | | rag-forge drift report | Compare current run against a saved baseline | | rag-forge golden add | Add entries to your golden question/answer set | | rag-forge guardrails test | Run input/output guardrails against a test corpus | | rag-forge serve --mcp | Start as an MCP server for Claude Desktop or any MCP client | | rag-forge inspect | Inspect indexed chunks, embeddings, and retrieval results |

Run rag-forge <command> --help for full options on any command.

The RAG Maturity Model

RAG-Forge scores every audit against a 6-level maturity model (RMM-0 through RMM-5):

| Level | Theme | Exit criterion | |---|---|---| | 0 — Naive | Vector search returns results | Basic retrieval works | | 1 — Better Recall | Hybrid search + RRF fusion | Recall@5 > 70% | | 2 — Better Precision | Cross-encoder reranking | nDCG@10 +10% | | 3 — Better Trust | Faithfulness, citations, guardrails | Faithfulness > 85% | | 4 — Better Workflow | Caching, cost tracking, P95 budgets | Cache hit rate, cost meter active | | 5 — Enterprise | Drift detection, CI/CD gates, adversarial tests | All audit thresholds pass |

The audit command tells you which level you're at and what specifically you need to do to move up.

Bring your own everything

  • LLM provider: Anthropic, OpenAI, Gemini, Cohere, Bedrock, Ollama, vLLM, or any model behind your own gateway. The JudgeProvider protocol is two methods.
  • Vector store: Qdrant, pgvector, Pinecone, Weaviate, Chroma, or any store implementing the VectorStore protocol.
  • Embedding model: OpenAI, Cohere, sentence-transformers, BGE, or any model exposing an embed_documents() method.
  • Reranker: Cohere, BGE, ColBERT, or skip reranking entirely.

Configure once in rag-forge.config.ts at your project root, then every command honors your choices.

Documentation

License

MIT — Femi Adedayo