Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/angkasa27/json-schema-editor
A visual JSON Schema editor built with React, TailwindCSS, and React Hook Form. Easily view and edit JSON schema structures without manually modifying JSON code.
https://github.com/angkasa27/json-schema-editor
json-schema json-schema-editor nextjs react tailwindcss
Last synced: about 23 hours ago
JSON representation
A visual JSON Schema editor built with React, TailwindCSS, and React Hook Form. Easily view and edit JSON schema structures without manually modifying JSON code.
- Host: GitHub
- URL: https://github.com/angkasa27/json-schema-editor
- Owner: angkasa27
- License: mit
- Created: 2025-01-21T13:52:38.000Z (11 days ago)
- Default Branch: develop
- Last Pushed: 2025-01-30T15:21:05.000Z (2 days ago)
- Last Synced: 2025-01-30T16:28:35.505Z (2 days ago)
- Topics: json-schema, json-schema-editor, nextjs, react, tailwindcss
- Language: TypeScript
- Homepage: https://json-schema-editor.asaa.dev
- Size: 426 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JSON Schema Editor (React + TailwindCSS + React Hook Form)
![License](https://img.shields.io/badge/license-MIT-blue.svg)
## Overview
This project is a JSON Schema Editor based on React. It allows users to visualize and edit the structure of a JSON schema without manually modifying the JSON code. By providing an intuitive interface, users can interact with JSON schemas more efficiently and reduce the chances of errors.
This project is a modified version of [json-schema-editor-antd](https://github.com/lin-mt/json-schema-editor-antd). The original project is built using Ant Design (antd), while this modified version replaces Ant Design components with TailwindCSS for styling and React Hook Form for form management. This ensures a more modern UI framework with a flexible and reactive form handling experience.
## Features
- πΌ **Visual Schema Representation** β Easily view and edit JSON schema structures without dealing with raw JSON code.
- π¨ **TailwindCSS** β Lightweight styling with utility-first CSS.
- π **React Hook Form** β Efficient form management with minimal re-renders.
- π **Customizable** β Extend and adapt the editor for different schema requirements.
- β **React-Based** β Built on a modern React architecture.## Installation
Since the package is not yet published on npm, you can clone the repository and install dependencies manually:
```bash
git clone https://github.com/angkasa27/json-schema-editor.git
cd json-schema-editor
npm install
```## Usage
Hereβs how you can use the JSON Schema Editor component in your React project:
```jsx
import JsonSchemaEditor from "@/json-schema-editor";
import { JSONSchema7 } from "@/json-schema-editor/types";
import { useState } from "react";const App = () =>{
const [jsonSchema, setJsonSchema] = useState();return (
setJsonSchema(v)}
/>
);
}export default App;
```## Props
| Prop Name | Type | Description |
| ---------------- | -------- | ------------------------------------------------------- |
| `onSchemaChange` | Function | Callback function triggered when the schema is updated. |
| `data` | Object | The current JSON schema object. |## Development
### Clone the Repository
```bash
git clone https://github.com/angkasa27/json-schema-editor.git
cd json-schema-editor
```### Install Dependencies
```bash
npm install
```### Start Development Server
```bash
npm start
```### Build for Production
```bash
npm run build
```## Contributing
Contributions are welcome! Feel free to submit issues, feature requests, or pull requests.
---
## License
This project is licensed under the MIT License.
---
If you have any questions or need further clarification, feel free to reach out!