Complete, tested assistant-ui apps for common goals: connect your own backend, save chat history in your database, render tool calls as components, and ask before running a tool.
A recipe starts from something you want to build, not from an API. Each one is a small, complete app in the repository's examples folder that CI builds, typechecks and tests against a scripted model, and the page shows its code as it is in the repository. Read the first lines to see whether it fits, then hand the page to your coding agent: every recipe is also served as Markdown (add .md to its URL) and listed in llms.txt.
Stream replies from an API you already have, in its own request format, with LocalRuntime and one ChatModelAdapter.
Threads and messages in SQLite, with a thread list sidebar, titles, archive and delete.
Show a tool result as your own componentRender a server tool's call and result as a React component, such as a weather card.
Ask before running a toolLet the agent run safe tools on its own and wait for the user to allow risky ones.
Every recipe builds on an app made with npx assistant-ui@latest create. The page shows the files that carry the recipe; the example folder also has its package.json, tests and configuration. To run one from a clone of the repository, see its Run it section.