MCPcopy Index your code
hub / github.com/ibelick/prompt-kit

github.com/ibelick/prompt-kit @main

repository ↗ · DeepWiki ↗ · Ask this repo → · + Follow
401 symbols 1,015 edges 168 files 13 documented · 3% 1 cross-repo links updated 3mo ago★ 2,9028 open issues
README

prompt-kit

Customizable, high-quality components for AI applications.
Build chat experiences, AI agents, autonomous assistants, and more, quickly and beautifully.

cover

Installation

Install shadcn/ui

First, you'll need to install and configure shadcn/ui in your project.
Follow the installation guide in the shadcn/ui documentation.

Install prompt-kit components

Once shadcn/ui is set up, you can install prompt-kit components using the shadcn CLI:

npx shadcn@latest add prompt-kit/[component]

Usage

After installation, import and start using the components in your project:

import { PromptInput } from "@/components/ui/prompt-input"

Extension points exported contracts — how you extend this code

LoaderProps (Interface)
(no doc)
components/prompt-kit/loader.tsx
SheetContentProps (Interface)
(no doc)
components/ui/sheet.tsx
RegistryFile (Interface)
(no doc)
scripts/registry-schema.ts
TailwindConfig (Interface)
(no doc)
scripts/registry-schema.ts
CssVars (Interface)
(no doc)
scripts/registry-schema.ts
Schema (Interface)
(no doc)
scripts/registry-schema.ts
PrimitiveDefinition (Interface)
(no doc)
scripts/registry-schema.ts

Core symbols most depended-on inside this repo

cn
called by 227
lib/utils.ts
useSidebar
called by 5
app/app-sidebar.tsx
useSidebar
called by 4
components/ui/sidebar.tsx
buildUrl
called by 4
app/sitemap.ts
generateMetadata
called by 4
app/docs/utils/metadata.ts
getOpenAIApiKey
called by 4
app/primitives/demo/input-byok.tsx
handleDrag
called by 3
components/prompt-kit/file-upload.tsx
useTextStream
called by 3
components/prompt-kit/response-stream.tsx

Shape

Function 386
Interface 8
Method 5
Class 2

Languages

TypeScript100%

Modules by API surface

components/ui/sidebar.tsx25 symbols
components/ui/dropdown-menu.tsx15 symbols
scripts/generate-llms-txt.js14 symbols
components/prompt-kit/loader.tsx14 symbols
components/prompt-kit/prompt-input.tsx10 symbols
hooks/use-api-key.ts9 symbols
components/prompt-kit/file-upload.tsx9 symbols
components/ui/breadcrumb.tsx7 symbols
components/ui/accordion.tsx7 symbols
scripts/registry-schema.ts6 symbols
components/prompt-kit/steps.tsx5 symbols
components/prompt-kit/reasoning.tsx5 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@ai-sdk/openai2.0.2 · 1×
@ai-sdk/react2.0.0-beta.33 · 1×
@eslint/eslintrc3 · 1×
@mdx-js/loader3.1.0 · 1×
@mdx-js/react3.1.0 · 1×
@next/mdx15.1.7 · 1×
@radix-ui/react-avatar1.1.3 · 1×
@radix-ui/react-collapsible1.1.10 · 1×
@radix-ui/react-dialog1.1.13 · 1×
@radix-ui/react-dropdown-menu2.1.14 · 1×
@radix-ui/react-hover-card1.1.14 · 1×

For agents

$ claude mcp add prompt-kit \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact