react-ast
vscode-blockman
react-ast | vscode-blockman | |
---|---|---|
1 | 8 | |
312 | 341 | |
- | - | |
8.9 | 3.9 | |
4 months ago | 13 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.
vscode-blockman
- Intro video for my VS Code extension "Blockman"
-
Anything like Blockman in Neovim?
I like that blockman just makes scoping subconsciously clear as I scan through code though. Whereas twilight is focused on.. uh, focus. :)
-
I've seen Blockman, but is there something better (or a fix)?
1) https://github.com/leodevbro/vscode-blockman/issues/45
-
Check out my VSCode extension - Blockman - Highlight nested code blocks with boxes
As it turns out, it was a bug of VSCode, and now they fixed it. So, another solution is just to update VSCode. https://github.com/leodevbro/vscode-blockman/issues/8
What are some alternatives?
react-three-fiber - 🇨🇭 A React renderer for Three.js
JavaParser - Java 1-17 Parser and Abstract Syntax Tree for Java with advanced analysis functionalities.