AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
브라우저를 구동하는 에이전트를 구축하기 위한 프레임워크로, Angular와 React용
Hashbrown is a framework for building agents that run the browser. Built for Angular and React.
개발 도구TypeScript · C#GitHub @liveloveapp직접 설치운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
설치형 프로젝트는 배포 도메인 없이도 확인할 수 있습니다. 개인 저장소는 GitHub 로그인으로, 조직 저장소는 위의 저장소 확인 파일로 직접 확인해 주세요.
메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗What is Hashbrown | Installation | How it works | Features | Connect a model | See it in a real app | Contributing
Hashbrown is a headless TypeScript framework for AI chat and agents in React and Angular. It brings generative UI from your own components, client-side tools, and streaming structured output from any model. Hashbrown ships no chat UI of its own: you keep your components and your design system.
Hashbrown has three kinds of packages:
@hashbrownai/core: the framework-agnostic primitives, including the Skillet schema language and the streaming JSON parser@hashbrownai/<angular|react>: resources, hooks, and components for your framework@hashbrownai/<provider>: a Node adapter that streams from a model provider's SDKFor Angular and OpenAI:
npm install @hashbrownai/{core,angular,openai}
For React and OpenAI:
npm install @hashbrownai/{core,react,openai}
The same API in React and Angular.
The model only renders components you register. Skillet validates their props.
Angular:
const components = [
exposeComponent(FlightCardComponent, {
name: 'FlightCard',
description: 'One aircraft on the map, with live altitude and speed.',
input: {
note: s.streaming.string('A sentence or two about this flight'),
hex: s.string('The aircraft hex code from a tool result.'),
},
children: false,
}),
];
React:
const components = [
exposeComponent(FlightCard, {
name: 'FlightCard',
description: 'One aircraft on the map, with live altitude and speed.',
props: {
note: s.streaming.string('A sentence or two about this flight'),
hex: s.string('The aircraft hex code from a tool result.'),
},
children: false,
}),
];
Tools run in the browser, with your app's state and services.
Angular:
chat = uiChatResource({
system: 'Help users understand the planes on the map.',
components,
tools: [createTool(this.atcTools.findAircraft)],
});
React:
export function Assistant() {
const store = useAtcStore();
const atcTools = useMemo(() => createBrowserAtcTools(store), [store]);
const findAircraft = useTool({ ...atcTools.findAircraft, deps: [atcTools] });
const chat = useUiChat({
system: 'Help users understand the planes on the map.',
components,
tools: [findAircraft],
});
// Render the stream (step 3).
}
Components render while the response streams in.
Angular:
@for (message of chat.value(); track $index) {
<hb-render-message [message]="message" />
}
React, at the end of Assistant:
return chat.messages.map((message) =>
message.role === 'assistant' ? message.ui : message.content,
);
Before you use Hashbrown's hooks or resources, point them at your server.
Angular:
export const appConfig: ApplicationConfig = {
providers: [provideHashbrown({ baseUrl: '/api/run' })],
};
React:
<HashbrownProvider url="/api/run">{children}</HashbrownProvider>
| Feature | What it does |
|---|---|
| Generative UI | The model composes your components. Bundle them into UI kits. |
| Client-side tools | The model calls functions in your app. Connect MCP servers too. |
| Structured output | Skillet schemas turn model output into typed JSON. |
| Streaming | Strings, arrays, and objects parse as they arrive. Magic Text streams Markdown. |
| Any model | OpenAI, Anthropic, Gemini, Bedrock, Azure, Ollama, or a model in the browser. |
| Code execution | Run model-written JavaScript in a sandbox. |
Every feature is documented for both frameworks: Angular docs | React docs
Your server keeps the API key. A Hashbrown adapter maps an AG-UI run to your provider's SDK and streams AG-UI events back to the browser.
@hashbrownai/openai@hashbrownai/anthropic@hashbrownai/google@hashbrownai/bedrock@hashbrownai/azure@hashbrownai/ollamaHashbrown's UI packages post to /run by default. You can change the URL as
long as the server and the UI use the same one. An Express endpoint with the
OpenAI adapter:
import type { RunAgentInput } from '@ag-ui/core';
import { EventEncoder } from '@ag-ui/encoder';
import { HashbrownOpenAI } from '@hashbrownai/openai';
app.post('/run', async (req, res) => {
const abortController = new AbortController();
req.once('aborted', () => abortController.abort());
res.once('close', () => abortController.abort());
const stream = HashbrownOpenAI.stream.text({
apiKey: process.env.OPENAI_API_KEY!,
model: process.env.OPENAI_MODEL ?? 'gpt-5-nano',
input: req.body as RunAgentInput,
signal: abortController.signal,
});
const encoder = new EventEncoder();
res.header('Cache-Control', 'no-cache, no-store, must-revalidate');
res.header('Content-Type', encoder.getContentType());
res.header('Connection', 'keep-alive');
res.flushHeaders();
for await (const event of stream) {
res.write(encoder.encodeSSE(event));
}
if (!res.writableEnded) {
res.end();
}
});
Not every model handles every feature. Some older, smaller models struggle with generative UI and tool calling.
atc is a live map of airline traffic over the Pacific Northwest with an assistant that answers in your own components: flight cards, arrivals boards and aircraft comparisons. It is built twice, in Angular and React, from one framework-free core. The aircraft data is real, from adsb.lol.
Try the app or run it locally. Put
OPENAI_API_KEY=... in the repository's .env, then run each in its own
terminal:
nvm use
npm ci
npx nx serve atc-server
npx nx serve atc-react
Open http://127.0.0.1:4342/react/. Use atc-angular and port 4341 for the
Angular app. See the example README for the
architecture and tests.
Hashbrown is headless. threadplane is the full agent UI for React and Angular, built on Hashbrown: threads, approvals, and tool progress. Free and MIT, with enterprise support from the team behind Hashbrown.
Hashbrown is led by Brian Love. We are always eagerly looking for contributors and collaborators, so if you'd like to help shape Hashbrown, we'd love to hear from you.
Hashbrown is a community-driven project. Read our contributing guidelines on how to get involved.
MIT © LiveLoveApp, LLC