Skip to content

knifeyspoony/ai-chat-bootstrap

Repository files navigation

ai-chat-bootstrap

npm version license types

React components and hooks that turn AI SDK responses into polished chat experiences in minutes.

  • Drop-in chat container with message rendering primitives
  • Built-in tooling for commands, suggestions, and tool results
  • Works with zero-config CSS or a Tailwind preset, powered by Zustand stores

Quick Links

Install

pnpm add ai-chat-bootstrap react react-dom ai @ai-sdk/react @ai-sdk/openai zod

Swap @ai-sdk/openai for your preferred provider. zod is recommended for commands and tools.

Usage

import { ChatContainer } from "ai-chat-bootstrap";

export function App() {
  return (
    <ChatContainer
      transport={{ api: "/api/chat" }}
      messages={{ systemPrompt: "You are a helpful AI assistant." }}
    />
  );
}

Dig into the docs for styling, advanced patterns, and server helpers.

License

MIT

About

React UI + hooks for building modern AI chat interfaces fast. Built on top of Vercel AI SDK and AI SDK Elements.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors