@iamshrikantjagtap/chat-ui
v0.1.0
Published
Minimal React chat window UI for `ai-chat-kit` backends (streaming SSE).
Readme
@iamshrikantjagtap/chat-ui
Minimal React chat window UI for ai-chat-kit backends (streaming SSE).
Install
npm i @iamshrikantjagtap/chat-uiPeer dependencies
react(>= 18)react-dom(>= 18)
Usage (Vite + React)
import { ChatWindow } from "@iamshrikantjagtap/chat-ui";
export default function App() {
return (
<div style={{ padding: 24 }}>
<ChatWindow
userId="demo-user"
endpoint="http://localhost:8000/chat/stream"
showCode
showSpecification
/>
</div>
);
}Local checks
cd Frontend/chat-ui
npm run pack:checkPublish
cd Frontend/chat-ui
npm publish --access public --otp=123456If your npm account (or org) enforces 2FA for publishing, you must pass a current one-time password via --otp.
Alternatively, use a granular/automation access token with “bypass 2FA” enabled for publishing.
