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

@emdzej/ragclaw-cli

v0.8.1

Published

CLI for RagClaw - local-first RAG engine

Downloads

1,203

Readme

@emdzej/ragclaw-cli

Command-line interface for RagClaw — local-first RAG engine.

Installation

npm install -g @emdzej/ragclaw-cli

Usage

# Index documents (default embedder: nomic)
ragclaw add ./docs/

# Index with a specific embedder
ragclaw add --embedder bge ./docs/
ragclaw add --embedder minilm ./notes/

# Search (embedder auto-detected from database metadata)
ragclaw search "authentication flow"

# Reindex (optionally switch embedder — rebuilds all vectors)
ragclaw reindex --embedder mxbai

# Status (shows embedder name, model, and dims)
ragclaw status

# List all available embedders (built-in presets + plugin-provided)
ragclaw embedder list

# Check system and embedder compatibility
ragclaw doctor

# Manage
ragclaw list
ragclaw remove ./old-docs/

Embedder Selection

The embedder is resolved in this priority order:

  1. --embedder CLI flag (alias or HuggingFace model ID)
  2. embedder: field in ~/.config/ragclaw/config.yaml
  3. RAGCLAW_EMBEDDER environment variable
  4. Plugin-provided embedder (first enabled plugin wins)
  5. Default: nomic (768 dims, ~600 MB)

Available presets:

| Alias | Model | Language | Context | Dims | ~RAM | |-------|-------|----------|---------|------|------| | nomic ⭐ | nomic-ai/nomic-embed-text-v1.5 | English | 8 192 tok | 768 | ~600 MB | | bge | BAAI/bge-m3 | 100+ languages | 8 192 tok | 1024 | ~2.3 GB | | mxbai | mixedbread-ai/mxbai-embed-large-v1 | English | 512 tok | 1024 | ~1.4 GB | | minilm | sentence-transformers/all-MiniLM-L6-v2 | English | 256 tok | 384 | ~90 MB |

⭐ Default preset.

When to use each preset:

  • nomic — Default for most use cases. Good English quality, handles long documents (8 192-token context), moderate RAM (~600 MB). Supports Matryoshka dimension truncation.
  • bge — Non-English or mixed-language corpora. Tops multilingual benchmarks; requires ~2.3 GB RAM.
  • mxbai — Highest English retrieval quality on MTEB (64.68). Hard limit of 512 tokens — longer content is truncated silently.
  • minilm — Minimal RAM (~90 MB). 256-token limit makes it suitable only for short notes or sentences.

For search, the embedder is always read from the database's stored metadata — no flag needed.

To see all available embedders at any time (built-in presets and any plugin-provided ones), run:

$ ragclaw embedder list

Built-in presets:

  Alias   Model                                   Dims  RAM       Status
  ──────────────────────────────────────────────────────────────────────
  * nomic   nomic-ai/nomic-embed-text-v1.5          768   ~600 MB   ✓ ok
    bge     BAAI/bge-m3                             1024  ~2.3 GB   ✓ ok
    mxbai   mixedbread-ai/mxbai-embed-large-v1      1024  ~1.4 GB   ✓ ok
    minilm  sentence-transformers/all-MiniLM-L6-v2  384   ~90 MB    ✓ ok

No plugin-provided embedders found.

* = currently configured    Use -e/--embedder <alias> to select.

When plugins that provide a custom embedder (e.g. an Ollama or OpenAI adapter) are enabled, they appear in a second section below the built-in presets.

System Requirements

Run ragclaw doctor to check whether your machine has enough RAM for each preset:

$ ragclaw doctor

System Check:
  RAM:   16.0 GB total, 9.3 GB available
  Node:  v22.14.0

Vector Extension (sqlite-vec):
  ✓ Available  (loaded via npm package)

Embedder Compatibility:
  minilm  (~90 MB)   sentence-transformers/all-MiniLM-L6-v2    384 dim  OK
  nomic   (~600 MB)  nomic-ai/nomic-embed-text-v1.5            768 dim  OK
  mxbai   (~1.4 GB)  mixedbread-ai/mxbai-embed-large-v1       1024 dim  OK
  bge     (~2.3 GB)  BAAI/bge-m3                               1024 dim  WARN may be slow

Current Config:
  embedder: nomic (default)

sqlite-vec is declared as an optional dependency of this package and is bundled automatically when you install @emdzej/ragclaw-cli globally. If it shows as unavailable, run:

npm install sqlite-vec

Documentation

See the main RagClaw repository for full documentation.

License

MIT