HeadlinesBriefing favicon HeadlinesBriefing.com

Mastra 1.0: Open-Source TypeScript Agent Framework

Hacker News: Front Page •
×

The team behind Gatsby has released Mastra 1.0, a stable, open-source TypeScript framework for building AI agents and multi-agent workflows. The project has grown to over 300k weekly npm downloads and 19.4k GitHub stars, now licensed under Apache 2.0. Companies like Replit, PayPal, and Sanity already use it in production.

This release adds significant features for production-ready agent development. Developers can now route requests across 40+ providers and 600+ models using simple strings like `openai/gpt-5.2-codex`. New guardrails handle prompt injection detection and PII redaction with low latency. An integrated scoring system simplifies evaluating agent outputs, while new tracing and memory processors aid observability.

The framework includes a `.network()` method to turn agents into routers and server adapters for Express and Hono. This follows a year of development since its initial Hacker News debut, where community feedback shaped its direction. The team worked through ESM/CJS bundling challenges to deliver these integrations.

Mastra aims to provide a complete stack for moving AI prototypes to production, integrating with React, Next.js, and Node.js. As agent development evolves rapidly, tools like Mastra attempt to standardize patterns for reliability and scalability. Developers can start with `npm create mastra@latest` to explore its capabilities.