npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

next-workflow-builder

v0.7.7

Published

Next.js plugin for Workflow Builder

Downloads

2,277

Readme

next-workflow-builder

A Next.js plugin for building visual workflow automation platforms with drag-and-drop editing, code generation, and AI-powered automation.

Full documentation available at next-workflow-builder.vercel.app

Features

  • Visual drag-and-drop workflow editor powered by React Flow
  • Code generation — export workflows as TypeScript
  • AI-powered workflow creation from natural language
  • Real-time execution tracking and logs
  • Extensible plugin system for third-party integrations
  • Built-in authentication via Better Auth
  • Dark / light / system theme support

Requirements

  • Node.js >= 22
  • Next.js >= 16
  • React >= 19
  • PostgreSQL database

Quick Start

1. Install

npm install next-workflow-builder
# or
pnpm add next-workflow-builder

2. Configure Next.js

// next.config.ts
import type { NextConfig } from "next";
import nextWorkflowBuilder from "next-workflow-builder";

const withNextWorkflowBuilder = nextWorkflowBuilder({
  // debug: true,
  // authOptions: { ... }
});

export default withNextWorkflowBuilder({
  // Regular Next.js options
} satisfies NextConfig);

3. Create the API route

// app/api/[[...slug]]/route.ts
export { GET, POST, PUT, PATCH, DELETE, OPTIONS } from "next-workflow-builder/api";

4. Add the layout

// app/layout.tsx
import { Layout } from "next-workflow-builder/client";
import "next-workflow-builder/styles.css";

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="en" suppressHydrationWarning>
      <body>
        <Layout>{children}</Layout>
      </body>
    </html>
  );
}

5. Add the workflow pages

// app/[[...slug]]/page.tsx
export { WorkflowPage as default } from "next-workflow-builder/client";
export { generateWorkflowMetadata as generateMetadata } from "next-workflow-builder/server";

6. Set environment variables

Create a .env.local file:

DATABASE_URL=postgres://user:password@localhost:5432/workflow
BETTER_AUTH_SECRET=your-secret-key
BETTER_AUTH_URL=http://localhost:3000
INTEGRATION_ENCRYPTION_KEY=your-encryption-key

| Variable | Required | Description | | --- | --- | --- | | DATABASE_URL | Yes | PostgreSQL connection string | | BETTER_AUTH_SECRET | Yes | Secret key for session encryption | | BETTER_AUTH_URL | Yes | Base URL for auth callbacks | | INTEGRATION_ENCRYPTION_KEY | Yes | Key to encrypt stored credentials |

7. Run

pnpm dev

Open http://localhost:3000 to see the workflow builder.

Package Exports

| Import path | Description | | --- | --- | | next-workflow-builder | Next.js plugin — nextWorkflowBuilder() | | next-workflow-builder/client | React components — Layout, WorkflowPage, WorkflowEditor | | next-workflow-builder/server | Server utilities — auth, db, credentials, logging | | next-workflow-builder/api | HTTP handlers — GET, POST, PUT, PATCH, DELETE, OPTIONS | | next-workflow-builder/plugins | Plugin registry — registerIntegration(), query helpers | | next-workflow-builder/server/db/schema | Drizzle ORM schema exports | | next-workflow-builder/styles.css | Required CSS styles |

Plugin System

Extend the workflow builder with custom integrations. Each plugin can provide triggers, actions, credentials configuration, and custom UI components.

# Scaffold a new plugin
npx nwb create-plugin

# Discover and register plugins
npx nwb discover-plugins

See the Plugins documentation for details.

CLI Commands

| Command | Description | | --- | --- | | nwb create-plugin | Scaffold a new plugin interactively | | nwb discover-plugins | Scan and register all plugins | | nwb migrate-prod | Run database migrations for production |

Documentation

For full documentation including configuration, authentication, database setup, deployment, and plugin development:

https://next-workflow-builder.vercel.app

Changelog

Full Changelog file

License

Apache-2.0