Live data from Hacker News

Show HN: Mastra 1.0, open-source JavaScript agent framework from the Gatsby devs

github.com

1–10 of 72 posts

Show HN: Mastra 1.0, open-source JavaScript agent framework from the Gatsby devs

#1
Hi HN, we're Sam, Shane, and Abhi.

Almost a year ago, we first shared Mastra here (https://news.ycombinator.com/item?id=43103073). It’s kind of fun looking back since we were only a few months into building at the time. The HN community gave a lot of enthusiasm and some helpful feedback.

Today, we released Mastra 1.0 in stable, so we wanted to come back and talk about what’s changed.

If you’re new to Mastra, it's an open-source TypeScript agent framework that also lets you create multi-agent workflows, run evals, inspect in a local studio, and emit observability.

Since our last post, Mastra has grown to over 300k weekly npm downloads and 19.4k GitHub stars. It’s now Apache 2.0 licensed and runs in prod at companies like Replit, PayPal, and Sanity.

Agent development is changing quickly, so we’ve added a lot since February:

- Native model routing: You can access 600+ models from 40+ providers by specifying a model string (e.g., `openai/gpt-5.2-codex`) with TS autocomplete and fallbacks.

- Guardrails: Low-latency input and output processors for prompt injection detection, PII redaction, and content moderation. The tricky thing here was the low-latency part.

- Scorers: An async eval primitive for grading agent outputs. Users were asking how they should do evals. We wanted to make it easy to attach to Mastra agents, runnable in Mastra studio, and save results in Mastra storage.

- Plus a few other features like AI tracing (per-call costing for Langfuse, Braintrust, etc), memory processors, a `.network()` method that turns any agent into a routing agent, and server adapters to integrate Mastra within an existing Express/Hono server.

(That last one took a bit of time, we went down the ESM/CJS bundling rabbithole, ran into lots of monorepo issues, and ultimately opted for a more explicit approach.)

Anyway, we'd love for you to try Mastra out and let us know what you think. You can get started with `npm create mastra@latest`.

We'll be around and happy to answer any questions!

Show HN: Mastra 1.0, open-source JavaScript agent framework from the Gatsby devs
github.com

Re: Show HN: Mastra 1.0, open-source JavaScript agent framework from the Gatsby devs

#2
Offtopic but how much is AI used these days for generating code at your place? Curious because we see a major shift last months where almost everything is generated. Still human checked and human quality gates. Big difference compared to last year.

Re: Show HN: Mastra 1.0, open-source JavaScript agent framework from the Gatsby devs

#6

Why should I use this over say Strands Agents [1] or Spring AI [2]? [1]: https://strandsagents.com [2]: https://spring.io/projects/spring-ai

seems non of these are typescript-based? Strand appears to have a typescript sdk available but not natively ts.

Re: Show HN: Mastra 1.0, open-source JavaScript agent framework from the Gatsby devs

#7
post #2

Offtopic but how much is AI used these days for generating code at your place? Curious because we see a major shift last months where almost everything is generated. Still human checked and human quality gates. Big difference compared to last year.

There's the normal stuff you'd expect -- we're all Opus-pilled, use Claude Code, a PR review bot etc. But it's been especially helpful with highly templatized code like our storage adapters, we already have 10-15 working examples which makes the n+1st adapter almost trivial to write.

Re: Show HN: Mastra 1.0, open-source JavaScript agent framework from the Gatsby devs

#9

Why should I use this over say Strands Agents [1] or Spring AI [2]? [1]: https://strandsagents.com [2]: https://spring.io/projects/spring-ai

seems non of these are typescript-based? Strand appears to have a typescript sdk available but not natively ts.

Language, although an important factor, should not be the only factor to decide using a tool. I'm curious is there something unique Mastra is bringing to the table, compared to other alternatives.

Re: Show HN: Mastra 1.0, open-source JavaScript agent framework from the Gatsby devs

#10

Why should I use this over say Strands Agents [1] or Spring AI [2]? [1]: https://strandsagents.com [2]: https://spring.io/projects/spring-ai

You should use whatever framework you feel like has the best DX / fits your stack best!

We're TypeScript-first, TypeScript-only so a lot of the teams who use us are full-stack TypeScript devs and want an agent framework that feels TS-native, easy to use, and feature-complete.

Post reply on HN