hashbrown-dev
БесплатноБез исполняемых скриптовНе проверенBuilding LLM-powered React applications with the Hashbrown library. Use when the user asks to (1) Build generative UI where LLMs render React components, (2)…
от majiayu000★ 31 звезда на GitHubОб этом скилле
Hashbrown Development Skill
Overview
Hashbrown is a React library for building LLM-powered applications with generative UI, client-side tool calling, streaming, and sandboxed JavaScript execution. It provides React hooks (useChat, useUiChat, etc.) that connect to a Node.js backend adapter, which securely communicates with LLM providers (OpenAI, Anthropic, Google, Azure, Bedrock, Ollama).
Architecture: React frontend (using Hashbrown hooks) + Node.js backend adapter (proxies LLM API requests)
Quick Start Workflow
1. Choose the Right Hook
| Hook | Multi-turn Chat | Single Input | Structured Output | Tool Calling | Generate UI |
|---|---|---|---|---|---|
useChat |
✅ | ❌ | ❌ | ✅ | ❌ |
useStructuredChat |
✅ | ❌ | ✅ | ✅ | ❌ |
useCompletion |
❌ | ✅ | ❌ | ✅ | ❌ |
useStructuredCompletion |
❌ | ✅ | ✅ | ✅ | ❌ |
useUiChat |
✅ | ❌ | ✅ | ✅ | ✅ |
2. Generate Boilerplate
Use the scripts to scaffold components and servers:
# List available templates
python scripts/list-templates.py
# Generate a component
python scripts/generate-component.py simple-chat ./src/components
# Generate a backend server
python scripts/generate-server.py basic-chat-server ./backend
Available component templates:
simple-chat- Basic text-only chat withuseChatui-chat-with-components- Generative UI withuseUiChatandexposeComponentclient-side-tool-calling- Tool calling withuseTooljs-runtime-chart-generator- Sandboxed JS execution for data visualizationstructured-data-form- Form generation from natural language with Skillet schemasstreaming-chat-ui- Streaming responses with loading statesmulti-threaded-chat-ui- Multi-conversation management with threadspredictive-text-input- Autocomplete/suggestions powered by LLMchat-with-voice-input- Voice input with speech recognition
Available server templates:
basic-chat-server- Simple Express server with OpenAI adapterstreaming-chat-server- Streaming support for real-time responseschat-server-with-data- Server with database/context injectionchat-server-with-threads- Persistent conversation threadsserver-with-authentication- Auth-protected endpoints
3. Consult References for Details
Load reference documentation as needed for deep implementation details:
- getting-started.md - Installation, setup, hook overview
- core-concepts.md - Generative UI, tool calling, JS runtime, streaming
- structured-data.md - Skillet schema language for type-safe JSON output
- platform-integration.md - LLM provider adapters (OpenAI, Anthropic, Google, etc.)
- advanced-guides.md - Chatbots, threads, MCP, predictive actions
- best-practices.md - Prompt engineering, model selection, ethics
- INDEX.md - Navigation map of all documentation
Core Capabilities
1. Generative UI
Expose React components to the LLM so it can render your UI dynamically.
import { useUiChat, exposeComponent } from '@hashbrownai/react'
import { s } from '@hashbrownai/core'
import { MyCard } from './MyCard'
const exposedCard = exposeComponent(MyCard, {
name: 'MyCard',
description: 'A card to display information',
props: { title: s.string('The title'), content: s.string('The body') },
})
const { messages } = useUiChat({
components: [exposedCard],
model: 'gpt-4',
system: 'Render cards to show information to the user.',
})
// messages[1].ui will contain <MyCard title="..." content="..." />
When to use: Build browser agents, dynamic dashboards, form builders, or any UI that should adapt based on LLM decisions.
Reference: See core-concepts.md for detailed component exposure patterns.
2. Client-Side Tool Calling
Allow the LLM to call client-side functions to access app state or perform actions.
import { useChat, useTool } from '@hashbrownai/react'
const getUserTool = useTool({
name: 'getUser',
description: 'Get current user information',
handler: async () => ({ name: 'Jane Doe' }),
deps: [],
})
const { messages } = useChat({
tools: [getUserTool],
model: 'gpt-4',
})
When to use: Let the LLM access application state, trigger actions, or interact with external APIs.
Reference: See [core-concepts.md](references/
Установить hashbrown-dev в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл hashbrown-dev?
Building LLM-powered React applications with the Hashbrown library. Use when the user asks to (1) Build generative UI where LLMs render React components, (2) Add client-side tool calling for LLM-app interaction, (3) Stream LLM responses in React applications, (4) Execute LLM-generated JavaScript safely in a sandbox, (5) Build browser agents or AI-powered UIs with hashbrown, (6) Control React UI from LLM output, (7) Integrate with LLM providers like OpenAI, Anthropic, Google, Azure, Bedrock, or Ollama in React apps, (8) Create chatbots, form builders, predictive text inputs, or multi-threaded conversations with LLMs, (9) Transform natural language to structured data in TypeScript React applications.
Как установить скилл hashbrown-dev?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hashbrown-dev запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic