In this repository,
Why not make the core components of chatbot to a pure React component, and publish it as an npm package?
This repository is next.js, the pure react project is hard to Implement it.
if make the core components to npm package, then react and next.js project all can use it.
@songispm I don’t think Vercel publishes many component packages; the things I’ve seen them publish are actual functionality and logic so that the UI is up to you.
Have you seen the Vercel AI SDK?
It makes it super easy to do AI stuff in Next.js and React. That’s what the repo you linked to uses for AI functionality.
This request aged well — Vercel just released exactly what you described: the Chat SDK, installable as npm i chat (yes, really).
It’s an open-source TypeScript library for building chat bots across Slack, Teams, Discord, GitHub, Linear, and Google Chat from a single codebase. It integrates natively with the AI SDK for streaming responses and handles all the platform-specific plumbing.