Orchestrate agents typesafe

Event-driven agent orchestration. Type-safe events, channels, sinks. @m4trix/core/matrix. Build, wire, stream.

# install
bash
$pnpm add @m4trix/core
Packages: +1Done in 0.4s
@m4trix/core/matrix// agents & networks@m4trix/core/stream// pipes@m4trix/core/react// hooks

Everything you need

Event-driven agents, typed events, channels, and streaming out of the box.

Event-Driven Agents

Type-safe agents with schema-validated events. No graphs, no global state.

AgentFactory.run().listensTo([evt]).logic(...).produce({})

Agent Network

Wire agents to channels. One agent or a full swarm.

AgentNetwork.setup(({ registerAgent }) => ...)

Typed Events

Effect Schema validation. Runtime safety, full inference.

AgentNetworkEvent.of('request', S.Struct({...}))

SSE Streaming

Expose networks as HTTP APIs. Built-in Next.js & Express adapters.

NextEndpoint.from(network.expose({...})).handler()

Channels & Sinks

Named channels with HTTP stream and Kafka sinks.

createChannel('client').sink(sink.httpStream())

Batteries Included

Matrix agents, Pump streaming, React hooks. One package.

@m4trix/core/matrix | /stream | /react