XD2Sketch/react-chat-stream
⚛️ React Hook to add 🤖 ChatGPT-like word-by-word event streams
This is a React Hook for developers building conversational AI applications. It helps you display bot responses word-by-word, similar to ChatGPT, directly from your own backend API. You provide the API endpoint, and it handles rendering the streamed text in your React frontend, giving users a smooth, interactive chat experience.
No commits in the last 6 months.
Use this if you are a frontend developer building a custom chat interface in React and want to stream responses from your own backend API with a word-by-word display.
Not ideal if you are looking for a complete AI SDK that handles both backend AI model integration and frontend display, or if your backend cannot provide responses as a `text/event-stream`.
Stars
75
Forks
13
Language
TypeScript
License
MIT
Category
Last pushed
Apr 08, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/XD2Sketch/react-chat-stream"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
onshinpei/ds-markdown
react markdown typing animation component (react markdown 打字动画组件)
elebitzero/openai-react-chat
Chat webapp frontend to OpenAI's API with similar features to ChatGPT. Written in React,...
hillis/gpt-4-chat-ui
This project is a simple React-based chat interface that uses Next.js and communicates with...
henrycunh/golem
✨ A beautiful UI for ChatGPT and other conversational models
frontend-engineering/chatgpt-webapp-fullstack
A fullstack chat webapp based on ChatGPT/BingAI/AndMore...