Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/underhive/visual-react-editor
Edit react apps like you edit figma designs.
https://github.com/underhive/visual-react-editor
design editor figma nodejs react toolbox typescript web
Last synced: about 1 month ago
JSON representation
Edit react apps like you edit figma designs.
- Host: GitHub
- URL: https://github.com/underhive/visual-react-editor
- Owner: Underhive
- License: apache-2.0
- Created: 2023-11-07T02:31:08.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-01T22:11:10.000Z (8 months ago)
- Last Synced: 2024-10-11T22:40:59.287Z (about 1 month ago)
- Topics: design, editor, figma, nodejs, react, toolbox, typescript, web
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/underhive
- Size: 68.6 MB
- Stars: 62
- Watchers: 0
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Underhive
![underhive-web-editor](https://i.imgur.com/HlmOoK4.png)
## Introduction
Underhive ushers in a new way of web development, where React applications can be edited visually, akin to working within Figma or similar design tools. Our tool allows designers and developers to directly manipulate their application's UI elements in a visual editor, merging the convenience of design software with the robust framework of React.
## Features
- Visual editing in a Figma-like environment within your React app.
- A CLI tool to serve a proxy server for live code updates.
- Designed for use in a development environment to ensure safety.## Installation
To install Underhive, run the following command in your project directory:
```bash
npm install underhive
```## Setup
Import Underhive in your main React file:
```javascript
import { attachEditor, detachEditor } from 'underhive';
```Use `attachEditor` to enable the visual editing environment:
```javascript
if (process.env.NODE_ENV === 'development') {
attachEditor();
}
```Invoke `detachEditor` to disable the visual editor:
```javascript
detachEditor();
```Make sure these functions are used within a development environment check.
## Usage
Initialize Underhive in your project with:
```bash
npx ucli init
```This will set up Underhive and modify your `package.json` to include the Underhive server command using `concurrently`. This ensures that your existing start script and the Underhive server will run simultaneously.
To start your project with Underhive, use:
```bash
npm start
```## Tribute
This project wouldn't be possible without the original efforts of the creators of [ProjectVisBug](https://github.com/GoogleChromeLabs/ProjectVisBug).## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=Underhive/visual-react-editor&type=Date)](https://star-history.com/#Underhive/visual-react-editor&Date)