How flowiseai/flowiseembedreact works
Project type and purpose
• This is a front‑end React component library (“flowise-embed-react”) that provides two embeddable chat widgets (FullPageChat and BubbleChat).
• It wraps the underlying core embed logic (from “flowise-embed”) and exposes a simple React API for end‑users to embed a Flowise chatbot on their website.
File structure
• Top‑level config files
• package.json / react‑library.json / base.json – npm publishing settings, peerDependencies, module/ESM/CJS outputs.
• rollup.config.js – bundler configuration to produce UMD/ESM bundles.
• tsconfig.json – TypeScript compiler settings.
• .eslintrc.cjs, .gitignore, .npmignore – linting, VCS and npm packaging ignores.
• src directory
• src/index.ts – entry point that re‑exports public components.
• src/FullPageChat.tsx – React component for a full‑screen chat UI.
• src/BubbleChat.tsx – React component for a popup/bubble chat UI.
README for additional insights
• Usage examples show that the components accept two required props: chatflowid and apiHost.
• The library itself does not include the backend; it relies on the user’s Flowise API server.