Hashbrown
AI chat and agents for your React or Angular app.
Hashbrown is a headless TypeScript framework. The model renders your
components and calls your tools, in the browser, with any provider.
@hashbrownai/core holds the framework-agnostic primitives that Hashbrown's React and Angular packages build on: the Skillet schema language, the streaming JSON parser, and the chat state that talks to your server. Install it next to a framework package and a model adapter.
Features
- 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.
Getting Started with Angular
npm install @hashbrownai/{core,angular,openai}
Point Hashbrown at your server:
export const appConfig: ApplicationConfig = {
providers: [provideHashbrown({ baseUrl: '/run' })],
};
Then follow the Angular quick start.
Getting Started with React
npm install @hashbrownai/{core,react,openai}
Point Hashbrown at your server:
<HashbrownProvider url="/run">{children}</HashbrownProvider>
Then follow the React quick start.
Connect a Model
Your server keeps the API key and streams from a Hashbrown adapter:
- OpenAI:
@hashbrownai/openai - Anthropic:
@hashbrownai/anthropic - Google Gemini:
@hashbrownai/google - Amazon Bedrock:
@hashbrownai/bedrock - Azure OpenAI:
@hashbrownai/azure - Ollama:
@hashbrownai/ollama - Your own backend
Need a Complete Chat UI?
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.
Stuck? Ask Brian at https://hashbrown.dev/unstuck.