Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.m4trix.dev/llms.txt

Use this file to discover all available pages before exploring further.

After completing the 10-minute quick start, explore these paths:

Understand the Concepts

Events

Learn how typed messages move through the system.

Channels

Understand routing, sinks, and event delivery.

Agents

Build units of logic with lifecycle and type inference.

Networks

Wire agents and channels into a running event plane.

Build Real Things

Patterns

Request/response, fan-out, join, and retry patterns.

Streaming

SSE, backpressure, and chunking guidance.

Next.js

Expose networks through Next.js App Router routes.

Express

Expose networks through an Express route.

API Reference

AgentFactory

Builder API for type-safe agents.

AgentNetwork

Orchestration, setup, and runtime wiring.

IO + Adapters

NextEndpoint, ExpressEndpoint, and streaming adapters.

Examples

Minimal Starter

Start from the smallest working setup.

Multi-Agent Workflow

Chain agents into a larger workflow.

Evals

Build repeatable evaluation suites with @m4trix/evals.