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

@reactive-agents/orchestration

v0.10.6

Published

Multi-agent orchestration for Reactive Agents — workflow engine and agent coordination

Downloads

974

Readme

@reactive-agents/orchestration

Multi-agent orchestration for the Reactive Agents framework. v0.10.3

Coordinate fleets of agents through workflow patterns: sequential pipelines, parallel fan-out / fan-in, map-reduce, and durable event-sourced executions. The WorkflowEngine runs workflows as Effects with typed message passing, checkpoint persistence, and per-step failure isolation.

Installation

bun add @reactive-agents/orchestration

Or via the umbrella:

bun add reactive-agents

Features

  • Workflow patternsWorkflowPattern enum exposes sequential, parallel, pipeline, map-reduce, agent-as-tool
  • Worker pool — pool of registered WorkerAgents, dispatched per-step
  • Durable executionEventSourcing records every state transition; resume from checkpoints
  • Typed handoffs — Effect Schemas validate inter-agent messages
  • Failure isolation — one agent failing emits WorkflowStepError; the workflow can continue, retry, or abort per the policy
  • A2A integration — pairs with @reactive-agents/a2a for cross-process agent communication

Quick Example

import { Effect } from "effect";
import {
  OrchestrationService,
  OrchestrationServiceLive,
  WorkflowPattern,
} from "@reactive-agents/orchestration";

const program = Effect.gen(function* () {
  const orch = yield* OrchestrationService;

  const workflow = yield* orch.createWorkflow({
    name: "research-pipeline",
    pattern: WorkflowPattern.Sequential,
    steps: [
      { id: "search",     agentId: "searcher",   input: (ctx) => ctx.query },
      { id: "summarize",  agentId: "summarizer", input: (ctx) => ctx.search },
      { id: "critique",   agentId: "critic",     input: (ctx) => ctx.summarize },
    ],
  });

  return yield* orch.runWorkflow(workflow.id, {
    query: "Latest advances in fusion energy",
  });
});

await Effect.runPromise(program.pipe(Effect.provide(OrchestrationServiceLive)));

Patterns

| Pattern | Behaviour | | -------------- | -------------------------------------------------------------------- | | sequential | Step N+1 receives the output of step N | | parallel | All steps run concurrently against the same input | | pipeline | Streaming hand-off — outputs flow as soon as available | | map-reduce | Fan-out per input element, then reduce results | | agent-as-tool | One agent invokes another as a tool inside its own kernel loop |

Durable Execution

import { makeEventSourcing } from "@reactive-agents/orchestration";

const sourcing = yield* makeEventSourcing({ store: mySqliteStore });
// every workflow state transition is appended; resume by replaying events
const resumed = yield* sourcing.replay(workflowId);

Key Exports

| Export | Purpose | | ------------------------------------------------- | -------------------------------------------------- | | OrchestrationService, OrchestrationServiceLive | Composite orchestration entry point | | makeWorkflowEngine | Pluggable workflow engine | | makeEventSourcing | Durable event log for workflow state | | makeWorkerPool | Worker-agent registry + dispatcher | | createOrchestrationLayer | Factory for the runtime layer | | WorkflowPattern, WorkflowState, Workflow, WorkflowStep, Checkpoint, WorkerAgent | Schemas + types | | WorkflowError, WorkflowStepError, CheckpointError, WorkerPoolError | Tagged errors |

Documentation

License

MIT