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.
Running the Hello World Example
- Create a Next.js project (or use an existing one):
- Install m4trix:
-
Create
app/api/chat/route.tswith the Hello World code. - Start the dev server:
- Call the API:
Expected Output
You’ll receive an SSE stream:EventSource or fetch with ReadableStream to consume the stream.
Next
- What’s Happening (Mental Model) — Understand the flow