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.
Next.js
Deploy a Next.js app with m4trix API routes as usual. TheNextEndpoint handler works with:
- Vercel — Serverless functions; streaming is supported
- Node.js server —
next startor custom server - Docker — Build and run the Next.js app in a container
Express
UseExpressEndpoint for traditional Express apps:
- Apply
body-parser(orexpress.json()) for POST payloads - The handler sets SSE headers and handles client disconnect
Edge / Serverless
m4trix uses Effect and Node.js-style streams. Edge runtimes (Vercel Edge, Cloudflare Workers) may have limitations:- Vercel Edge — Check compatibility with Effect and
ReadableStream; some APIs may need adaptation - Cloudflare Workers — Would require adapter work for the event plane and streams