Skip to content

Mastra

A TypeScript framework for agents, workflows, and RAG, from the team behind Gatsby.

Mastra is an opinionated TypeScript framework that covers agents, deterministic workflows, RAG, and evaluations in one place. It is built for the JavaScript ecosystem, so it slots into existing Node and web codebases naturally.

It bundles the surrounding concerns (memory, tracing, deployment) rather than leaving them to be assembled, which makes it more of a batteries-included platform than a bare library.

Where it fits

The natural choice for TypeScript and Node teams who want agents in the same language and codebase as the rest of their app.

Where it does not fit

Not the path for a Python-first team, or one that wants to assemble each piece independently.

Alternatives to Mastra

The closest options on the map, and where each fits instead.

Pairs with

Commonly used alongside it.