Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
U

ui-schema

> 前端框架
Open source

Use JSON-Schema with React, generate Forms + UIs with any design system, easy creation of complex custom widgets.

391 stars0 likes3 views
WebsiteGitHub

About

Use JSON-Schema with React, generate Forms + UIs with any design system, easy creation of complex custom widgets.

UI Schema

Generate forms and UIs from JSON Schema. Use the headless React components to create powerful schema-driven apps in any design. Get started quickly with Material UI React or Bootstrap and easily create your own widgets and plugins.

Create smart apps faster, with less code — thanks to auto-generated UIs, built-in validation, and easy customization.

[!CAUTION]

You're exploring the next version! If you spot odd behaviour or have feedback, please open an issue.

The published documentation is still for version 0.4.x. The new documentation for 0.5.x is not yet complete. See this basic migration guide from 0.4.x to 0.5.x. You can preview the new documentation locally by setting up the repository.

Note that the example code below and demo apps are already updated for 0.5.x.

To use the next version you must specify the exact version or use @ui-schema/ui-schema@next during installation.

  • @ui-schema/ui-schema

  • @ui-schema/react

  • @ui-schema/json-schema

  • @ui-schema/json-pointer

  • @ui-schema/ds-material

  • @ui-schema/ds-bootstrap

  • @ui-schema/pro

  • @ui-schema/dictionary

  • Additional Material-UI Widgets:

    • Date-Time Picker: @ui-schema/material-pickers Documentation
    • Codemirror as Material Input: @ui-schema/material-code Documentation, Repository
    • react-color picker: @ui-schema/material-color Documentation, Repository
    • react-colorful picker: @ui-schema/material-colorful Documentation, Repository
    • Drag 'n Drop with react-dnd: @ui-schema/material-dnd Documentation
  • Additional Packages, not only for UI Schema:

    • CodeMirror v6 kit: @ui-schema/kit-codemirror Documentation, Repository
    • Drag 'n Drop kit: @ui-schema/kit-dnd Documentation

Get Started

  • ⚡ Quick Start
  • ️ Schema Examples + Live Editor
  • Demo Apps:
    • MUI, React, TypeScript: CodeSandbox | StackBlitz | Source Repository
    • MUI, React: CodeSandbox | StackBlitz | Source Repository
    • Bootstrap, React: CodeSandbox | StackBlitz | Source Repository
    • React Native with custom widgets
  • Documentation
  • Get Help on Discord

Schema

Use JSON Schema to validate data and automatically create UIs with it - UI-Schema makes it easy to write widgets based on schema structures, use custom UI keywords to make it look great!

Schema Documentation

Features

  • add any design-system or custom widget
    • easily create isolated and atomic widgets, with autowired data and validations
    • customize design system behaviour with e.g. widget compositions
    • easy binding of own design systems and custom widgets
    • easily add advanced features like read-or-write mode
  • auto-rendering by data & schema or full-custom forms with autowired widgets
  • flexible translation of widgets
    • with any library (t prop (Translator), Translate/TranslateTitle components)
    • in-schema translations (t keyword)
    • label text transforms (tt/ttEnum keyword)
    • single or multi-language
    • for labels, titles, errors, icons...
    • (optional) tiny integrated translation library
    • (optional) translation dictionaries
  • modular, extensible and slim core
    • add own plugins
    • add own validators
    • add own base renderers
    • add own widget matchers & render strategies
    • use what you need
  • isomorphic code: for browser, server, and more
  • not just for React, with vanilla-JS core
  • performance optimized, React only updates HTML which must re-render, perfect for big schemas
  • easy nesting for custom object/array widgets with ``
  • validate hidden/auto-generated values, virtualize schema levels (hidden keyword)
  • handle store update from anywhere and however you want
  • includes helper functions for store and immutable handling
  • extensive documentations of core, widgets
  • complex conditionals schemas
  • loading / referencing schemas by URL, connect any API or e.g. babel dynamic loading instead
  • definitions and JSON-Pointer references in schemas
  • JSON Schema extension: UI Schema, change design and even behaviour of widgets
  • JSON Schema versions supported: Draft 2020-12, 2019-09 / Draft-08, Draft-07, Draft-06, Draft-04

Design-System and Widgets Overview

Versions

This project adheres to semver, until 1.0.0 and beginning with 0.1.0: all 0.x.0 releases are like MAJOR releases and all 0.0.x like MINOR or PATCH, modules below 0.1.0 should be considered experimental.

Get the latest version - or help build it:

  • latest releases (GitHub release notes)
  • update and migration notes (docs page)
  • current roadmap (GitHub discussion)

Example UI Schema

First time? Take the quick-start or check out the demo repos!

Example setup of the React engine with @mui as design system, below is a vanilla-HTML text widget.

If you haven’t already set up @mui; then install the @ui-schema dependencies:

bash
npm i --save @ui-schema/ui-schema@next @ui-schema/json-schema@next @ui-schema/json-pointer@next @ui-schema/react@next @ui-schema/ds-material@next

And add the example code:

…

Instead of using a WidgetEngine at root level (automatic rendering of full schema), it's also possible to use full custom rendering.

Example Simple Text Widget

Easily create new widgets, this is all for a simple text (type=string) widget:

…

Contributing

See CONTRIBUTING.md.

License

Released under the MIT License.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptform-builderform-generatorjson-schemajson-schema-form

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架