AI SDK v536+ ComponentsStreamingTools

Production-ready AI components for the modern web

36+ components with full Vercel AI SDK integration. Streaming, tools, agents, RAG, and design tools. Copy, paste, ship.

npx shadcn@latest add v0-blocks
useChatuseObjectstreamTextgenerateObjectToolsSupabaseNeonStripe
Universal API

One SDK, every provider

The Vercel AI Gateway routes to any provider. Just change the model string.

O
OpenAI
GPT-5
A
Anthropic
Claude 4.5
G
Google
Gemini 3
x
xAI
Grok 4
F
Fireworks
Llama 4
G
Groq
Ultra Fast
model: 'openai/gpt-5' 'anthropic/claude-sonnet-4.5'

What this actually means

Normally, each AI company has its own way of doing things — different code, different API keys, different formats. The Vercel AI Gateway is like a universal translator. You write your code ONCE, and just change one word (the model name) to switch between OpenAI, Anthropic, Google, or any other provider. If one goes down or gets expensive, swap in 30 seconds.

What you can build with this

  • 1.
    Cost OptimizerRoute simple questions to cheap fast models, complex ones to expensive smart models
  • 2.
    Failover SystemAuto-switch to backup provider if your main one has an outage
  • 3.
    A/B Testing AI ModelsTest which AI gives better answers for your specific use case
generateText()

Text Generation

Generate complete text responses with full control over parameters.

Basic Text Generation

Simple prompt-to-text generation with usage metrics

generateTextroute-handler

Prompt

Explain quantum computing simply

Response

Quantum computing uses quantum mechanics to process information differently than classical computers...

324 tokens0.8sComplete
app/api/generate/route.ts

What this actually means

This is the most basic way to talk to AI. You send a question or instruction (the prompt), wait for the AI to think, and get back a complete answer all at once. It's like texting someone — you send the message, wait, then get their full reply. The 'usage' tells you how many tokens (roughly 4 characters = 1 token) were used, which matters for billing.

What you can build with this

  • 1.
    Email WriterPaste a rough draft, get back a polished professional email instantly
  • 2.
    Code ExplainerDrop in code, get a plain-English explanation of what it does
  • 3.
    Product Description GeneratorInput product details, get SEO-optimized descriptions for your store
streamText()

Real-time Streaming

Stream AI responses token by token for instant feedback.

Streaming Text Response

NEW

Real-time token streaming with abort signal support

streamTextSSE
Streaming...

app/api/stream/route.ts

What this actually means

Instead of waiting for the whole answer (which can take 10+ seconds for long responses), streaming shows you each word as the AI thinks of it — just like watching someone type in real-time. This makes your app feel WAY faster even though the total time is the same. The 'abort signal' lets users hit a stop button if they don't like where the response is going.

What you can build with this

  • 1.
    ChatGPT-style InterfaceBuild chat apps where responses appear word-by-word like the real thing
  • 2.
    Live Writing AssistantShow AI suggestions appearing in real-time as users type documents
  • 3.
    Interactive Story GeneratorCreate choose-your-own-adventure games where the story unfolds live
useChat()

Chat Interface

Build conversational AI interfaces with the useChat hook.

Chat Component

Full chat interface with message history and streaming

useChatclient
Chat
Hello! How can I help you today?
What's the weather like?
I can help you check the weather! What location?
components/chat.tsx

What this actually means

useChat is like a magic box that handles everything annoying about building a chat: it remembers all messages, streams responses, handles the loading state, manages the input field, and even lets users stop mid-response. Without it, you'd write 100+ lines of code. With it, you write 10. The hook talks to a /api/chat route you create on your server.

What you can build with this

  • 1.
    Customer Support BotBuild a 24/7 AI assistant that answers questions about your product
  • 2.
    AI TutorCreate a learning companion that explains concepts and answers follow-up questions
  • 3.
    Interview Practice AppBuild a mock interviewer that asks questions and gives feedback on answers
generateObject()

Structured Output

Generate type-safe JSON objects with Zod schema validation.

Object Generation

Type-safe structured data extraction with schemas

generateObjectZod
Generated Object
{
  "title": "Product Launch",
  "summary": "New feature release",
  "tags": ["tech", "startup"],
  "sentiment": "positive",
  "confidence": 0.94
}
app/api/analyze/route.ts

What this actually means

Normally AI returns messy text that you have to parse yourself. generateObject() forces the AI to return perfectly structured JSON that matches YOUR exact format. The Zod schema is like a contract — you define 'I want a title (string), tags (array), and sentiment (positive/negative/neutral)' and the AI MUST follow that structure. No more regex parsing nightmares.

What you can build with this

  • 1.
    Resume ParserUpload a resume PDF, get back structured data: name, email, skills[], experience[]
  • 2.
    Content ModeratorAnalyze user posts and get { isSpam: boolean, toxicityScore: number, categories: [] }
  • 3.
    Receipt ScannerPhoto of receipt → { merchant, total, items: [{ name, price }], date }
useObject()

Streaming Structured Data

Stream typed JSON objects in real-time with the useObject hook.

Profile Generator

NEW

Real-time streaming of typed objects

useObjectstreaming
useObject
components/profile-generator.tsx

What this actually means

This is generateObject() but with live updates. Instead of waiting for the whole JSON to be ready, each field appears as soon as it's generated. Think of a form that fills itself in one field at a time while you watch. The skeleton loading states can show exactly which fields are still 'thinking'. Users see progress instead of staring at a spinner.

What you can build with this

  • 1.
    AI Form Auto-FillUser describes what they want, form fields populate one-by-one in real-time
  • 2.
    Live Data DashboardGenerate analytics summaries where each metric appears as it's calculated
  • 3.
    Character CreatorAI generates RPG character stats, abilities, and backstory field-by-field
useCompletion()

Text Completion

Simple text completion without chat history.

Completion Hook

NEW

Single-prompt completion with streaming

useCompletionstreaming
The future of AI is
components/text-completion.tsx

What this actually means

useCompletion is the simpler cousin of useChat. Instead of back-and-forth conversation with history, it's just: send text → get AI continuation. No memory of previous interactions. Perfect for one-shot tasks like 'finish this sentence' or 'expand this bullet point'. Lighter weight, simpler mental model, same streaming goodness.

What you can build with this

  • 1.
    Autocomplete TextareaUser writes a sentence, clicks Tab, AI finishes their thought
  • 2.
    Blog Outline ExpanderWrite a bullet point, get a full paragraph generated from it
  • 3.
    Code Comment GeneratorPaste a function, get documentation comments added automatically
createStreamableValue

Server Actions

Stream AI responses from server actions to React Server Components.

Streamable Server Action

NEW

Create streamable values in server actions

RSCstreaming
Click to generate...
Ready
app/actions.ts

What this actually means

Server Actions are functions that run on your server but you can call them like regular functions from your React components. The magic: they can STREAM data back. So instead of creating a separate API route, you just write a function with 'use server' at the top, and call it from a button click. createStreamableValue lets you send chunks of text as they're generated, making your UI feel instant.

What you can build with this

  • 1.
    One-Click Report GeneratorButton that generates a full analysis report streaming directly into the page
  • 2.
    Form with AI EnhancementSubmit a form, server action processes it AND adds AI-generated suggestions inline
  • 3.
    Real-time Translation WidgetType in one language, see the streaming translation appear below instantly
tool()

Tool Calling

Give AI the ability to execute functions and interact with external systems.

Weather Tool

NEW

Function tools with streaming state

toolsstreaming

What's the weather in Tokyo?

getWeather
city: "Tokyo"

72F Sunny

Tokyo, Japan

app/api/tools/route.ts

What this actually means

AI can only think — it can't actually DO things like check the weather, send emails, or look up your database. Tools are like giving the AI a toolbox. You define functions it CAN call, and when the AI decides it needs real data, it calls your function, gets the result, and uses that in its response. It's the bridge between 'smart text generator' and 'actually useful assistant'.

