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

@debriefer/server

v2.1.0

Published

HTTP server for multi-source research with reliability scoring and AI synthesis

Downloads

75

Readme

@debriefer/server

Express REST API exposing the debriefer research engine over HTTP.

Run

# From the repo root
npm run build
node packages/server/dist/index.js

The server listens on port 8090 by default.

Environment Variables

| Variable | Default | Description | | -------------------- | -------------------------- | ----------------------------------------------------------------------------------------------------------- | | PORT | 8090 | Port the server listens on | | ANTHROPIC_API_KEY | — | Required for AI synthesis (synthesis: true requests) | | DEBRIEFER_API_KEYS | — | Comma-separated Bearer tokens. If set, all requests must supply a valid token. Auth is disabled when unset. | | DEFAULT_BUDGET | 1.0 | Default per-request cost limit in USD | | DEFAULT_MODEL | claude-sonnet-4-20250514 | Default Claude model used for synthesis | | CORS_ORIGIN | * | Allowed CORS origin |

Endpoints

GET /api/health

Returns server status, version, and uptime.

{ "status": "ok", "version": "0.1.0", "uptime": 42 }

GET /api/sources

Returns metadata for all available research sources. Supports optional category filtering.

Query parameters

| Parameter | Description | | ---------- | --------------------------------------------------------------- | | category | Filter by category (repeatable). Omit to return all categories. |

POST /api/debrief

Runs research on a single subject and returns findings, optionally synthesized by Claude.

Request body

| Field | Type | Required | Default | Description | | ------------ | ---------- | -------- | ---------------- | -------------------------------------------------- | | name | string | Yes | — | Subject name to research | | categories | string[] | No | all categories | Limit sources to these categories | | budget | number | No | DEFAULT_BUDGET | Per-request cost ceiling in USD (must be positive) | | synthesis | boolean | No | true | Whether to synthesize findings with Claude | | model | string | No | DEFAULT_MODEL | Claude model to use for synthesis | | prompt | string | No | built-in default | System prompt override for synthesis |

Example curl Commands

Health check

curl http://localhost:8090/api/health

List sources

curl http://localhost:8090/api/sources

List sources filtered by category

curl "http://localhost:8090/api/sources?category=news"

Debrief with synthesis (requires ANTHROPIC_API_KEY)

curl -X POST http://localhost:8090/api/debrief \
  -H "Content-Type: application/json" \
  -d '{"name": "Andrei Tarkovsky"}'

Debrief without synthesis

curl -X POST http://localhost:8090/api/debrief \
  -H "Content-Type: application/json" \
  -d '{"name": "Andrei Tarkovsky", "synthesis": false}'

Debrief with authentication

curl -X POST http://localhost:8090/api/debrief \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your-token-here" \
  -d '{"name": "Andrei Tarkovsky", "budget": 0.5}'

Docker

See docker/ directory for Docker and docker-compose setup.

Documentation

See the monorepo README for full documentation.

License

MIT