Scaffold a Mastra TypeScript agent locally, run Studio, and contrast typed agents with your after-work Python stack.
Mastra is a TypeScript agent framework: workflows, tools, memory, and a local Studio. Home: mastra.ai. Docs: mastra.ai/docs. Scaffold: npm create mastra@latest.
This is the TS contrast to Python stacks (smolagents, PydanticAI). After work, use it if your day job is Node/React—not as a replacement for learning Python.
Frontend or Node engineers who want an agent in TypeScript they can git. If you only have Python tonight, skip this and stay on a Python framework.
Overview: Top 10 AI agent tools for after-work Python.
Need Node.js 20+. In an empty folder: npm create mastra@latest. Accept defaults. Open the generated src/ agents file.
.envCopy .env.example. One provider key. Never commit .env.
Start with a weather or docs-lookup tool that hits a public JSON URL you control. Delete extra sample agents if they confuse you.
Follow the printed command (often npm run dev). Studio is commonly http://localhost:4111. Chat once. Confirm the tool ran.
Do not push to a public cloud or add Slack write tools tonight.
Write a tool that returns { name, officialDocs } for a library name. Ask the agent for Mastra vs one Python agent library. Require URLs. Compare the TypeScript types to a Python dict.
You feel typed agents in one evening and know when TS is worth it versus Python.
Keep Python as the after-work default with Intro to Python Programming.