mastra-streaming

star 3

Mastra Streaming patterns - agent streams, workflow streams, tool streaming, SSE events, and AI SDK integration for React/Next.js UIs

artsmc By artsmc schedule Updated 3/9/2026

name: mastra-streaming description: Mastra Streaming patterns - agent streams, workflow streams, tool streaming, SSE events, and AI SDK integration for React/Next.js UIs

Mastra Streaming Patterns

Comprehensive guide for real-time streaming with Mastra. Covers agent streaming (textStream, fullStream), workflow streaming, tool streaming with context.writer, SSE events, and AI SDK integration (chatRoute, toAISdkStream, handleChatStream) for React and Next.js UIs.

Usage

/mastra-streaming

Provides context for:

  • agent.stream() returning MastraModelOutput with textStream, fullStream
  • Workflow run.stream() with event types
  • Tool streaming via context.writer.custom()
  • AI SDK: toAISdkStream(), chatRoute(), handleChatStream()
  • networkRoute(), workflowRoute()
  • React useChat hook integration
  • streamLegacy() for v1 model compatibility
Install via CLI
npx skills add https://github.com/artsmc/claude-dev-agents --skill mastra-streaming
Repository Details
star Stars 3
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator