Skip to content

Explore visual programming/blocks for building examples #445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
blaine-arcjet opened this issue Mar 20, 2025 · 0 comments
Open

Explore visual programming/blocks for building examples #445

blaine-arcjet opened this issue Mar 20, 2025 · 0 comments

Comments

@blaine-arcjet
Copy link
Contributor

Since we provide complete examples in our docs, many of our snippets are just connecting various chunks of code. This leads to a lot of repeated code that needs to be updated any time we make a change and burns a lot of developer time.

Instead of the current approach, we could build examples with a visual programming/block language tool. The blocks would be saved as JSON (or some other serialization format) and then we could "evaluate" them to produce valid JavaScript.

I've briefly looked at Google's Blockly. It is open source, Apache-2.0 licensed at https://github.com/google/blockly. It seems like it can operate on serializable blocks and evaluate to JavaScript while also supporting other languages and custom generators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant