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

@thinkitive/form-builder

v1.0.21

Published

A drag-and-drop JSON Forms Builder for React

Readme

Thinkitive Form Builder

About

Thinkitive Form Builder is a powerful, extensible React library for building dynamic, drag-and-drop forms using JSON Forms and React DnD. It allows you to visually create forms, edit field properties, and generate JSON Schema and UI Schema for use in any JSON Forms-compatible renderer.

  • JSON Forms: Provides the core utilities for managing and rendering JSON Schema-based forms. Highly customizable and framework-agnostic. Learn more
  • React DnD: Enables robust drag-and-drop interactions in React. Learn more

Features

  • Drag-and-drop form builder UI
  • Edit field properties (label, required, etc.) in a dedicated panel
  • Save field property changes in batch
  • JSON Schema and UI Schema output compatible with JSON Forms
  • Built with React, TypeScript, Material-UI, Redux Toolkit

Getting Started

Install dependencies

npm install

Run the development server

npm run dev

Build for production

npm run build

Usage Example: Importing in Another React Project

  1. Install the package (after publishing to npm):
npm install @thinkitive/form-builder
  1. Use in your React app:
import { FormBuilder, FormRenderer } from "@thinkitive/form-builder";
import type {
  FormBuilderSchema,
  FormBuilderUiSchema,
  FormError,
} from "@thinkitive/form-builder";

function App() {
  type FormBuilderSchema = typeof FormBuilderSchema;
  type FormBuilderUiSchema = typeof FormBuilderUiSchema;
  type FormError = typeof FormError;

  const handleSchema = (schema: FormBuilderSchema) =>
    console.log("SCHEMA:", schema);
  const handleUiSchema = (uiSchema: FormBuilderUiSchema) =>
    console.log("UISchema:", uiSchema);
  const handleData = (data: unknown) => console.log("DATA:", data);

  const schema: FormBuilderSchema = {
    type: "object",
    properties: {
      firstName: {
        type: "string",
        minLength: 2,
        maxLength: 50,
        title: "First Name",
      },
      lastName: {
        type: "string",
        minLength: 2,
        maxLength: 50,
        title: "Last Name",
      },
      age: {
        type: "integer",
        minimum: 0,
        maximum: 150,
        title: "Age",
      },
      email: {
        type: "string",
        format: "email",
        title: "Email Address",
      },
      isEmployed: {
        type: "boolean",
        title: "Currently Employed",
      },
    },
    required: ["firstName", "lastName", "email"],
  };

  const uischema: FormBuilderUiSchema = {
    type: "Group",
    label: "Personal Information",
    elements: [
      { type: "Control", scope: "#/properties/firstName" },
      { type: "Control", scope: "#/properties/lastName" },
      { type: "Control", scope: "#/properties/age" },
      { type: "Control", scope: "#/properties/email" },
      { type: "Control", scope: "#/properties/isEmployed" },
    ],
  };

  const data = {
    firstName: "Rohit",
    lastName: "Sharma",
    age: 45,
    email: "[email protected]",
    isEmployed: true,
  };

  return (
    <>
      <FormBuilder
        onSchemaChange={handleSchema}
        onUiSchemaChange={handleUiSchema}
        onDataChange={handleData}
      />
      <h2>Sample Form Preview (View mode):</h2>
      <FormRenderer
        schema={schema}
        uischema={uischema}
        data={data}
        onChange={(updatedData: unknown) =>
          console.log("Updated data:", updatedData)
        }
        onSave={(formData: unknown) => console.log("Form submitted:", formData)}
        onErrors={(errors: FormError) =>
          console.log("Validation errors:", errors)
        }
      />
    </>
  );
}

export default App;

TypeScript Configuration

If you encounter TypeScript errors about missing module types, add the following to your global.d.ts or types.d.ts:

// types.d.ts or global.d.ts
declare module '@thinkitive/form-builder';