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

@kidkender/archmind-orchestrator

v0.1.0

Published

Orchestrates the query -> retrieve -> explain -> LLM pipeline for conversational graph queries.

Readme

@archmind/orchestrator

The end-to-end reasoning loop — takes a plain language question and returns a validated, structured explanation of an HTTP endpoint.


What it does

@archmind/orchestrator is the top-level coordinator. It wires together every other package in the pipeline and exposes a clean interface: give it a question, get back a validated answer.

question + entrypoint
      ↓
  retrieve minimal subgraph   (@archmind/retrieval)
      ↓
  detect semantic findings    (@archmind/explainer)
      ↓
  compile structured prompt   (@archmind/prompt-builder)
      ↓
  call the LLM                (@archmind/llm-client)
      ↓
  validate the response
      ↓
  return structured result

It also manages conversation history across turns, so follow-up questions maintain context without re-parsing anything.


Key benefits

Single entry point You don't need to know about retrieval focus, prompt modes, or response schemas to use ArchMind. The Orchestrator handles all of that.

Conversation-aware Multi-turn sessions work naturally. Ask a follow-up and the orchestrator carries forward the prior context, detects contradictions between turns, and builds on previous reasoning.

Fail-safe response handling If the LLM returns a malformed response, explanation_failed is set to true and the result is still returned safely — the system doesn't crash, and you know exactly what went wrong.

Benchmarking included runAnswerBenchmark() and runConversationBenchmark() let you measure LLM quality against ground-truth golden traces. Useful for comparing models, prompts, and modes objectively.


Usage

import { Orchestrator } from "@archmind/orchestrator"
import { ClaudeLLMClient } from "@archmind/llm-client"

const orchestrator = new Orchestrator({
  graphs:    parsedGraphs,
  llmClient: new ClaudeLLMClient(),
})

// Ask a question
const result = await orchestrator.query(
  "does PUT /tasks/{task} check that the user owns the task before updating it?",
  { mode: "review" }
)

console.log(result.response.explanation)
console.log(result.response.recommendations)
console.log(result.findings_count)    // how many findings were detected
console.log(result.token_estimate)    // tokens the retrieval used

// Follow-up in the same conversation
const followUp = await orchestrator.query(
  "what would happen if the policy method returned true unconditionally?",
  { mode: "teach", conversationContext: result.conversation }
)

Query modes

| Mode | Reasoning style | |---|---| | review | Security-focused reviewer. Returns findings, evidence, and fixes. | | teach | Patient explainer. Walks through the execution path step-by-step. | | debug | Terse root-cause analyst. Skips background, jumps straight to the problem. |


Benchmarking

import { runAnswerBenchmark } from "@archmind/orchestrator"

const snapshot = await runAnswerBenchmark({
  goldenDir:  "research/golden-answers/laravel",
  graphs:     parsedGraphs,
  llmClient:  new ClaudeLLMClient({ model: "claude-sonnet-4-6" }),
  label:      "sonnet-4-6-baseline",
})

snapshot.summary.avg_score      // 0.0 – 1.0
snapshot.summary.total_traces

Conversation benchmarks work the same way — they replay multi-turn golden conversations and score each turn for coherence, correctness, and follow-up reasoning quality.


Running tests

cd packages/orchestrator
node --experimental-vm-modules ../../node_modules/jest/bin/jest.js