What you can build with this

  • 1.
    Smart Calendar AssistantAI checks your real calendar, finds free slots, and books meetings for you
  • 2.
    E-commerce HelperChatbot that can actually search your product database and check inventory
  • 3.
    Code Deployment BotAI that can run tests, check CI status, and trigger deploys when you ask
async function*

Generator Tools

Use yield to stream intermediate states during tool execution.

Generator Tool

NEW

Yield intermediate states with async generators

toolsgenerator
Generator Function
Calling tool
Fetching weather
Getting forecast
Complete
app/api/chat/route.ts

What this actually means

Normal tools run, then return a result. Generator tools can send UPDATES while they're still running using 'yield'. Imagine booking a flight: instead of waiting silently, the tool can say 'Searching flights...', then 'Found 12 options...', then 'Filtering by price...', then finally return the results. Users see progress instead of staring at a spinner. It's like live sports commentary for your tool execution.

What you can build with this

  • 1.
    Multi-step Order TrackerShow 'Checking inventory → Processing payment → Confirmed' states in real-time
  • 2.
    Research AssistantStream 'Searching Google → Found 5 sources → Reading articles → Summarizing' updates
  • 3.
    File Upload ProcessorShow 'Uploading → Scanning → Processing → Complete' with percentages at each step
parts[]

Message Parts

Handle rich content with typed parts for text, tools, and files.

Parts Renderer

NEW

Render different part types

partsv5
message.parts[]
components/chat-with-parts.tsx

What this actually means

AI responses aren't just text anymore. A single message might contain: text, a code block, an image, a tool being called, a file attachment, and a source citation. In AI SDK v5, each message has a 'parts' array where each part has a 'type' that tells you what it is. You switch on the type and render each part differently — text gets rendered as paragraphs, tools get a special UI, files show previews, etc.

What you can build with this

  • 1.
    Rich Chat InterfaceDisplay code with syntax highlighting, images inline, and interactive tool UIs all in one message
  • 2.
    Document GeneratorAI outputs mixed content — headings, paragraphs, charts, tables — each rendered properly
  • 3.
    Research Assistant with CitationsAI answers with text + clickable source links that show where info came from
addToolResult

Human-in-the-Loop

Require user confirmation for sensitive tool actions.

Confirmation Tool

NEW

Tools that pause for user approval

toolsconfirmation
app/api/chat/route.ts

What this actually means

Some actions are too important to let AI do automatically — like spending money, deleting data, or sending emails. Human-in-the-loop means the AI proposes an action, but PAUSES and waits for you to click 'Confirm' or 'Cancel' before actually doing it. The tool execution is split: first it plans what it wants to do, then waits for your approval, then executes if approved. Safety rails for AI.

What you can build with this

  • 1.
    AI Shopping AssistantAI finds the best deals but waits for your 'Buy' confirmation before charging your card
  • 2.
    Email ComposerAI drafts and shows you the email, only sends after you review and approve
  • 3.
    Database Admin BotAI suggests SQL queries for data changes, but requires DBA approval before execution
Multi-step

AI Agents

Build autonomous agents that execute multi-step tasks.

Task Agent

NEW

Multi-step agent with tool orchestration

agentsmulti-step
1
searchWeb

landing page best practices

2
writeCode

Hero component

3
writeCode

Features section

4
Complete

Generated 3 components

lib/agent.ts

What this actually means

Normal AI does one thing and stops. Agents are AI that can PLAN and EXECUTE multiple steps on their own. You say 'build me a landing page' and it thinks: 'First I'll research best practices, then write the hero section, then the features...' — each step using different tools. The 'stopWhen' prevents infinite loops (so it doesn't run forever). This is how AI coding assistants actually work.

What you can build with this

  • 1.
    Research AgentGive it a topic, it searches multiple sources, cross-references, and writes a report
  • 2.
    Bug FixerAgent that reads error logs, finds the file, understands the code, and proposes fixes
  • 3.
    Content PipelineAutomatically research → outline → write → edit → format blog posts end-to-end
embed()

Embeddings

Convert text to vectors for semantic search.

Text Embeddings

Generate embeddings for semantic search

embedvectors

Input

"The quick brown fox"

Vector

[0.023, -0.041, 0.089, 0.012, ...]

1536 dimensions

lib/embeddings.ts

What this actually means

Embeddings turn words into numbers that capture MEANING. 'Happy' and 'joyful' become similar number sequences, while 'happy' and 'refrigerator' are very different. This lets you search by concept instead of exact keywords. When someone searches 'cheap flights' your app can also find results about 'budget travel' and 'affordable airfare' because they're mathematically close. It's how AI 'understands' language.

What you can build with this

  • 1.
    Smart Search BarSearch your docs by meaning — 'how to cancel' finds 'subscription management' pages
  • 2.
    Recommendation EngineFind similar products, articles, or users based on semantic similarity
  • 3.
    Duplicate DetectorFind near-duplicate support tickets even when worded completely differently
RAG

Retrieval-Augmented Generation

Ground AI responses with your own data.

RAG Pipeline

Vector search and generation

RAGvectors

Query

How do I set up auth?

Retrieved

1docs/auth-setup.md
2docs/auth-setup.md
3docs/auth-setup.md

Answer

Based on the docs, set up auth by...

app/api/rag/route.ts

What this actually means

AI models only know what they were trained on (usually old data). RAG fixes this by: 1) Taking the user's question, 2) Searching YOUR database for relevant info, 3) Giving that info to the AI as context, 4) AI answers using YOUR actual data. It's like giving the AI an open-book test with your company's documentation. No hallucinations about things you never wrote.

What you can build with this

  • 1.
    Company Knowledge Base BotEmployees ask questions, AI answers using your actual internal docs and wikis
  • 2.
    Legal Document Q&ALawyers ask about contracts, AI finds and cites the exact relevant clauses
  • 3.
    Codebase AssistantDevs ask 'how does auth work here?' and get answers based on your actual code
Vision

Multimodal AI

Process images, PDFs, and audio alongside text.

Vision Analysis

Analyze images with vision models

visionmultimodal

Input Types

Image
PDF
Audio

Analysis

This image shows a modern web interface...

app/api/vision/route.ts

What this actually means

'Multimodal' means the AI can see, not just read. You can send images, screenshots, PDFs, even audio files alongside your text prompt. The AI looks at the image and can describe it, answer questions about it, or extract information. It's the same models behind 'upload a photo and ask questions' features you see in ChatGPT and Claude.

What you can build with this

  • 1.
    Screenshot-to-CodeUpload a design screenshot, get working HTML/CSS/React code generated
  • 2.
    Food Calorie TrackerSnap a photo of your meal, AI estimates calories and nutritional info
  • 3.
    Accessibility Alt-Text GeneratorBulk generate accurate image descriptions for your entire website
generateText + files

Image Generation

Generate images with multimodal models.

Image Generator

NEW

Generate images with Gemini 3

multimodalimages

Generated image

"A futuristic city at sunset"

app/api/image/route.ts

What this actually means

Some AI models can create images, not just text. You describe what you want ('a cat wearing sunglasses on a beach') and get back an actual image. The 'files' in the response contains the generated images as base64 data (basically the image encoded as text that you can convert back to an image). Different models have different art styles and capabilities.

What you can build with this

  • 1.
    AI Art GeneratorLet users type descriptions and generate unique artwork for their projects
  • 2.
    Product Mockup ToolDescribe a product, get realistic mockups without needing a designer
  • 3.
    Social Media Content CreatorGenerate custom graphics for posts, stories, and thumbnails on demand
middleware.ts

Middleware

Intercept and modify AI requests at the edge.

AI Middleware

Request tracking for AI routes

middlewareedge
POST /api/ai/chat
X-AI-Request-Ida1b2c3d4...
X-RateLimit-Remaining99
middleware.ts

What this actually means

