Nick Nisi

AI Pipelines in Pure TypeScript with Mastra.ai

Resources from the hands-on workshop Zack Proser and I ran on building agentic AI systems in pure TypeScript with Mastra.ai. Let’s connect on LinkedIn and BlueSky.

Presented at AI Engineer World’s Fair 2025

Abstract

This hands-on workshop introduces Mastra.ai, a TypeScript framework that streamlines the development of agentic AI systems compared to traditional approaches using LangChain and vector databases. Participants will learn to build structured AI workflows with composable tools and reliable control, enabling them to create internal AI assistants that can handle requests like data cleaning, email drafting, and document summarization with minimal code. The session covers Mastra installation, running a local MCP server, defining tools and agents in TypeScript, using the Mastra playground, and implementing practical examples such as RAG setups and tool-chaining agents — all designed to equip attendees with the skills to develop scalable AI-driven internal tools based on sound software engineering principles rather than just experimental prompts.