# JavaScript form libraries

JavaScript form libraries build web forms from a definition, such as a JSON Schema or a form model, rather than from hand-written inputs. The library reads that definition and renders each field with its label, default value, and validation rules. These libraries generate the surveys, admin forms, and data entry screens that web apps use to collect structured input.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [@rjsf/core](#rjsf-core) | 6.7M | 15.9K | Nov 2026 | Apache-2.0 |
| [survey-core](#surveyjs-core) | 1.8M | 4.9K | Nov 2026 | MIT |
| [@jsonforms/core](#jsonforms-core) | 1.7M | 2.8K | Jun 2026 | MIT |
| [jsoneditor](#jsoneditor) | 1.3M | 12.3K | Apr 2026 | Apache-2.0 |
| [@ngx-formly/core](#ngx-formly-core) | 1.1M | 3.0K | Nov 2026 | MIT |
| [survey-creator-core](#survey-creator-core) | 782.2K | 1.3K | Nov 2026 | Commercial developer license |
| [@formkit/core](#formkit-core) | 755.9K | 4.8K | Nov 2026 | MIT |
| [@json-editor/json-editor](#json-editor-json-editor) | 291.2K | 4.9K | Oct 2026 | MIT |

Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[@rjsf/core](#rjsf-core) has the most monthly downloads in this comparison, at 6.7M.

## Capabilities

| Library | JSON Schema form generation | Drag-and-drop form designer |
| --- | --- | --- |
| [@rjsf/core](#rjsf-core) | Yes | No |
| [survey-core](#surveyjs-core) | No | No |
| [@jsonforms/core](#jsonforms-core) | Yes | No |
| [jsoneditor](#jsoneditor) | No | No |
| [@ngx-formly/core](#ngx-formly-core) | Yes | No |
| [survey-creator-core](#survey-creator-core) | No | Yes |
| [@formkit/core](#formkit-core) | No | No |
| [@json-editor/json-editor](#json-editor-json-editor) | Yes | No |

## Libraries

### @rjsf/core

[GitHub](https://github.com/rjsf-team/react-jsonschema-form) · [npm](https://www.npmjs.com/package/@rjsf/core) · [Docs](https://rjsf-team.github.io/react-jsonschema-form/docs/)

Builds HTML forms in React out of a JSON schema.

- Downloads / mo: 6.7M
- Stars: 15.9K
- Last release: 6.11.1
- License: Apache-2.0
- Capabilities: [From the @rjsf/core docs](https://rjsf-team.github.io/react-jsonschema-form/docs/)

**Strengths**

- **Customizes with uiSchema.** Pass a uiSchema to change widgets and layout beyond the default themes.

**Watch out for**

- **Needs a validator package.** Install a validator implementation such as @rjsf/validator-ajv8 with the core package.

```sh
npm install @rjsf/core @rjsf/utils @rjsf/validator-ajv8
```

**Kong/insomnia** (40.2K stars)

[Kong/insomnia](https://github.com/Kong/insomnia) 

```tsx
({ onChange, schema, uiSchema = {}, formData, renderSubmitButton, ...rest }, ref) => {
    const onChangeRef = useLatest(onChange);
    const formDataRef = useLatest(formData);
    const formRef = useRef<Form>(null);
    useEffect(() => {
      if (schema) {
        const formDataWithDefaults = getDefaultFormState(validator, schema, formDataRef.current, schema, true);
        onChangeRef?.current?.(formDataWithDefaults);
      }
    }, [formDataRef, onChangeRef, schema]);

    const mergedUiSchema = {
      'ui:submitButtonOptions': {
        norender: !renderSubmitButton,
      },
      ...uiSchema,
    };

    const handleRjsfChange = (e: IChangeEvent) => {
      onChange?.(e.formData);
    };

    useImperativeHandle(ref, () => ({
      validate: () => {
        return formRef.current?.validateForm() || false;
      },
    }));

    return (
      <ThemedForm
        ref={formRef}
        onChange={handleRjsfChange}
        schema={schema}
        validator={validator}
        uiSchema={mergedUiSchema}
        formData={formData}
        {...rest}
      />
    );
  }

```

[packages/insomnia/src/ui/components/rjsf/index.tsx](https://github.com/Kong/insomnia/blob/911271895758e20ba4eb95ddbb00436510057c8f/packages/insomnia/src/ui/components/rjsf/index.tsx#L22-L61) · [More projects using @rjsf/core →](https://dashboard.exa.ai/playground/search?q=%40rjsf/core%20GitHub%20projects)

**Quickstart**

```tsx
import { createRoot } from 'react-dom/client';
import Form from '@rjsf/core';
import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
  title: 'Test form',
  type: 'string',
};

createRoot(document.getElementById('app')!).render(<Form schema={schema} validator={validator} />);

```

From [quickstart.md](https://github.com/rjsf-team/react-jsonschema-form/blob/v6.11.1/packages/docs/docs/01-quickstart.md)

### survey-core

[GitHub](https://github.com/surveyjs/survey-library) · [npm](https://www.npmjs.com/package/survey-core) · [Docs](https://surveyjs.io/form-library/documentation/get-started-html-css-javascript)

Defines form models, conditional logic, validation, and response data independently of a UI framework.

- Downloads / mo: 1.8M
- Stars: 4.9K
- Last release: 3.2.7
- License: MIT
- Capabilities: [From the survey-core docs](https://surveyjs.io/form-library/documentation/get-started-html-css-javascript)

**Strengths**

- **Branches around hidden pages.** Use visibleIf to skip pages based on earlier answers.
- **Shares logic with server validation.** Revalidate submitted answers with the same form schema in Node.

**Watch out for**

- **Needs a separate UI package.** Install a rendering package to display the form model.
- **Visual editing needs another product.** Survey Creator requires a commercial developer license.

```sh
npm install survey-core survey-js-ui
```

**jspsych/jsPsych** (1.2K stars)

[jspsych/jsPsych](https://github.com/jspsych/jsPsych) 

```javascript
trial(display_element: HTMLElement, trial: TrialType<Info>) {
  // check for empty JSON and no survey function
  if (JSON.stringify(trial.survey_json) === "{}" && trial.survey_function === null) {
    console.error(
      "Survey plugin warning: you must define the survey using a non-empty JSON object and/or a survey function."
    );
  }
  this.survey = new Model(trial.survey_json);

  if (trial.survey_function !== null) {
    trial.survey_function(this.survey);
  }

  // apply our custom theme
  this.applyStyles(this.survey);

  if (trial.validation_function) {
    this.survey.onValidateQuestion.add(trial.validation_function);
  }

  this.survey.onComplete.add((sender, options) => {
    // add default values to any questions without responses
    const all_questions = sender.getAllQuestions();
    const data_names = Object.keys(sender.data);
    for (const question of all_questions) {
      if (!data_names.includes(question.name)) {
        sender.mergeData({ [question.name]: question.defaultValue ?? null });
      }
    }

    // finish trial and save data
    this.jsPsych.finishTrial({
      rt: Math.round(performance.now() - this.start_time),
      response: sender.data,
    });
  });

  // As of the SurveyJS v2.2 update, we need to create a new container for the survey to render in.
  // Otherwise the rendering fails silently with repeated similar survey trials.
  const survey_container = this.createSurveyContainer(display_element, trial.min_width);
  this.survey.render(survey_container);

  this.start_time = performance.now();
}

```

[packages/plugin-survey/src/index.ts](https://github.com/jspsych/jsPsych/blob/9e2b93ba7751a0f604198bad52ff3a876ee3fef6/packages/plugin-survey/src/index.ts#L146-L189) · [More projects using survey-core →](https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20survey-core%20for%20schema-based%20form%20construction%20conditional%20fields%20submission%20data%20and%20visual%20form%20editing&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```javascript
import { Model } from 'survey-core';
import 'survey-js-ui';
import 'survey-core/survey-core.min.css';

const survey = new Model({ elements: [{ type: 'text', name: 'name' }] });
survey.render(document.getElementById('surveyContainer'));

```

From [README.md](https://surveyjs.io/form-library/documentation/get-started-html-css-javascript)

### @jsonforms/core

[GitHub](https://github.com/eclipsesource/jsonforms) · [npm](https://www.npmjs.com/package/@jsonforms/core) · [Docs](https://jsonforms.io/api/core/functions/generateDefaultUISchema.html)

Provides the core functionality that JSON Forms renderers need to display a form.

- Downloads / mo: 1.7M
- Stars: 2.8K
- Last release: 3.8.0
- License: MIT
- Capabilities: [From the @jsonforms/core docs](https://jsonforms.io/api/core/functions/generateDefaultUISchema.html)

**Strengths**

- **Separates data and layout.** Describe control order, visibility, and layout in a UI schema next to the data schema.

**Watch out for**

- **Needs a UI framework binding.** Pair the core package with the React, Angular, or Vue binding.

```sh
npm install @jsonforms/core
```

**Quickstart**

```typescript
import { generateDefaultUISchema } from '@jsonforms/core';

const schema = { type: 'object', properties: { name: { type: 'string' } } };
const uischema = generateDefaultUISchema(schema);

```

From [generateDefaultUISchema.html](https://jsonforms.io/api/core/functions/generateDefaultUISchema.html) · [Find projects using @jsonforms/core →](https://dashboard.exa.ai/playground/search?q=%40jsonforms/core%20GitHub%20projects)

### jsoneditor

[GitHub](https://github.com/josdejong/jsoneditor) · [npm](https://www.npmjs.com/package/jsoneditor) · [Docs](https://github.com/josdejong/jsoneditor/blob/develop/docs/api.md)

Views, edits, formats, and validates JSON in a web page.

- Downloads / mo: 1.3M
- Stars: 12.3K
- Last release: 10.4.3
- License: Apache-2.0
- Capabilities: [From the jsoneditor docs](https://github.com/josdejong/jsoneditor/blob/develop/docs/api.md)

**Strengths**

- **Offers tree, code, and text modes.** Switch between a tree editor, a code editor, and a plain text editor.

**Watch out for**

- **Has a newer successor.** Its successor, svelte-jsoneditor, is not a one-to-one replacement.

```sh
npm install jsoneditor
```

**elabftw/elabftw** (1.5K stars)

[elabftw/elabftw](https://github.com/elabftw/elabftw) 

```javascript
init(editable = false): void {
  // JSONEditor has several modes, in edit mode we want more modes than in view mode
  let modes = ['view'];
  if (editable) {
    modes = modes.concat(['tree', 'code', 'form']);
  }
  const options = {
    modes: modes,
    onModeChange: (newMode: string): void => {
      if (newMode === 'code') {
        (this.editorDiv.firstChild as HTMLDivElement).style.height = '500px';
      }
    },
    onChange: (): void => {
      // make the save button stand out if the content is changed
      document.querySelector('[data-action="json-save"]').classList.add('border-danger');
      document.getElementById('jsonUnsavedChangesWarningDiv').removeAttribute('hidden');
    },
  };

  // instantiate the editor
  this.editor = new JSONEditor(this.editorDiv, options);
  // default mode is tree if editable
  if (editable) {
    this.editor.setMode('tree');
  }
  if (this.editorDiv.dataset.preloadJson === '1') {
    this.loadMetadata();
  }
  // TODO: make a PR in upstream repo to implement proper label support
  document.querySelector('.jsoneditor-frame input[type="text"]')?.setAttribute('aria-label', 'Search metadata');
}

```

[src/ts/JsonEditorHelper.class.ts](https://github.com/elabftw/elabftw/blob/77eb398227f4c799b7d068d76f76f166845d72cb/src/ts/JsonEditorHelper.class.ts#L40-L71) · [More projects using jsoneditor →](https://dashboard.exa.ai/playground/search?q=jsoneditor%20GitHub%20projects)

**Quickstart**

```javascript
const editor = new JSONEditor(document.getElementById('jsoneditor'), { mode: 'form' });
editor.set({ name: 'Ada' });

```

From [api.md](https://github.com/josdejong/jsoneditor/blob/develop/docs/api.md)

### @ngx-formly/core

[GitHub](https://github.com/ngx-formly/ngx-formly) · [npm](https://www.npmjs.com/package/@ngx-formly/core) · [Docs](https://github.com/ngx-formly/ngx-formly/blob/main/src/core/json-schema/src/formly-json-schema.service.ts)

Builds dynamic, JSON-powered forms for Angular.

- Downloads / mo: 1.1M
- Stars: 3.0K
- Last release: 11.3.0
- License: MIT
- Capabilities: [From the @ngx-formly/core docs](https://github.com/ngx-formly/ngx-formly/blob/main/src/core/json-schema/src/formly-json-schema.service.ts)

**Strengths**

- **Reads Formly and JSON schemas.** Define fields in Formly's own schema or convert a JSON Schema.
- **Builds on Reactive Forms.** Each generated field binds to an Angular Reactive Forms control.

**Watch out for**

- **Angular only.** React and Vue apps need a different form library.

```sh
npm install @ngx-formly/core @angular/forms rxjs
```

**apache/texera** (333 stars)

[apache/texera](https://github.com/apache/texera) 

```typescript
private setFormlyFormBinding(schema: CustomJSONSchema7) {
  this.formlyFormGroup = new FormGroup({});
  this.formlyOptions = {};
  // convert the json schema to formly config, pass a copy because formly mutates the schema object
  const field = this.formlyJsonschema.toFieldConfig(cloneDeep(schema));
  field.hooks = {
    onInit: fieldConfig => {
      if (!this.interactive) {
        fieldConfig?.form?.disable();
      }
    },
  };
  this.formlyFields = field.fieldGroup;
}

```

[frontend/src/app/workspace/component/property-editor/port-property-edit-frame/port-property-edit-frame.component.ts](https://github.com/apache/texera/blob/7f9bdf34ff1337510c73ed4ea8bb904339546239/frontend/src/app/workspace/component/property-editor/port-property-edit-frame/port-property-edit-frame.component.ts#L216-L229) · [More projects using @ngx-formly/core →](https://dashboard.exa.ai/playground/search?q=%40ngx-formly/core%20GitHub%20projects)

**Quickstart**

```typescript
import { FormlyJsonschema } from '@ngx-formly/core/json-schema';

const converter = new FormlyJsonschema();
const field = converter.toFieldConfig({ type: 'string', title: 'Name' });

```

From [formly-json-schema.service.ts](https://github.com/ngx-formly/ngx-formly/blob/main/src/core/json-schema/src/formly-json-schema.service.ts)

### survey-creator-core

[GitHub](https://github.com/surveyjs/survey-creator) · [npm](https://www.npmjs.com/package/survey-creator-core) · [Docs](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator)

Holds the editor model of SurveyJS Survey Creator, an embeddable drag-and-drop form builder.

- Downloads / mo: 782.2K
- Stars: 1.3K
- Last release: 3.2.7
- License: Commercial developer license
- Capabilities: [From the survey-creator-core docs](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator)

**Strengths**

- **Generates JSON form definitions.** Save the JSON definition it writes and render the form with SurveyJS Form Library.

**Watch out for**

- **Needs a commercial license.** Each developer who integrates Survey Creator needs a commercial license.

```sh
npm install survey-creator-core
```

**Quickstart**

```javascript
import { SurveyCreatorModel } from 'survey-creator-core';

const creator = new SurveyCreatorModel();
creator.JSON = { elements: [{ type: 'text', name: 'name' }] };

```

From [API reference](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator) · [Find projects using survey-creator-core →](https://dashboard.exa.ai/playground/search?q=survey-creator-core%20GitHub%20projects)

### @formkit/core

[GitHub](https://github.com/formkit/formkit) · [npm](https://www.npmjs.com/package/@formkit/core) · [Docs](https://formkit.com/essentials/architecture)

Tracks each input as a node with its own value, configuration, events, and plugins.

- Downloads / mo: 755.9K
- Stars: 4.8K
- Last release: 2.8.0
- License: MIT
- Capabilities: [From the @formkit/core docs](https://formkit.com/essentials/architecture)

**Strengths**

- **Has no dependencies.** Install the core without pulling in other packages.

**Watch out for**

- **Needs a renderer.** Draw the inputs with a renderer package such as the Vue one.

```sh
npm install @formkit/core
```

**halo-dev/halo** (40.3K stars)

[halo-dev/halo](https://github.com/halo-dev/halo) 

```typescript
export default function verify(node: FormKitNode): void {
  node.props.buttonAttrs ??= {
    disabled: node.props.disabled,
  };

  node.props.label ??= i18n.global.t("core.common.buttons.verify");

  node.on("prop:disabled", ({ payload: disabled }) => {
    node.props.buttonAttrs = { ...node.props.buttonAttrs, disabled };
  });

  node.on("created", () => {
    if (node.parent) {
      node.parent.hook.commit((val) => {
        const parentValue = {
          ...val,
        };
        const verifyFormVal = (parentValue[node.name] || {}) as Record<
          string,
          unknown
        >;
        delete parentValue[node.name];
        const mergeFormValue = {};
        Object.keys(verifyFormVal).forEach((key) => {
          if (node.children.find((child) => child.name === key)) {
            mergeFormValue[key] = verifyFormVal[key];
          }
        });
        return { ...parentValue, ...mergeFormValue };
      });

      node.hook.input(() => {
        return buildVerifyFormValue(node);
      });

      node.input(buildVerifyFormValue(node));
    }
  });
}

```

[ui/src/formkit/inputs/verify-form/features/index.ts](https://github.com/halo-dev/halo/blob/a2ab7db2657441e5cb1f2c8695613e458a70d42f/ui/src/formkit/inputs/verify-form/features/index.ts#L20-L58) · [More projects using @formkit/core →](https://dashboard.exa.ai/playground/search?q=%40formkit/core%20GitHub%20projects)

**Quickstart**

```typescript
import { createNode } from '@formkit/core';

const input = createNode({ value: 'Ada' });
input.input('Grace');

```

From [Architecture docs](https://formkit.com/essentials/architecture)

### @json-editor/json-editor

[GitHub](https://github.com/json-editor/json-editor) · [npm](https://www.npmjs.com/package/@json-editor/json-editor) · [Docs](https://github.com/json-editor/json-editor/blob/master/README.md)

Generates an HTML form from a JSON Schema.

- Downloads / mo: 291.2K
- Stars: 4.9K
- Last release: 2.17.4
- License: MIT
- Capabilities: [From the @json-editor/json-editor docs](https://github.com/json-editor/json-editor/blob/master/README.md)

**Strengths**

- **Has no dependencies.** Load it in the browser without other packages.

**Watch out for**

- **In maintenance mode.** Active development has moved to Jedison.

```sh
npm install @json-editor/json-editor
```

**purocean/yn** (6.8K stars)

[purocean/yn](https://github.com/purocean/yn) 

```javascript
const ok = async () => {
  const value = editor && editor.getValue()
  if (value) {
    value.repos.forEach((repo: any) => {
      let { name, path } = repo
      name = name.trim()
      path = path.trim()

      if (!name && path) {
        // default name
        repo.name = basename(path).substring(0, 10)
      } else if (name && !path) {
        const msg = t('setting-panel.error-choose-repo-path')
        toast.show('warning', msg)
        throw new Error(msg)
      }
    })

    const errors = editor.validate()
    if (errors.length) {
      console.log('json-editor', errors)
      errors.forEach((error: any) => {
        const path = error.path
        if (path) {
          // highlight field
          showSettingPanel(path.replace(/^root\./, ''))
        }

        toast.show('warning', error.message)
        throw new Error(error.message)
      })
    }

    await writeSettings({ ...value })
  }
  close()
}

```

[src/renderer/components/Setting.vue](https://github.com/purocean/yn/blob/5822804b83c9492cca2992203e72d74a0b460c8f/src/renderer/components/Setting.vue#L220-L256) · [More projects using @json-editor/json-editor →](https://dashboard.exa.ai/playground/search?q=%40json-editor/json-editor%20GitHub%20projects)

**Quickstart**

```javascript
const editor = new JSONEditor(document.getElementById('editor'), {
  schema: { type: 'object', properties: { name: { type: 'string' } } }
});

```

From [README.md](https://github.com/json-editor/json-editor/blob/master/README.md)

## FAQ

### Which JavaScript form library should I use?

For a React app that already has a JSON Schema, [@rjsf/core](#rjsf-core) renders the form from it. [survey-core](#surveyjs-core) fits multi-page surveys with conditional logic, and [@ngx-formly/core](#ngx-formly-core) fits Angular apps.

### What is JSON Editor?

[jsoneditor](#jsoneditor) is a web-based tool that views, edits, formats, and validates JSON in tree, code, or text mode. [@json-editor/json-editor](#json-editor-json-editor) is a separate library that generates an HTML form from a JSON Schema.

### What is FormKit?

FormKit is a form framework whose core package, [@formkit/core](#formkit-core), tracks each input as a node with its own value, configuration, and events. A renderer package, such as the Vue one, draws the inputs.

### What is SurveyJS Survey Creator?

Survey Creator is a drag-and-drop form builder that generates SurveyJS JSON form definitions, and [survey-creator-core](#survey-creator-core) holds its editor model. Each developer who integrates it needs a commercial license.

### How do I build a React form from a JSON Schema?

Pass the schema and a validator package to the Form component from [@rjsf/core](#rjsf-core). A uiSchema then changes widgets and layout without editing the schema.

### What is JSON Forms?

[JSON Forms](#jsonforms-core) renders a form from two schemas: a JSON Schema for the data and a UI schema for the order, visibility, and layout of the controls. Its core package pairs with a React, Angular, or Vue binding.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "Best JavaScript form libraries SurveyJS Form.io Alpaca formBuilder code examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
