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

@augur-rag/server

v0.2.0

Published

Augur HTTP API server. Drop-in Fastify wrapper around @augur-rag/core with OpenAPI docs and trace explorer compatibility.

Readme

@augur-rag/server

The HTTP API for Augur: adaptive retrieval orchestration for RAG and semantic search. A Fastify wrapper around @augur-rag/core with OpenAPI docs at /docs and a search trace returned with every response.

Install and run

npm install -g @augur-rag/server
# also install the peer dep, since augur-server uses LocalEmbedder by default:
npm install -g @huggingface/transformers
augur-server

@huggingface/transformers is an optional peer of @augur-rag/core. The augur-server CLI uses LocalEmbedder by default (on-device ONNX, no API keys), which needs the peer dep. If you wire your own buildServer({ embedder }) against a hosted provider (OpenAI, Cohere, Voyage, etc.), you can skip it.

Or as a library inside your own service

import { buildServer } from "@augur-rag/server";
import { LocalEmbedder } from "@augur-rag/core";

const app = buildServer({
  embedder: new LocalEmbedder(),
  // adapter, reranker, chunker, router, autoLanguageFilter: all optional
});

await app.listen({ port: 3001 });

What you get

  • POST /search: runs the auto-routing pipeline, returns { results, trace }
  • POST /index: indexes documents in batch
  • GET /traces: recent search traces (for trace explorers / observability backends)
  • GET /health: capability dump
  • GET /docs: interactive Swagger UI
  • GET /openapi.json: OpenAPI 3 spec

Configuration via environment variables

| Var | Default | Purpose | | --- | --- | --- | | PORT | 3001 | HTTP listen port | | HOST | 127.0.0.1 | Bind address. Set to 0.0.0.0 to expose on all interfaces (the server logs a warning if you do this without AUGUR_API_KEY). | | AUGUR_ADAPTER | in-memory | in-memory | pinecone | turbopuffer | pgvector | | AUGUR_API_KEY | (unset) | When set, all endpoints except /health, /openapi.json, /docs require x-api-key: <key>. Destructive endpoints (/admin/*, DELETE /traces) return 503 until this is set — they never run unauthenticated. | | AUGUR_CORS | false | Cross-origin allowlist. Use a single origin (https://app.example), a comma-separated list, or * to reflect any origin (only safe behind AUGUR_API_KEY on a trusted network). | | AUGUR_LOCAL_MODEL | Xenova/all-MiniLM-L6-v2 | Override the default LocalEmbedder model | | AUGUR_AUTO_LANGUAGE_FILTER | 0 | Set 1 to filter results to the query's detected language (with soft fallback) | | PINECONE_INDEX_HOST / PINECONE_API_KEY / PINECONE_NAMESPACE | unset | When AUGUR_ADAPTER=pinecone | | TURBOPUFFER_API_KEY / TURBOPUFFER_NAMESPACE | unset | When AUGUR_ADAPTER=turbopuffer | | DATABASE_URL / PGVECTOR_TABLE / PGVECTOR_DIMENSION | unset | When AUGUR_ADAPTER=pgvector (also npm i pg in your project) |

Security defaults

The server ships with conservative defaults so a fresh npx augur-server or docker compose up isn't a foot-gun:

  • Binds to 127.0.0.1 unless HOST is set explicitly. No LAN exposure without intent.
  • CORS is false (no cross-origin). Opt in via AUGUR_CORS.
  • /admin/clear, /admin/stats, and DELETE /traces return 503 admin endpoints disabled until AUGUR_API_KEY is set. They never run unauthenticated, even on loopback.
  • When AUGUR_API_KEY is set, every endpoint except /health, /openapi.json, and /docs requires the header.

Learn more

  • Project README: pitch, BEIR comparison table, and quick start
  • Architecture: how the orchestrator, router, adapters, chunkers, and rerankers fit together
  • Examples: pgvector setup, hosted embedders, contextual retrieval, MMR diversity

License

MIT. See LICENSE.