AI SDK Learning Projects - Expanded Guides

AI SDK Learning Projects - Expanded Guides

Goal: Master the Vercel AI SDK through hands-on projects that teach its core concepts by building real applications.

This directory contains comprehensive, expanded project guides for learning the AI SDK deeply. Each project guide includes:

  • Learning Objectives - What youโ€™ll master
  • Deep Theoretical Foundation - Concepts explained thoroughly
  • Complete Project Specification - Exact requirements
  • Solution Architecture - Design guidance (not implementation)
  • Phased Implementation Guide - Step-by-step progression
  • Testing Strategy - How to verify correctness
  • Common Pitfalls - Mistakes to avoid
  • Extensions & Challenges - Ways to go deeper
  • Self-Assessment Checklist - Verify your understanding

Project Index

# Project Difficulty Time Core Concepts
01 AI-Powered Expense Tracker CLI Beginner Weekend generateObject, Zod schemas, structured output
02 Real-Time Document Summarizer Beginner-Intermediate 1 week streamText, SSE, React hooks, async iteration
03 Code Review Agent Intermediate 1-2 weeks Tools, agent loop, stopWhen, GitHub API
04 Multi-Provider Model Router Intermediate 1-2 weeks Provider abstraction, fallbacks, telemetry
05 Autonomous Research Agent Advanced 2-3 weeks prepareStep, knowledge graphs, multi-tool agents
06 Personal AI Command Center Advanced 1 month+ Multi-agent orchestration, synthesis project

Learning Path

                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚                   LEARNING PROGRESSION                    โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ”‚   P01       โ”‚        โ”‚   P02       โ”‚        โ”‚   P03       โ”‚
    โ”‚  Expense    โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บโ”‚  Streaming  โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บโ”‚  Code       โ”‚
    โ”‚  Tracker    โ”‚        โ”‚  Summarizer โ”‚        โ”‚  Review     โ”‚
    โ”‚             โ”‚        โ”‚             โ”‚        โ”‚  Agent      โ”‚
    โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚        โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚        โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚
    โ”‚ Structured  โ”‚        โ”‚ Real-time   โ”‚        โ”‚ Tool        โ”‚
    โ”‚ Output      โ”‚        โ”‚ Streaming   โ”‚        โ”‚ Calling     โ”‚
    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                                         โ”‚
                                                         โ”‚
                           โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                           โ”‚                                           โ”‚
                           โ–ผ                                           โ–ผ
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                           โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚   P04       โ”‚                           โ”‚   P05       โ”‚
                    โ”‚  Model      โ”‚                           โ”‚  Research   โ”‚
                    โ”‚  Router     โ”‚                           โ”‚  Agent      โ”‚
                    โ”‚             โ”‚                           โ”‚             โ”‚
                    โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚                           โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚
                    โ”‚ Provider    โ”‚                           โ”‚ Complex     โ”‚
                    โ”‚ Abstraction โ”‚                           โ”‚ Agent State โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜                           โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ”‚                                          โ”‚
                           โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                               โ”‚
                                               โ–ผ
                                        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                                        โ”‚   P06       โ”‚
                                        โ”‚  AI Command โ”‚
                                        โ”‚  Center     โ”‚
                                        โ”‚             โ”‚
                                        โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚
                                        โ”‚ Multi-Agent โ”‚
                                        โ”‚ Synthesis   โ”‚
                                        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

AI SDK Learning Progression Path


How to Use These Guides

  1. Read the parent file first: Start with AI_SDK_LEARNING_PROJECTS.md for the conceptual foundation
  2. Follow the progression: Complete projects in order (P01 โ†’ P06)
  3. Donโ€™t skip theory: Each guide has a theoretical foundationโ€”read it before coding
  4. Use hints sparingly: Try to solve challenges yourself before checking hints
  5. Complete self-assessments: Use the checklists to verify deep understanding

Prerequisites

Before starting these projects, ensure you have:

  • TypeScript/JavaScript proficiency - You should be comfortable with async/await, Promises, and type annotations
  • Node.js environment - Node.js 18+ with npm/pnpm
  • API keys - OpenAI API key at minimum; Anthropic and Google for later projects
  • Basic React knowledge - For Project 2 onwards
  • Git basics - For Project 3

Resources

Official Documentation

  • โ€œProgramming TypeScriptโ€ by Boris Cherny - TypeScript fundamentals
  • โ€œJavaScript: The Definitive Guideโ€ by David Flanagan - Async patterns, streams
  • โ€œDesigning Data-Intensive Applicationsโ€ by Martin Kleppmann - System design

Academic Papers

  • โ€œReAct: Synergizing Reasoning and Actingโ€ by Yao et al. - Agent foundations