@anakin824/prdg-chat-ui
v0.3.6
Published
Embeddable chat UI for React (provider, inbox, entity thread, composer) — Prodigee / prdg-chat
Downloads
1,201
Maintainers
Readme
@anakin824/prdg-chat-ui
Embeddable chat UI (React) for Prodigee / prdg-chat: provider, inbox sidebar, main column, entity thread + composer, and hooks.
Install
npm install @anakin824/prdg-chat-uiPeer dependencies (install in your app): react, react-dom, @tanstack/react-query, date-fns, framer-motion, wavesurfer.js, yet-another-react-lightbox, react-intersection-observer. Optional: nats.ws for realtime.
Styles
Import the bundled CSS once near your app root (FinPod-style subpath export):
import "@anakin824/prdg-chat-ui/styles";Library build (publish)
Same pattern as FinPod embedding: npm run build:lib runs tsup and writes dist/ (index.js, index.mjs, index.d.ts, index.css). prepublishOnly runs that automatically before npm publish.
Next.js embedding
See NEXTJS-INTEGRATION.md for App Router setup, ChatProvider, StandaloneChatPage, and entity chat.
Auth / publish to npm
See NPM-TOKEN-SETUP.md for scoped registry (@anakin824) and token-based login.
Develop this repo
npm run dev # Next.js app
npm run build:lib
npm run build # Next production build