The agent stack / Layer 3 of 11

TypeScript agent development

How do I build agents inside a web or Node.js product?

What this layer is for

Agent tooling for the JavaScript ecosystem: streaming model output into UIs, typed tool schemas (usually with Zod) and deployment on serverless platforms. The right layer when the agent lives inside a web product rather than a Python data stack.

Side by side

ToolBest atLanguagesLicenseBy
MastraOpen-source TypeScript framework for agents, workflows, memory, RAG and evals, from the team behind Gatsby.TypeScriptApache-2.0 (core), separate enterprise license for ee/ directoriesMastra
Vercel AI SDKVercel's open-source TypeScript toolkit - one API across model providers, tool-calling agents, and UI hooks for chat apps.TypeScript, JavaScriptApache-2.0Vercel
Claude Agent SDKAnthropic's SDK that embeds Claude Code's agent loop, built-in tools, permissions and sessions in Python and TypeScript apps.Python, TypeScriptMIT (Python SDK); proprietary, Anthropic Commercial Terms (TypeScript SDK and bundled Claude Code runtime)Anthropic
OpenAI Agents SDKOpenAI's open-source Python and TypeScript SDK for agents built from a few primitives - agents, handoffs, guardrails, sessions, tracing.Python, TypeScriptMITOpenAI

Tools in this layer