feat(examples): add nuxt-chat example app#609
Open
bensabic wants to merge 5 commits into
Open
Conversation
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.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/chatfor the browser UI, with H3-to-Fetch conversion that preserves the raw request body for signature verification. Bot handlers are ported fromnextjs-chat— interactive cards, modals, slash commands, transcripts, reactions, and AI streaming — without the workflow demos.The
/chatpage is a client-only Vue UI using@chat-adapter/web/vueand 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 4app/directory, and biome globals for Nitro auto-imports.