Middleware is code that runs BEFORE your actual API route. Every request to /api/ai/* passes through this first. You can check if the user is logged in, add tracking headers, block certain countries, log everything — all without touching your actual AI code. It runs at the 'edge' (close to users) so it's super fast. Think of it as a bouncer checking IDs before letting people into the club.

What you can build with this

  • 1.
    Geographic BlockingBlock AI access from certain countries for compliance or cost reasons
  • 2.
    Request LoggingLog every AI request with timestamps, IPs, and unique IDs for debugging
  • 3.
    A/B TestingRoute 10% of users to a new AI model, 90% to the stable one
use cache

Response Caching

Cache AI responses with Next.js 16 cache components.

Cached Completions

NEW

Cache AI responses with revalidation

cachingNext.js 16
First Request842ms
Cached3ms

280x faster

lib/cached-ai.ts

What this actually means

AI calls are slow (1-10 seconds) and expensive (pay per token). Caching saves the result so the SAME question doesn't hit the AI again — it just returns the saved answer instantly. 'use cache' in Next.js 16 makes this one line of code. The revalidateTag function lets you clear the cache when you want fresh answers. Perfect for content that doesn't change often.

What you can build with this

  • 1.
    FAQ BotCache answers to common questions — 99% of users ask the same 20 things
  • 2.
    Product DescriptionsGenerate once, serve from cache millions of times without re-calling AI
  • 3.
    Daily Summary GeneratorGenerate report once per day, cache it, serve to all users instantly
Edge Runtime

Edge Deployment

Deploy AI to 30+ global edge regions.

Edge AI Route

Ultra-low latency with edge runtime

edgeglobal
Edge Network
San Francisco
12ms
London
45ms
Tokyo
89ms
app/api/edge/route.ts

What this actually means

'Edge' means running your code on servers spread across the world — close to your users. A user in Tokyo hits a Tokyo server, not one in Virginia. The 'runtime = edge' flag tells Vercel to deploy this route globally. Your code can't use Node.js-specific stuff (like fs for file system), but in exchange you get crazy fast response times. The AI call still goes to OpenAI's servers, but YOUR code responds instantly.

What you can build with this

  • 1.
    Global AI AppServe users in 100 countries with <50ms latency to your server
  • 2.
    Real-time AI AssistTyping suggestions that appear instantly, not after network delay
  • 3.
    Competitive Gaming BotAI opponent responses so fast they feel like local computation
APICallError

Error Handling

Handle AI errors with typed error classes.

Error Boundaries

Typed error handling with retry logic

errorsretry
APICallError
statusCode:429
message:Rate limit
isRetryable:true
app/api/safe/route.ts

What this actually means

AI APIs fail. A lot. Rate limits (too many requests), timeouts (AI thinking too long), server errors (OpenAI is down). APICallError gives you typed errors with useful info: the status code, the message, and crucially — isRetryable (should you try again or give up?). Handle errors gracefully so users see 'Please try again' instead of a cryptic crash.

What you can build with this

  • 1.
    Auto-Retry SystemIf isRetryable is true, automatically wait 2 seconds and try again (up to 3 times)
  • 2.
    Fallback to Backup ProviderIf OpenAI fails, automatically switch to Anthropic as backup
  • 3.
    User-Friendly Error MessagesConvert technical errors to helpful messages: 'We're busy, try again in 30 seconds'
Upstash

Rate Limiting

Protect AI endpoints with sliding window limits.

Rate Limiter

Redis-backed rate limiting

UpstashRedis
Rate Limit7/10
Resets in 42s10 req / 60s
app/api/limited/route.ts

What this actually means

AI calls cost money. Without rate limiting, one user (or bot) could make 1000 requests and blow your budget. Rate limiting says 'each user can only make 10 requests per minute'. Upstash Redis stores the count in a super-fast database. 'Sliding window' means it's a rolling 60-second window, not fixed minutes — smoother and fairer than simple counting.

What you can build with this

  • 1.
    Freemium Tier ControlFree users get 10 AI requests/day, paid users get unlimited
  • 2.
    API Abuse PreventionStop scrapers and bots from draining your AI budget
  • 3.
    Fair Usage EnforcementPrevent one power user from hogging all your server resources
Supabase Auth

Authentication

Secure AI endpoints with Supabase authentication.

Protected Route

Auth-gated AI with usage tracking

Supabaseauth
Protected Route
JD

John Doe

Pro Plan

app/api/protected/route.ts

What this actually means

Without auth, anyone can use your AI endpoint and you pay the bill. Authentication verifies WHO is making the request using cookies/tokens. Supabase handles the hard parts (passwords, sessions, OAuth). createServerClient reads the auth cookie, checks with Supabase if it's valid, and gives you the user object. No user? Return 401 Unauthorized. Simple but essential.

What you can build with this

  • 1.
    SaaS AI FeatureOnly paying subscribers can access the AI assistant
  • 2.
    Personalized AIKnow the user, so AI can access their data and history
  • 3.
    Usage-Based BillingTrack exactly how many tokens each user consumes for billing
onFinish

Usage Analytics

Track tokens, latency, and costs.

Analytics Tracking

Automatic usage metrics

analyticsmetrics
Tokens (7d)+23%
M
T
W
T
F
S
S

1.2M

Tokens

842

Requests

1.4s

Latency

app/api/tracked/route.ts

What this actually means

The onFinish callback fires when the AI is completely done responding. It gives you usage stats: how many tokens were in the prompt, how many in the response. You can log this to a database, send to analytics tools, or use for billing. Tokens are how AI companies charge you, so tracking them is essential for understanding costs and preventing surprises.

What you can build with this

  • 1.
    Cost DashboardSee exactly how much you're spending per day, week, feature, or user
  • 2.
    Slow Query DetectorFind prompts that take too long and optimize or cache them
  • 3.
    Per-User BillingCharge customers based on their actual AI usage, not flat fees
Async

Webhooks

Trigger AI workflows from external events.

Webhook Handler

Secure webhook processing

webhooksHMAC
Webhook
event:"document.created"
signature:sha256=a1b2...
Verified Processing...
app/api/webhook/route.ts

What this actually means

Webhooks are 'reverse APIs' — instead of YOU calling someone, THEY call you when something happens. Stripe calls you when someone pays. GitHub calls you when code is pushed. You verify it's really them (using the signature/secret), then do something with AI. The HMAC signature check prevents hackers from faking webhook calls and tricking your AI into processing fake data.

What you can build with this

  • 1.
    Auto-Summarize DocumentsGoogle Drive webhook triggers AI summary when any file is uploaded
  • 2.
    Smart NotificationsSlack webhook → AI analyzes message → sends alert only if it's actually important
  • 3.
    Order ProcessingShopify order webhook triggers AI to generate personalized thank-you email
Vercel Blob

File Storage

Upload files and use them as AI context.

Upload + Analyze

NEW

Upload to Blob, analyze with AI

Blobmultimodal
app/api/analyze/route.ts

What this actually means

Vercel Blob is simple file storage — upload images, PDFs, audio, whatever. The 'put' function uploads the file and gives you a URL. That URL can then be passed to AI for analysis. Unlike temporary URLs that expire, Blob gives you permanent storage. Perfect for when users upload files you need to reference later or process with AI.

What you can build with this

  • 1.
    Document AnalyzerUsers upload contracts, AI extracts key terms and summarizes them
  • 2.
    Image-Based SearchUpload product photos, AI describes them for searchable text database
  • 3.
    Audio Transcription ServiceUpload podcast episodes, AI transcribes and generates show notes
Neon

Database Integration

Connect AI to your database with vector search.

Vector Search

pgvector for semantic queries

Neonpgvector
PostgreSQL
SELECT content, embedding
FROM documents
ORDER BY embedding <=> query
LIMIT 5
5 rows • 12ms
app/api/query/route.ts

What this actually means

Neon is serverless PostgreSQL — a real database that scales automatically. The magic is pgvector: a PostgreSQL extension that lets you store embeddings (those number arrays from earlier) and search by similarity. The '<=> ' operator finds the closest matches. So you can ask 'find documents similar to this question' and get semantically related content, even if no keywords match.

What you can build with this

  • 1.
    Semantic Doc SearchUser asks a question, database finds the most relevant docs even without keyword match
  • 2.
    Personalized RecommendationsStore user preference embeddings, find products/content with similar vibes
  • 3.
    Conversational MemoryStore past conversations, retrieve relevant history when topics come up again
Payments

Stripe + AI

AI-powered checkout and pricing.

AI Checkout

NEW

Create checkouts from conversation

Stripecheckout
Cart
Pro Plan
$29 x 1
API Credits
$10 x 3
Total$59
app/api/chat/route.ts

What this actually means

Combine AI with Stripe and you get conversational commerce. User says 'I want the Pro plan and 3 API credit packs' in chat, AI understands and creates a real Stripe checkout with those exact items. The tool handles all the Stripe API complexity — creating line items, generating a checkout URL, redirecting to payment. Natural language becomes real transactions.

What you can build with this

  • 1.
    Conversational Shopping'Add the blue shirt in medium' → AI adds to cart → 'checkout' → Stripe payment page
  • 2.
    AI Pricing AdvisorAI analyzes user needs, recommends the best plan, and creates checkout in one conversation
  • 3.
    Usage-Based UpsellsAI detects you're hitting limits, suggests upgrade, handles the entire purchase flow
MCP

Model Context Protocol

Connect to Linear, Notion, Sentry and more.

MCP Integration

NEW

Auto-generate tools from MCP servers

MCPtools
MCP
Tools:
create_issuelist_issuesupdate_issue
app/api/chat/route.ts

What this actually means

MCP (Model Context Protocol) is a standard way for AI to connect to external services. Instead of writing custom code for each integration, MCP servers provide a plug-and-play interface. Connect the Linear MCP and your AI instantly gets tools like 'create_issue', 'list_issues', etc. Anthropic created the standard, and companies are building MCP servers for their products. One protocol, hundreds of integrations.

What you can build with this

  • 1.
    AI Project Manager'Create a bug for the login issue' → AI creates Linear issue with proper labels and assignee
  • 2.
    Smart Documentation BotAI searches and updates Notion docs based on conversation, no manual navigation
  • 3.
    Error Resolution AssistantAI checks Sentry for recent errors, analyzes stack traces, and suggests fixes
defineWorkflow

Vercel Workflows

Multi-step AI pipelines with durable execution.

Content Workflow

NEW

Multi-step pipeline with dependencies

workflowdurable
Workflow
1
Research
2
Outline
3
Write
workflows/content.ts

What this actually means

Workflows are AI pipelines that survive failures. If step 2 of 5 crashes, it restarts from step 2 — not from scratch. ctx.run() wraps each step and saves its result. 'Durable execution' means even if your server restarts mid-workflow, it picks up where it left off. Perfect for long, expensive AI operations where you can't afford to lose progress.

What you can build with this

  • 1.
    Blog Post FactoryResearch → Outline → Write Draft → Edit → Generate Images → Publish — all automated
  • 2.
    Video Processing PipelineTranscribe → Summarize → Generate chapters → Create thumbnails → Upload to platform
  • 3.
    Data Migration AssistantAnalyze old schema → Plan migration → Transform data → Validate → Deploy — with checkpoints
Playwright

Computer Use

Let AI control browsers with Playwright.

Computer Tool

NEW

Full browser automation with AI

automationbrowser
Computer Use
example.com
app/api/computer/route.ts

What this actually means

Computer Use gives AI eyes and hands. It takes screenshots to SEE what's on screen, then clicks, types, and scrolls to INTERACT. Playwright is a browser automation library — it runs a real Chrome instance that AI controls like a human would. The AI looks at a screenshot, decides 'I need to click that button', and sends the coordinates. It can browse websites, fill forms, anything a human could do.

What you can build with this

  • 1.
    Web Scraper on SteroidsAI navigates complex sites, handles logins, clicks through pagination, extracts data
  • 2.
    Automated Testing'Test the checkout flow' → AI clicks through your app and reports bugs it finds
  • 3.
    AI Personal Assistant'Book me a flight to Tokyo' → AI opens travel site, searches, selects, and books
Tokens

Design System

Define design tokens for consistent AI-generated components.

Design Tokens

NEW

Colors, spacing, and typography

tokenstheme
foreground
muted
background
border
lib/theme.ts

What this actually means

Design tokens are the building blocks of visual consistency — named values for colors, spacing, and typography. Instead of hardcoding '#3B82F6' everywhere, you use 'primary'. Then when you want to change your brand color, you change ONE place. AI generators can reference these tokens to create components that automatically match your brand. It's how Figma, Tailwind, and shadcn/ui work under the hood.

What you can build with this

  • 1.
    White-Label SaaSSwap tokens per customer — each gets their brand colors without code changes
  • 2.
    Dark Mode ToggleSame tokens, different values — switch themes by swapping the token file
  • 3.
    AI Component GeneratorPrompt 'create a card component' and it uses YOUR tokens, not generic colors
Props

Property Editor

Visual editing for component properties.

Property Panel

NEW

Edit component props visually

editorvisual
Properties
Padding16px
Radius8px
Preview
components/property-editor.tsx

What this actually means

Property editors let non-coders tweak components without touching code. Drag a slider → padding changes → you see it instantly. It's how Figma, Webflow, and v0's Design Mode work. Under the hood, it's just React state connected to component props. The slider updates state, state updates the prop, prop updates the visual. Two-way binding between UI and code.

What you can build with this

  • 1.
    v0-style Design ModeClick any element, adjust padding/colors/fonts with sliders instead of typing CSS
  • 2.
    CMS Component BuilderMarketing team edits hero sections, button colors, fonts — no developer needed
  • 3.
    Theme CustomizerLet users tweak your app's appearance — spacing, roundness, colors — and save preferences
@dnd-kit

Layer System

Manage component hierarchy with drag-and-drop.

Layer Panel

NEW

Hierarchical layer management

layersDnD
Layers
Hero Section
THeading
CTA Button
Features
Footer
components/layer-panel.tsx

What this actually means

Layer panels show your component tree — what's nested inside what. Like Photoshop layers but for UI components. dnd-kit handles drag-and-drop for reordering. The eye icon toggles visibility (hide without deleting), the lock prevents accidental edits. This is essential for any design tool: knowing what exists, selecting it, organizing it, and protecting important elements.

What you can build with this

  • 1.
    Page BuilderSee all sections, drag to reorder hero/features/footer, hide sections for testing
  • 2.
    Email Template EditorLock header/footer, let users reorder content blocks in between
  • 3.
    Complex Dashboard DesignerOrganize 50+ widgets into groups, show/hide entire widget sets for different views
Export

Multi-Format Export

Export to React, JSON, PNG, or GitHub.

Code Export

NEW

Generate formatted React code

exportPrettier
Export
lib/export.ts

What this actually means

Export turns your visual design into actual code you can use. Prettier formats it nicely. TSX for React projects, JSON for data structures, PNG for screenshots/mockups, GitHub to push directly to a repo. The key is converting the internal component structure (objects, props, children) into valid, readable, production-ready code that developers can actually use.

What you can build with this

  • 1.
    v0-style Code DownloadDesign it visually, click Export, get clean React code you can drop into your project
  • 2.
    Design HandoffDesigner creates components, exports JSON spec, developer imports into codebase
  • 3.
    Component Library GeneratorBuild components visually, export to GitHub, auto-publish as npm package
36+
Components
12
Integrations
50k+
Downloads

Everything you need to build AI-powered applications

36+ production-ready components covering every AI SDK pattern. Server Actions, streaming, tools, agents, and more.

npx shadcn@latest add v0-blocks
AI SDK v5 Ready
TypeScript Native
Zero Config
Streaming First
Tool Calling
MCP Support