Package Exports
- @flowlib/ui
- @flowlib/ui/demo
- @flowlib/ui/flow-canvas
- @flowlib/ui/package.json
- @flowlib/ui/styles
Readme
@flowlib/ui
React flow editor and dashboard for Flowlib.
Docs ยท Quick Start
A single React component that gives you a complete workflow editor, execution viewer, credential manager, and AI assistant. Built with React Flow, Tailwind CSS, and Radix UI.
Install
npx flowlib-cli initOr install manually:
npm install @flowlib/uiUsage
import { Flowlib } from '@flowlib/ui';
import '@flowlib/ui/styles';
function App() {
return <Flowlib apiBaseUrl="http://localhost:3000/flowlib" />;
}This renders the full Flowlib UI โ flow list, drag-and-drop editor, execution monitoring, and credential management.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
apiBaseUrl |
string |
http://localhost:3000/flowlib |
Backend API URL |
basePath |
string |
/flowlib |
Base path for routing |
plugins |
FlowlibFrontendPlugin[] |
[] |
Frontend plugins (RBAC, etc.) |
reactQueryClient |
QueryClient |
โ | Bring your own React Query client |
CSS Scoping
All styles are scoped under a .flowlib CSS class. Flowlib won't interfere with your app's existing styles.
FlowlibShell
For plugin UIs that render outside the main app (e.g. sign-in pages), use FlowlibShell to get just the CSS scope without routing or layout:
import { FlowlibShell } from '@flowlib/ui';
import '@flowlib/ui/styles';
<FlowlibShell theme="dark">
<YourCustomUI />
</FlowlibShell>;