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

@cycgraph/orchestrator

v1.7.1

Published

Self-improving agent workflows: every run distills lessons into memory, and future runs retrieve them automatically. Cyclic graph engine with durable execution, per-node budgets, taint tracking, and human-in-the-loop gates.

Readme

@cycgraph/orchestrator

npm License: Apache 2.0 Docs

Build and compose your own agent workflows with a unified engine for running custom workflows with helpful built-in patterns like supervisor, swarm, map-reduce, and reflection.

  • Quick Start - build your first workflow in 5 minutes
  • Core Concepts - graphs, nodes, agents, state
  • Patterns - runnable guides for each built-in pattern
  • Examples - runnable examples for each built-in pattern and infrastructure setup

Install

npm install @cycgraph/orchestrator

Quick start

import { agent, node, graph, run } from '@cycgraph/orchestrator';

const research = node({
  id: 'research',
  agent: agent({
    model: 'claude-sonnet-4-6',
    instructions: 'You are a research specialist. Produce concise, factual notes.',
  }),
  writes: 'notes',
});

const write = node({
  id: 'write',
  agent: agent({
    model: 'claude-sonnet-4-6',
    instructions: 'Turn the research notes into a clear summary under 300 words.',
  }),
  reads: [research.writes],
  writes: 'draft',
});

const workflow = graph({
  name: 'research-write',
  nodes: [research, write],
  edges: [{ from: research, to: write }],
});

const { draft } = await run(workflow, { goal: 'Explain how LLMs work' });

See the Quickstart guide for the full walkthrough.

Optional packages

  • @cycgraph/memory - Temporal knowledge graph + xMemory-inspired hierarchical retrieval (messages → episodes → facts → themes).
  • @cycgraph/context-engine - Optional prompt compression pipeline — strips redundant facts, verbose serialisation, and stale reasoning traces from memory payloads.
  • @cycgraph/orchestrator-postgres - Postgres + pgvector adapter for durable state, event log, agent registry, and memory store.
  • @cycgraph/tools - MCP and tools library.
  • @cycgraph/evals - Regression-test harness for agent workflows with deterministic + LLM-as-judge assertions.

Studio

The studio is a dashboard over everything the engine records. Browse runs and their live log streams, inspect a workflow's topology, fork a recorded run to let the improve loop measure a workflow against its own evals, then walk the winning change from proposal to a committed branch.

A tour of the studio: workflow topology, the run browser, the log explorer, and a measured proposal

See @cycgraph/studio for setup.

Built-in Patterns

Each pattern is a node type. Declarative, composable, and traced through OpenTelemetry.

  • Supervisor An LLM decides which specialist worker should run next, iteratively
  • Swarm Peer agents hand off work to each other based on competence
  • Map-Reduce Fan out an array of items to parallel workers, then merge
  • Evolution (DGM) Generate N candidates per generation, score fitness, breed the winners
  • Self-Annealing Iteratively refine a single output, dropping temperature each pass
  • Reflection Distill run output into atomic facts that future runs retrieve
  • Human-in-the-Loop Pause for a human reviewer; resume hours later from the exact checkpoint
  • Verifier LLM-judge / filtrex expression / JSONPath assertion
  • Voting consensus across N voter agents
  • Subgraph Compose whole graphs as reusable blocks with isolated state
  • A2A Delegate a step to a remote Agent2Agent agent through the trusted registry

Examples

Contributing

Issues and PRs welcome. See CONTRIBUTING.md for development setup, coding standards, and the architecture decisions worth knowing before opening a PR. Security disclosures go through SECURITY.md.

License

Apache 2.0.