Chat
A ChatGPT-level AI chat surface: a streaming thread with edit, regenerate and response versions, attachments, a model picker, reasoning, sources, tool cards and human-in-the-loop approvals, agent activity for Mastra and eve turns, a canvas beside the chat for documents a tool streams, a sidebar with pinned and dated groups, share links and feedback — on a two-line Route Handler that binds @intelligo-dev/chat's transport (auth, rate limit, feature gate, persistence, the execution boundary) to consumer-owned config (lib/chat-server-config.ts).
Run it inside an app made by intelligo create. Anywhere else, name the registry and install the base first.
A ChatGPT-level AI chat surface: a streaming thread with edit, regenerate and response versions, attachments, a model picker, reasoning, sources, tool cards and human-in-the-loop approvals, agent activity for Mastra and eve turns, a canvas beside the chat for documents a tool streams, a sidebar with pinned and dated groups, share links and feedback — on a two-line Route Handler that binds @intelligo-dev/chat's transport (auth, rate limit, feature gate, persistence, the execution boundary) to consumer-owned config (lib/chat-server-config.ts). Every tool renders through one entry in lib/chat-renderers.tsx, inline and in the canvas. Ships with a deterministic stub model so a clean install streams with no API keys. The config imports lib/intelligo.ts (the composition root) and lib/plans.ts, which are provided by the `intelligo create` scaffold, not by any registry item - in a hand-rolled app, create both before installing (see the CLI's app-scaffold templates).
- lib/chat-model.ts
- lib/chat-models.ts
- lib/chat-renderers.tsx
- lib/chat-canvas-config.tsx
- lib/chat-config.tsx
- lib/chat-server-config.ts
messages/en/chat.json
Everything else is used verbatim; a deployment varies through these files and translations.How seams work →
alert, alert-dialog, attachment, button, dialog, dropdown-menu, input, item, sheet, skeleton, spinner, textarea, tooltip, ai-agent-activity, ai-approval-card, ai-artifact, ai-branch, ai-citations, ai-code-block, ai-composer-menu, ai-markdown, ai-message, ai-message-bubble, ai-message-scroller, ai-prompt-input, ai-reasoning, ai-shimmer-text, ai-speech-input, ai-suggestion, ai-todo-list, ai-tool-approval, ai-tool-result, copy-button, document-viewer, status-badge, ai-motion, ai-sidebar, ai-file-diff, ai-image-generation, ai-reasoning-text, ai-streaming-response, ai-agent-progress
ai@^7.0.103 · @ai-sdk/react@^4.0.106 · streamdown · lucide-react · sonner · server-only · @intelligo-dev/auth · @intelligo-dev/billing · @intelligo-dev/chat · @intelligo-dev/core · @intelligo-dev/next · next-intl · next-themes · prosemirror-state · prosemirror-view · prosemirror-markdown · prosemirror-example-setup · prosemirror-inputrules · codemirror · @codemirror/state · @codemirror/view · @codemirror/lang-javascript · @codemirror/lang-python · @codemirror/theme-one-dark · react-data-grid@7.0.0-beta.61 · papaparse · @types/papaparse · motion
- app/[locale]/(app)/chat/page.tsx
- app/[locale]/(app)/chat/[id]/page.tsx
- app/[locale]/(app)/chat/[id]/loading.tsx
- app/[locale]/(app)/chat/[id]/error.tsx
- components/chat/chat-workspace.tsx
- components/chat/chat-thread.tsx
- components/chat/chat-canvas.tsx
- components/chat/canvas/text-editor.tsx
- components/chat/canvas/code-editor.tsx
- components/chat/canvas/sheet-editor.tsx
- components/chat/chat-empty.tsx
- components/chat/chat-error-strip.tsx
- components/chat/message-list.tsx
- components/chat/message.tsx
- components/chat/message-actions.tsx
- components/chat/data-parts.tsx
- components/chat/agent-activity.tsx
- components/chat/tool-activity.tsx
- components/chat/artifact-card.tsx
- components/chat/chat-input.tsx
- components/chat/conversation-header.tsx
- components/chat/chat-history.tsx
- components/chat/chat-history-nav.tsx
- components/chat/share-dialog.tsx
- components/chat/credit-status-banner.tsx
- hooks/use-chat-versions.ts
- hooks/use-chat-draft.ts
- hooks/use-chat-shortcuts.ts
- hooks/use-composer-menu.ts
- app/api/chat/route.ts
- actions/chat.ts
- lib/chat-model.ts
- lib/chat-models.ts
- lib/chat-renderers.tsx
- lib/chat-canvas-config.tsx
- lib/message-parts.ts
- lib/chat-config.tsx
- lib/chat-server-config.ts
- lib/chat-quota.ts
- messages/en/chat.json
Ready to try it? Three commands and the app runs against a stub model.