Flowlib
Plugins

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 --push

Official plugins

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.

On this page