Client-only demo app for AI-assisted docs navigation.
- React + TanStack Start in client-only SPA mode (no SSR)
- TanStack Router for routing
- TanStack AI +
ClientToolactions for command-palette navigation - shadcn/ui-style primitives for layout and styling
- No backend
/— landing page/docs— docs index + onlooker model-assignment instructions/docs/components/:slug— per-component docs page
Included component slugs:
accordionalertalert-dialogavatarbadgebuttoncalendarcardcheckboxdialogdropdown-menuforminputlabelpopoverprogressradio-groupselectseparatortabs
- Open from any page with Cmd/Ctrl + K
- Input-only by default (no static command list)
- Uses AI tool calls:
navigate_to({ route })search_docs({ query })
search_docsreturns top 3 fuzzy matches- If multiple matches exist, a disambiguation list appears in the palette
- Selecting a disambiguation result triggers navigation and shows toast feedback
- If nothing matches, the app shows:
Hm, doesn’t look like we have that one
The app is client-only, so model assignment happens in-browser.
- Click Model settings in the top navigation.
- In Model, pick a preset or type a model ID.
- In Endpoint, provide your provider base URL (OpenAI default is prefilled).
- Paste an API key in API key.
- Click Assign model.
- Use Cmd/Ctrl + K and type natural-language doc requests.
Model settings are stored in local browser storage on the running device.
pnpm install
pnpm run devpnpm run lint
pnpm run format:check
pnpm run typecheck
pnpm run build