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/core

v2.1.0

Published

Multi-source research orchestration engine with reliability scoring, phase-based execution, and pluggable synthesis

Downloads

122

Readme

@debriefer/core

Multi-source research orchestration engine with reliability scoring, phase-based execution, and AI synthesis.

Install

npm install @debriefer/core @debriefer/sources

To use ClaudeSynthesizer, also install the optional peer dependency:

npm install @anthropic-ai/sdk

Quick Start

import { ResearchOrchestrator, NoopSynthesizer } from "@debriefer/core"
import { wikipedia, wikidata, openLibrary } from "@debriefer/sources"

const orchestrator = new ResearchOrchestrator(
  [{ phase: 1, name: "Free Sources", sources: [wikidata(), wikipedia(), openLibrary()] }],
  new NoopSynthesizer()
)

const result = await orchestrator.debrief({ id: "nm0000030", name: "Audrey Hepburn" })

console.log(`${result.findings.length} findings from ${result.sourcesSucceeded} sources`)
for (const finding of result.findings) {
  console.log(`[${finding.sourceName}] (reliability: ${finding.reliabilityScore}) ${finding.url}`)
}
// 3 findings from 3 sources
// [Wikidata] (reliability: 1) https://www.wikidata.org/wiki/Q41282
// [Wikipedia] (reliability: 0.85) https://en.wikipedia.org/wiki/Audrey_Hepburn
// [Open Library] (reliability: 0.85) https://openlibrary.org/search?q=Audrey+Hepburn

Key Exports

Engine

  • ResearchOrchestrator — phased execution, early stopping, batch processing, lifecycle hooks
  • BaseResearchSource — abstract base class for all source implementations

Synthesis

  • ClaudeSynthesizer — AI synthesis via Anthropic SDK; produces typed, cited output
  • NoopSynthesizer — returns raw findings without synthesis

Reliability Scoring

  • ReliabilityTier — 12-tier enum based on Wikipedia's Reliable Sources Perennial list (0.35–1.0)
  • RELIABILITY_SCORES, getReliabilityScore, meetsReliabilityThreshold

Infrastructure

  • InMemoryCache — TTL cache with optional FIFO eviction (maxSize)
  • SourceRateLimiter — per-domain async queue
  • BatchCostTracker — per-subject and total cost limits
  • ParallelBatchRunner — concurrency-limited batch processor
  • ConsoleTelemetry, NoopTelemetry — pluggable observability
  • calculateConfidence — keyword-based confidence scoring

Types

  • ResearchSubject, RawFinding, ScoredFinding, DebriefResult, ResearchConfig
  • Synthesizer, CacheProvider, TelemetryProvider, LifecycleHooks
  • CostLimitExceededError, SourceTimeoutError, SourceAccessBlockedError

Dependencies

One hard dependency: p-limit.

@anthropic-ai/sdk is an optional peer dependency — only required when using ClaudeSynthesizer. Consumers using a custom synthesizer do not need it.

All other infrastructure (cache backends, telemetry, rate limiting) is injected via interfaces.

Documentation

See the monorepo README for full documentation, integration examples, reliability tier reference, and source catalog.

License

MIT