react-ast
utopia
react-ast | utopia | |
---|---|---|
1 | 1 | |
312 | 3,672 | |
- | 0.2% | |
8.9 | 9.9 | |
4 months ago | 7 days ago | |
TypeScript | TypeScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-ast
-
Utopia, a visual design tool for React, with code as the source of truth
I was planning on building something similar. My first attempt involved trying to get grapesjs to work with react. This attempt was very cumbersome because grapesjs generated html, and I would try to manipulate the html into react.
https://github.com/artf/grapesjs
Later however, I discovered craft.js, which is basically a framework for creating systems similar to this (page/component editors). Craft.js was inspired by grapesjs, but is specifically made for react.
https://github.com/prevwong/craft.js
Of course craft.js only solves the UI editor, not the code parsing/generation part. Babel is an obvious choice for code generation/manipulation, but I found its imperative approach unnecessarily complicated, so I built react-ast to enable declarative and composable code generation using react.
https://github.com/clayrisser/react-ast
The part I had not figured out was using the code as the source of truth for the editor and syncing it back. I definitely thought about it a lot, but postponed solving it since I had more pressing problems.
So, I have a lot of curiosity about this project. How does it work? And how does it stack up against a technology like craft.js? I noticed it’s not using craft.js, so I’m guessing the developers rolled their own equivalent.
utopia
What are some alternatives?
react-three-fiber - 🇨🇭 A React renderer for Three.js
static-next - Showcase NextJS rendering strategies and pros/cons
vscode-blockman - VSCode extension to highlight nested code blocks
next-i18next - The easiest way to translate your NextJs apps.
rekube - React renderer for Kubernetes configurations
AscendCoopPlatform - An open-source collaboration platform for worker-owned cooperatives, nonprofits, and private organizations, built with Ionic and Firebase, to foster growth, real-time data-driven decision-making, and address basic human needs through community-based solutions.
GrapesJS - Free and Open source Web Builder Framework. Next generation tool for building templates without coding
craft.js - 🚀 A React Framework for building extensible drag and drop page editors
astq - Abstract Syntax Tree (AST) Query Engine