vercel/v0-sdk
SDK for the v0 Platform API
What it solves
It provides a standardized way for developers to integrate v0's generative UI capabilities into their own applications using TypeScript. It simplifies the process of creating chats, managing streaming responses, and handling authentication with the v0 API.
How it works
The SDK is generated from the v0 API OpenAPI schema. It offers a core TypeScript package for API interactions and a dedicated React package that provides AI SDK transport and SWR hooks for browser-based clients. It supports both synchronous and streaming chat creation and integrates with Vercel OIDC authentication.
Who it’s for
TypeScript and React developers who want to programmatically interact with v0 to generate UI components or websites via an API.
Highlights
- Core TypeScript SDK for the v0 API
- Support for streaming responses via
readV0Stream
- Dedicated React hooks and transport for browser clients
- Integration with Vercel OIDC authentication
Related
- Project
assistant-ui/assistant-uiA TypeScript/React library for building production-grade AI chat interfaces with composable primitives and seamless integration with various AI backends.
- Project
google-labs-code/stitch-sdkA TypeScript SDK for generating and editing UI screens from text prompts, providing HTML and screenshots for rapid prototyping and AI agent integration.
- Project
TanStack/aiTanStack AI is a TypeScript SDK that provides type‑safe, provider‑agnostic building blocks for chat, tool‑calling agents, structured JSON outputs, multimodal generation, realtime voice, and sandboxed code execution. It ships as a core package plus optional adapters for many LLM providers (OpenAI, Anthropic, Gemini, Ollama, etc.) and framework bindings for React, Vue, Solid, Svelte, and Preact, allowing developers to compose only the features they need.
- Project
openai/openai-nodeThe official TypeScript and JavaScript library for the OpenAI REST API, providing type-safe access to text, vision, and real-time AI models.
- Project
mcp-use/mcp-useA TypeScript framework for building and shipping MCP servers and interactive AI apps with native React views and built-in debugging tools.