Skip to content

feat(examples): add nuxt-chat example app#609

Open
bensabic wants to merge 5 commits into
mainfrom
docs/nuxt-example
Open

feat(examples): add nuxt-chat example app#609
bensabic wants to merge 5 commits into
mainfrom
docs/nuxt-example

Conversation

@bensabic

Copy link
Copy Markdown
Contributor

Adds examples/nuxt-chat, a Nuxt 4 reference app for Chat SDK scoped to the Slack and web adapters.

The Nitro server exposes /api/webhooks/{platform} for Slack events and /api/chat for the browser UI, with H3-to-Fetch conversion that preserves the raw request body for signature verification. Bot handlers are ported from nextjs-chat — interactive cards, modals, slash commands, transcripts, reactions, and AI streaming — without the workflow demos.

The /chat page is a client-only Vue UI using @chat-adapter/web/vue and the AI SDK. A Slack app manifest ships with the scopes and events needed for pins, reactions, channel joins, and interactivity.

Monorepo plumbing covers changeset ignore, CI build exclusion, AGENTS.md, knip entry paths for the Nuxt 4 app/ directory, and biome globals for Nitro auto-imports.

bensabic added 5 commits June 11, 2026 22:05
Add the Nuxt 4 workspace package with TypeScript strict mode, Chat SDK JSX
transpile settings, and a minimal environment template for Slack, Redis, and
the AI Gateway.
Register Slack and web adapters from environment variables, convert H3 events
to Fetch requests without reading the body, and expose webhook and web chat
API endpoints backed by the shared Chat SDK bot instance.
Port the nextjs-chat demo handlers with interactive cards, modals, slash
commands, transcripts, and AI streaming. Include a Slack app manifest with
the scopes and events needed for pins, reactions, and channel joins.
Add a home page documenting endpoints and configuration plus a client-only
chat page that streams responses through the web adapter and AI SDK Vue hook.
Ignore the package in changesets, skip it in CI turbo builds, list it in
AGENTS.md, and update knip, biome, and the lockfile for Nuxt dependencies.
@bensabic bensabic requested review from a team and cramforce as code owners June 11, 2026 12:08
@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat Ready Ready Preview, Comment, Open in v0 Jun 11, 2026 12:10pm
chat-sdk-nextjs-chat Ready Ready Preview, Comment, Open in v0 Jun 11, 2026 12:10pm

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​h3@​2.0.1-rc.2299100879180
Addednpm/​vue-tsc@​3.3.41001009297100
Addednpm/​nuxt@​4.3.1989710096100

View full report

Comment thread examples/nuxt-chat/server/lib/web-request.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant