Mastra
An open-source framework for building AI workflows and agents, supporting the orchestration of multi-model invocations and tool integrations.
Timeline (last 90 days)
Vercel Board uses a harness-agnostic design, so Claude Code, Codex, Pi, OpenCode, eve, fx, Mastra, and LangChain can collaborate as if they were in the same harness.
Mastra is an orchestration framework built specifically for TypeScript, with excellent MCP support, and is the non-Python option the author strongly recommends.
Front-end AI ecosystem frameworks include LangChain.js/LangGraph.js (agent orchestration), RAGFlow.ts (RAG engineering), Mastra (Agent development), and LlamaIndex.ts (data indexing and retrieval layer).
Mastra supports pointing to a custom OpenAI-compatible endpoint by setting the model field to an object containing id, url, and apiKey, with no additional provider package needed.
Under the hood, Mastra uses the Vercel AI SDK's @ai-sdk/openai-compatible provider to communicate with custom endpoints, sending requests to /v1/chat/completions with the user agent ai-sdk/openai-compatible.
When Mastra configures model using the object form, it does not issue a GET /v1/models probe and does not add extra parameters.
In Mastra's model id, everything before the first slash is stripped, and only what follows is sent to the endpoint as the model field.
Mastra does not automatically complete the /v1 path for the url; the user must include /v1 in the url themselves, otherwise the request is sent to /chat/completions rather than /v1/chat/completions.
When apiKey is omitted in a Mastra custom model configuration, there is no fallback to reading environment variables, and requests go out without an Authorization header, resulting in a 401.
Setting api: "responses" in the Mastra model configuration causes the agent to instead POST to /v1/responses and use an input array in place of messages.
24 more timeline events
All Facts (20)
Agent framework selection is fundamentally an engineering constraints problem: choose MAF for the Microsoft stack, Google ADK for GCP, Mastra for TS teams, LlamaIndex for data processing, CrewAI for role mapping, OpenAI Agents SDK for minimalist low-level needs, and LangChain for cross-model compatibility.
60%UnverifiedVercel Board uses a harness-agnostic design, so Claude Code, Codex, Pi, OpenCode, eve, fx, Mastra, and LangChain can collaborate as if they were in the same harness.
50%UnverifiedMastra is an orchestration framework built specifically for TypeScript, with excellent MCP support, and is the non-Python option the author strongly recommends.
50%UnverifiedFront-end AI ecosystem frameworks include LangChain.js/LangGraph.js (agent orchestration), RAGFlow.ts (RAG engineering), Mastra (Agent development), and LlamaIndex.ts (data indexing and retrieval layer).
50%UnverifiedMastra supports pointing to a custom OpenAI-compatible endpoint by setting the model field to an object containing id, url, and apiKey, with no additional provider package needed.
50%UnverifiedUnder the hood, Mastra uses the Vercel AI SDK's @ai-sdk/openai-compatible provider to communicate with custom endpoints, sending requests to /v1/chat/completions with the user agent ai-sdk/openai-compatible.
50%UnverifiedWhen Mastra configures model using the object form, it does not issue a GET /v1/models probe and does not add extra parameters.
50%UnverifiedIn Mastra's model id, everything before the first slash is stripped, and only what follows is sent to the endpoint as the model field.
50%UnverifiedMastra does not automatically complete the /v1 path for the url; the user must include /v1 in the url themselves, otherwise the request is sent to /chat/completions rather than /v1/chat/completions.
50%UnverifiedWhen apiKey is omitted in a Mastra custom model configuration, there is no fallback to reading environment variables, and requests go out without an Authorization header, resulting in a 401.
50%UnverifiedSetting api: "responses" in the Mastra model configuration causes the agent to instead POST to /v1/responses and use an input array in place of messages.
50%UnverifiedA Mastra agent's tool-calling loop silently stops after reaching the default step limit (5 steps), returning empty text with finishReason "tool-calls", without throwing an error or logging anything.
50%UnverifiedMastra's agent.generate supports controlling the maximum number of tool-calling loop rounds via the maxSteps parameter.
50%UnverifiedMastra has two layers of retry mechanisms: the AI SDK's modelSettings.maxRetries (default 0 in Mastra) and Mastra's default error handler (two additional retries, roughly three seconds apart); when both are enabled, failed requests multiply.
50%UnverifiedIn Mastra, with modelSettings.maxRetries set to 5 and the default error handler retained, a single upstream 503 failure results in 18 requests and about 99 seconds of waiting.
50%UnverifiedMastra's AI SDK retry layer honors the Retry-After response header when encountering a 429.
50%UnverifiedSetting the agent's errorProcessorDefaults to false or passing errorProcessors: [] in the generate call disables the outer error handler retries in Mastra.
50%UnverifiedA Mastra agent fails immediately on a 401 error without retrying.
50%UnverifiedLangGraph's graph state maps naturally to state update events in the event stream; Mastra's workflow steps align more closely with the granularity of tool call events.
50%UnverifiedThe choice between Mastra and LangGraph should be based on the topological complexity of the agent flow rather than ecosystem preference: linear tasks are lighter with an integrated framework, while multi-branch flows that require rollback are better suited to a graph structure.
50%