neuron-explorer
Steering-first neuron explorer for Qwen3.5-4B: push every MLP neuron, keep every rollout, browse the results
Hashbrown is a framework for building agents that run the browser. Built for Angular and React.
Developer toolsTypeScript · C#GitHub @liveloveappSelf-installOwner unconfirmed
Paste into Claude or ChatGPT for installation instructions suited to your environment.
Have you tried it? One tap is enough. No sign-in needed.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Installable projects can be verified without a deployment domain. Use GitHub sign-in for a personal repository, or the repository verification file above for an organization repository.
Ask about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full 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