frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

https://github.com/mastra-ai/mastra
42•calcsam•5h ago
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!

Comments

holoduke•1h ago
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.
calcsam•1h ago
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.
microflash•1h ago
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

pancomplex•1h ago
seems non of these are typescript-based? Strand appears to have a typescript sdk available but not natively ts.
microflash•1h ago
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.
calcsam•1h ago
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.

pancomplex•1h ago
We use typescript for all our entire stack and it's super dope to see a production-grade framework (with no vendor lock in) launch!
calcsam•1h ago
Thanks! That's a lot of why we built Mastra. We wanted something that felt like it was made for us.
bradledford•1h ago
Been using Mastra for some side projects for months and it's just phenomenal. Congrats to the team!
calcsam•1h ago
Thanks, great to hear!
simlevesque•1h ago
Congrats on the launch ! Someone told me that you have an excellent product but I don't have a need for it yet.
calcsam•1h ago
Thanks! And of course hope you try Mastra out when you do.
anditherobot•1h ago
From punch cards to assembly, to C, to modern languages and web frameworks, each generation raised the abstraction. Agentic frameworks are the next one.
calcsam•56m ago
I mean we're framework guys so I would agree!
mrcwinn•1h ago
You’re not locked into a model, but you likely are locked in to a platform. This DX and convenience just shifts within the stack where the lock in occurs. Not criticizing - just a choice people should be conscious of.

Another useful question to ask: since you’re likely using 1 of 3 frontier models anyway, do you believe Claude Agent SDK will increasingly become the workflow and runtime of agentic work? Or if not Claude itself, will that set the pattern for how the work is executed? If you do, why use a wrapper?

calcsam•32m ago
Re: lessons from coding agents, we're building some of the key abstractions like sandboxes, filesystem, skills/knowledge as Mastra primitives in over the next month.

For any agent you're shipped to production though you probably want a harness that's open-source so you more fully control / can customize the experience.

mrcwinn•29m ago
I think that’s fair, totally, but I also think a Skill would be considered a primitive in and of itself by Anthropic. So to me it’s still wrapping an open primitive. Anyway, trade offs.
swyx•42m ago
> 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.

shudders in vietnam war flashbacks congrats on launch guys!!!

for those who want an independent third party endorsement, here's Brex CTO talking about Mastra in their AI engineering stack http://latent.space/p/brex

calcsam•29m ago
LOL thanks swyx. Yeah we realized although we _could_ fight that war again...it would be better for everyone if we didn't...
calcsam•28m ago
And I actually hadn't seen that Brex piece so thanks for sharing!!

The 26,000-Year Astronomical Monument Hidden in Plain Sight

https://longnow.org/ideas/the-26000-year-astronomical-monument-hidden-in-plain-sight/
226•mkmk•3h ago•42 comments

The Unix Pipe Card Game

https://punkx.org/unix-pipe-game/
140•kykeonaut•5h ago•36 comments

LG UltraFine Evo 6K 32-inch Monitor Review

https://www.wired.com/review/lg-ultrafine-evo-6k-32-inch-monitor/
34•tosh•3d ago•37 comments

I'm addicted to being useful

https://www.seangoedecke.com/addicted-to-being-useful/
418•swah•11h ago•202 comments

Running Claude Code dangerously (safely)

https://blog.emilburzo.com/2026/01/running-claude-code-dangerously-safely/
244•emilburzo•9h ago•197 comments

Unconventional PostgreSQL Optimizations

https://hakibenita.com/postgresql-unconventional-optimizations
207•haki•7h ago•22 comments

Show HN: wxpath – Declarative web crawling in XPath

https://github.com/rodricios/wxpath
43•rodricios•6d ago•7 comments

Nvidia Stock Crash Prediction

https://entropicthoughts.com/nvidia-stock-crash-prediction
277•todsacerdoti•6h ago•223 comments

Fast Concordance: Instant concordance on a corpus of >1,200 books

https://iafisher.com/concordance/
19•evakhoury•4d ago•1 comments

Linux kernel framework for PCIe device emulation, in userspace

https://github.com/cakehonolulu/pciem
199•71bw•14h ago•72 comments

The Zen of Reticulum

https://github.com/markqvist/Reticulum/blob/master/Zen%20of%20Reticulum.md
85•mikece•8h ago•51 comments

Instabridge has acquired Nova Launcher

https://novalauncher.com/nova-is-here-to-stay
79•KORraN•2h ago•65 comments

Level S4 solar radiation event

https://www.swpc.noaa.gov/news/g4-severe-geomagnetic-storm-levels-reached-19-jan-2026
586•WorldPeas•1d ago•190 comments

When "Likers'' Go Private: Engagement with Reputationally Risky Content on X

https://arxiv.org/abs/2601.11140
27•linolevan•3h ago•15 comments

A scammer's blueprint: How cybercriminals plot to rob a target in a week

https://www.reuters.com/graphics/SOUTHEASTASIA-SCAMS/MANUALS/klpyjlqelvg/
20•giuliomagnifico•1h ago•4 comments

IP Addresses Through 2025

https://www.potaroo.net/ispcol/2026-01/addr2025.html
135•petercooper•8h ago•96 comments

Reticulum, a secure and anonymous mesh networking stack

https://github.com/markqvist/Reticulum
328•brogu•21h ago•86 comments

Show HN: Ocrbase – pdf → .md/.json document OCR and structured extraction API

https://github.com/majcheradam/ocrbase
79•adammajcher•8h ago•29 comments

Without benchmarking LLMs, you're likely overpaying 5-10x

https://karllorey.com/posts/without-benchmarking-llms-youre-overpaying
60•lorey•2h ago•35 comments

Stewart Brand – Maintenance: Of Everything, Part One

https://press.stripe.com/maintenance-part-one
9•mitchbob•2h ago•1 comments

Channel3 (YC S25) Is Hiring

https://www.ycombinator.com/companies/channel3/jobs/3DIAYYY-backend-engineer
1•aschiff1•9h ago

The secret medieval tunnels that we still don't understand

https://weirdmedievalguys.substack.com/p/the-secret-medieval-tunnels-that
39•coloneltcb•2h ago•13 comments

De-dollarization: Is the US dollar losing its dominance? (2025)

https://www.jpmorgan.com/insights/global-research/currencies/de-dollarization
516•andsoitis•5h ago•685 comments

IP over Avian Carriers with Quality of Service (1999)

https://www.rfc-editor.org/rfc/rfc2549.html
62•mig4ng•10h ago•24 comments

The Alignment Game (2023)

https://dmvaldman.github.io/alignment-game/
47•dmvaldman•4d ago•9 comments

What came first: the CNAME or the A record?

https://blog.cloudflare.com/cname-a-record-order-dns-standards/
443•linolevan•1d ago•152 comments

Increasing the performance of WebAssembly Text Format parser by 350%

https://blog.gplane.win/posts/improve-wat-parser-perf.html
99•gplane•5d ago•32 comments

The coming industrialisation of exploit generation with LLMs

https://sean.heelan.io/2026/01/18/on-the-coming-industrialisation-of-exploit-generation-with-llms/
245•long•1d ago•155 comments

Prediction markets are ushering in a world in which news becomes about gambling

https://www.theatlantic.com/technology/2026/01/america-polymarket-disaster/685662/
467•krustyburger•2d ago•453 comments

Notes on Apple's Nano Texture (2025)

https://jon.bo/posts/nano-texture/
248•dsr12•1d ago•128 comments