React component to build JSON Schema interactively via a visual UI. Current stable version is 1.1.1, published as a single package with minimal updates. Differentiators: drag-and-drop schema construction, live preview, localization support, and TypeScript definitions. It is a lightweight alternative to form builders like react-jsonschema-form but focused on schema editing rather than form rendering.
npm install react-json-schema-builderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of JSONSchemaBuilder component with TypeScript, state management, and CSS import.
Update imports: import { Schema } from 'react-json-schema-builder'.Replace renderModal={true} with showAdvanced={true}.Only import from the package root: import JSONSchemaBuilder from 'react-json-schema-builder'.
Upgrade React to 16.8 or higher.
Replace 'initialSchema' with 'schema'.
Run npm install react-json-schema-builder --save
Provide a valid schema object: const schema = { type: 'object', properties: {} }Use curly braces for named export: import { Schema } from 'react-json-schema-builder'Ensure the component is mounted in the browser's DOM: use useEffect or render in client-side only.