Flowlib

Flowlib

Drop-in workflow orchestration for any Node.js app.

Flowlib is an open-source workflow orchestration library that you mount directly into your existing Node.js application. Visual flow editor, AI agents, 190+ integrations, and batch processing — all as npm packages, not a separate platform.

Get started in one command

npx flowlib-cli init

The CLI detects your framework, installs the right packages, creates your config, and sets up the database. Or see the framework-specific code below.

Quick look

index.ts
import express from 'express';
import { createFlowlibRouter } from '@flowlib/express';

const app = express();
const router = await createFlowlibRouter({
  database: { type: 'sqlite', connectionString: 'file:./dev.db' },
  encryptionKey: process.env.FLOWLIB_ENCRYPTION_KEY,
});
app.use('/flowlib', router);
app.listen(3000);
app.module.ts
import { Module } from '@nestjs/common';
import { FlowlibModule } from '@flowlib/nestjs';

@Module({
  imports: [
    FlowlibModule.forRoot({
      database: { type: 'sqlite', connectionString: 'file:./dev.db' },
      encryptionKey: process.env.FLOWLIB_ENCRYPTION_KEY,
    }),
  ],
})
export class AppModule {}
app/api/flowlib/[...flowlib]/route.ts
import { createFlowlibHandler } from '@flowlib/nextjs';

const handler = createFlowlibHandler({
  database: { type: 'sqlite', connectionString: 'file:./dev.db' },
  encryptionKey: process.env.FLOWLIB_ENCRYPTION_KEY,
});

export const GET = handler.GET;
export const POST = handler.POST;
export const PATCH = handler.PATCH;
export const PUT = handler.PUT;
export const DELETE = handler.DELETE;

That's it. You have a visual flow editor and a full REST API for managing and executing workflows.

Start here

On this page