@flowlib/ui
v0.0.2
Published
Complete React components and routes for Flowlib workflow management
Maintainers
Readme
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>;