Skip to Content

next-workflow-builder

DevKit AI Builder Template DocumentationMarketplace
CTRL K
Demo
CTRL K
  • DevKit 
  • AI Builder Template 
    • Introduction
    • Getting Started
    • Configuration
    • Plugins
      • Overview
      • HTTP Request
      • Condition
      • Loop
      • Merge
      • Database Query
      • Run Workflow
      • Run Workflows in Sequence
      • Switch
    • Creating Plugins
    • API Reference
    • CLI Reference
    • Components
    • Database
    • Authentication
    • Deployment
    • Architecture
    • Contributing
    • MCP Server
  • Marketplace
  • Introduction
  • Getting Started
  • Configuration
  • Plugins
    • Overview
    • HTTP Request
    • Condition
    • Loop
    • Merge
    • Database Query
    • Run Workflow
    • Run Workflows in Sequence
    • Switch
  • Creating Plugins
  • API Reference
  • CLI Reference
  • Components
  • Database
  • Authentication
  • Deployment
  • Architecture
  • Contributing
  • MCP Server

On This Page

  • Monorepo setup
  • Getting started
  • Development workflow
  • Building the package
  • Running the demo app
  • Running docs
  • Running tests
  • Package development guidelines
  • Plugin development
  • Docs development
  • Submitting changes
Question? Give us feedback Edit this page 
DocumentationContributing

Contributing

Monorepo setup

The project is a pnpm monorepo managed with Turborepo:

next-workflow-builder/ ├── packages/ │ └── next-workflow-builder/ # The published npm package ├── examples/ │ └── demo/ # Full demo app with 14+ plugins ├── docs/ # Documentation (Nextra) ├── pnpm-workspace.yaml └── turbo.json

Getting started

# Clone the repository git clone <repo-url> cd next-workflow-builder # Install dependencies pnpm install # Build the package pnpm build:nwb # Run the example app pnpm dev:example

Development workflow

Building the package

pnpm build:nwb

This runs TypeScript compilation, fixes ESM imports, and copies static assets.

Running the demo app

pnpm dev:example

The demo app (examples/demo/) uses workspace:* to link the local package, so changes to the package are reflected after rebuilding.

Running docs

pnpm dev:docs

Running tests

pnpm test

Package development guidelines

  • Only modify code in packages/next-workflow-builder/
  • The examples/demo/ app serves as a full integration test
  • Run nwb discover-plugins in the demo directory after changing plugin-related code

Plugin development

When creating community plugins:

  • Follow the plugin structure documented in Creating Plugins
  • Prefer fetch over SDK dependencies to reduce supply chain attack surface
  • Always import "server-only" in step files
  • Use withStepLogging for execution tracking
  • Include a connection test function
  • Test with the example app before publishing

Docs development

The docs use Nextra  (v4) with the docs theme. Pages are markdown files under docs/src/app/docs/.

To add a new page:

  1. Create docs/src/app/docs/{page-name}/page.md
  2. Add an entry in docs/src/app/_meta.global.tsx under the docs.items object
  3. Write your content in markdown

Submitting changes

  1. Create a branch from main
  2. Make your changes
  3. Ensure the package builds: pnpm build:nwb
  4. Test with the example app
  5. Open a pull request against main
Last updated on March 12, 2026
ArchitectureMCP Server

© 2026 All rights reserved.

Product by David Sanchez