Plugins
Extend Flowlib with authentication, access control, webhooks, version control, and more.
Plugins extend Flowlib with additional capabilities — database tables, API endpoints, flow execution hooks, and frontend components. Pass them in the plugins config array:
import { auth } from '@flowlib/user-auth';
import { rbac } from '@flowlib/rbac';
const router = await createFlowlibRouter({
// ...
plugins: [
auth({
/* Better Auth options */
}),
rbac(),
],
});After adding plugins with database tables, regenerate and migrate:
npx flowlib-cli generate
npx flowlib-cli migrate --pushOfficial plugins
Authentication
User login, sessions, and admin-only user management via Better Auth.
Access Control
Flow-level RBAC — control who can view, edit, and run each flow.
Webhooks
Trigger flows from external HTTP requests with unique webhook URLs.
Version Control
Flow export/import and version management.
MCP (Model Context Protocol)
Let AI assistants build, run, and debug flows via Claude, Copilot, or Cursor.
Build your own
Plugins are plain objects with an id. Add hooks, actions, database tables, API endpoints, and frontend components — only what you need. See Build Your Own for the full guide.