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.

Install @m4trix/core using your preferred package manager:
# Using pnpm (recommended)
pnpm add @m4trix/core

# Using npm
npm install @m4trix/core

# Using yarn
yarn add @m4trix/core

Entry Points

@m4trix/core is organized into multiple entry points. Import only what you need:
// Matrix — Event-driven agent orchestration (primary)
import {
  AgentFactory,
  AgentNetwork,
  AgentNetworkEvent,
  NextEndpoint,
  ExpressEndpoint,
  S,
} from '@m4trix/core/matrix';

// Stream utilities
import { Pump } from '@m4trix/stream';

// React hooks
import { useConversation } from '@m4trix/react';
The Matrix module is the primary entry point. It provides the full agent orchestration system including typed events, agent factories, network wiring, and HTTP adapters.

Peer Dependencies

Matrix uses Effect for schema validation and concurrency. It’s included as a dependency — no additional setup needed.

Next