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

formthinker

v1.2.14

Published

React UI helper. Generate interactive form based on given schema

Readme

FormThinker

A powerful React component library for generating interactive forms based on schema definitions. FormThinkerJS provides a flexible and customizable way to create dynamic forms with built-in Tailwind CSS styling.

Features

  • 🚀 Schema-driven: Generate forms from JSON schema definitions
  • 🎨 Tailwind CSS: Beautiful, responsive design out of the box
  • 🔧 Customizable: Extensive customization options
  • 📱 Responsive: Mobile-first design approach
  • 🎯 JavaScript: Pure JavaScript implementation
  • Performance: Optimized with React lazy loading
  • 🧩 Modular: Use individual components or the complete form builder

Installation

npm install formthinker

Quick Start

import React, { useState } from 'react';
import { FormThinker } from 'formthinker';

function App() {
  const [formData, setFormData] = useState({});
  
  const schema = {
    type: 'object',
    properties: {
      name: {
        type: 'string',
        title: 'Full Name',
        required: true
      },
      email: {
        type: 'string',
        title: 'Email Address',
        format: 'email',
        required: true
      },
      age: {
        type: 'number',
        title: 'Age',
        minimum: 18,
        maximum: 100
      }
    }
  };

  return (
    <div className="max-w-md mx-auto p-6">
      <h1 className="text-2xl font-bold mb-6">User Registration</h1>
      <FormThinker 
        schema={schema} 
        data={formData} 
        setData={setFormData} 
      />
    </div>
  );
}

export default App;

Components

Main Components

  • FormThinker: The main form component that renders forms based on schema
  • FormWidget: Internal widget component for form rendering
  • FormHeader: Header component for forms
  • FormHeaderPill: Pill-style header component
  • FormPlayGround: Interactive playground for form development

Field Components

  • Input: Text input field
  • Checkbox: Single checkbox field
  • MultipleCheckbox: Multiple checkbox selection
  • Range: Range slider input
  • Options: Radio button options
  • SelectBox: Dropdown selection
  • ColorPalette: Color picker component
  • ArrayInput: Array input field
  • RichTextEditor: Rich text editing component
  • ArrayOfObject: Array of object input

Schema Format

FormThinkerJS uses a JSON schema format to define forms:

const schema = {
  type: 'object',
  properties: {
    fieldName: {
      type: 'string', // 'string', 'number', 'boolean', 'array', 'object'
      title: 'Field Label',
      description: 'Field description',
      required: true,
      // Additional field-specific properties
    }
  }
};

Styling

FormThinkerJS uses Tailwind CSS for styling. The components are designed to work seamlessly with Tailwind's utility classes. You can customize the appearance by:

  1. Using Tailwind classes in your parent components
  2. Overriding the default styles with custom CSS
  3. Modifying the Tailwind configuration

JavaScript Support

FormThinkerJS is built with pure JavaScript and works seamlessly with any React project:

import { FormThinker } from 'formthinker';

const MyForm = () => {
  const [data, setData] = useState({});
  
  return (
    <FormThinker
      schema={schema}
      data={data}
      setData={setData}
    />
  );
};

Development

To contribute to FormThinkerJS:

# Clone the repository
git clone https://github.com/akrit_singha/formthinker.git

# Install dependencies
npm install

# Start development server
npm run dev

# Build the package
npm run build

License

ISC License - see LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

If you encounter any issues or have questions, please file an issue on GitHub.