Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Welcome to the assistant-ui ink web demo 👋
This app runs the @assistant-ui/react-ink terminal chat in the browser against a real LLM. It powers the live demo embedded at assistant-ui.com/ink and is deployed at assistant-ui-ink.vercel.app.
Get started
-
Install dependencies
pnpm install -
Start the docs app, which serves the chat endpoint on localhost:3000
pnpm --filter @assistant-ui/docs dev -
Start the app
pnpm dev
The terminal opens on localhost:8081, and the docs app embeds this URL on its /ink page in development.
How it works
Ink has no official web target, so this app renders the real @assistant-ui/react-ink component tree through ink-web's browser build of Ink, bridged to a wterm terminal. wterm renders to the DOM, so text selection, copy, find, and screen readers work natively.
Chat requests go to the assistant-ui docs site's /api/chat, the same pattern as the React Native demo at assistant-ui-expo.vercel.app. The app obtains a signed anonymous session when the backend supports it and holds no API keys; custom backends without the session route continue to receive normal chat requests.
Learn more
- assistant-ui ink documentation: primitives, hooks, and adapters for terminal UIs.
- with-react-ink: the real terminal version of this example. Start there if you are building an Ink app.