v0.1.0

Build Dynamic Forms
With JSON Configuration

A powerful, Notion-like nested block form builder for React. Build dynamic, multi-step forms with validation, conditional logic, and API integrations using declarative JSON.

Why Form Builder?

🧱

Nested Block Architecture

Compose forms like Notion - blocks within blocks, infinitely nestable

📝

JSON-Driven

Define entire forms using declarative JSON configuration

🔄

Dynamic Forms

Multi-step forms with conditional navigation and validation

Built-in Validation

Field-level validation with custom rules and error messages

🎯

Actions System

Handle form events with composable actions and triggers

🌐

API Integration

Built-in service calling and response handling

🔒

Enterprise Security

Encrypted secrets for tokens, passwords, and sensitive data

🔌

Extensible

Create custom blocks with simple component API

📦

TypeScript

Full type safety and autocomplete included

Quick Example

import FormBuilderV3 from '@seanblock/form-builder';

const config = {
  id: "contact-form",
  type: "form",
  initialPage: "page1",
  pages: {
    page1: {
      id: "page1",
      blockType: "PageBlock",
      blocks: [
        {
          id: "name",
          blockType: "InputBlock",
          metadata: {
            label: "Your Name",
            contextPath: "user.name"
          }
        }
      ]
    }
  }
};

export default function MyForm() {
  return <FormBuilderV3 config={config} context={{}} />;
}
Built with@seanblock/form-builderMIT License