AI SDK Tools

Powerful tools for building AI applications.

Essential utilities that extend and improve the Vercel AI SDK experience. State management, debugging tools, and streaming data management - everything you need to build advanced AI interfaces like canvas, workflows, and more.

npm i @ai-sdk-tools/store
npm i @ai-sdk-tools/devtools
npm i @ai-sdk-tools/artifacts
Used by
◇ AI SDK Store
◇ Live State Access
│ Messages: 0
│ Status: ready
│ Loading:
└ State updated in real-time
◇ Messages (0)
No messages yet. Send one below to see live updates!
◇ Try it out
└ Watch selectors update live
◇ AI SDK Devtools
◇ AI SDK Devtools
Monitoring for tool calls...
└ Real-time debugging interface for AI SDK applications

State Management

Powerful Zustand-based state management for AI applications. Eliminate prop drilling and manage chat state globally with full TypeScript support.

Development Tools

Debug and monitor your AI applications with real-time insights into tool calls, state changes, and performance metrics.

Streaming Data Management

Handle real-time data streams, user interactions, and complex state updates for advanced interfaces like canvas tools and workflow builders.

Production Ready

Battle-tested tools used in production applications. Optimized for performance, reliability, and scalability in real-world AI applications.

TypeScript First

Full TypeScript support with intelligent autocompletion, type safety, and comprehensive type definitions for all AI SDK tools.

Framework Agnostic

Works seamlessly with React, Next.js, and other modern frameworks. Compatible with SSR, concurrent features, and edge runtime environments.

Getting Started

◇ Store (State Management)
import { useChat } from 'ai-sdk-zustand'

function Chat() {
  useChat({
    api: '/api/chat'
  })
  
  return (
    <div>
      <MessageList />
      <MessageInput />
    </div>
  )
}

function MessageList() {
  const messages = useChatMessages()
  
  return (
    <div>
      {messages.map(msg => (
        <div key={msg.id}>
          {msg.content}
        </div>
      ))}
    </div>
  )
}
◇ Devtools (Debugging)
import { AIDevtools } from '@ai-sdk/devtools'

function App() {
  return (
    <div>
      <Chat />
      
      {process.env.NODE_ENV === 'development' && (
        <AIDevtools />
      )}
    </div>
  )
}

// Automatically tracks:
// - Tool calls
// - State changes  
// - Performance metrics
// - Error handling
◇ Artifacts (File Handling)
import { useArtifacts } from '@ai-sdk/artifacts'

function ArtifactViewer() {
  const { artifacts, save, load } = useArtifacts()
  
  return (
    <div>
      {artifacts.map(artifact => (
        <div key={artifact.id}>
          <h3>{artifact.title}</h3>
          <pre>{artifact.content}</pre>
          <button onClick={() => save(artifact)}>
            Save
          </button>
        </div>
      ))}
    </div>
  )
}

Choose Your Tools

Install individual packages or get the complete toolkit for building AI applications.