PageKit — the self-hosted GrapesJS site builder, sold as source. Get early access

Grapesjs Blockly
1 images

Grapesjs Blockly

Free
GrapesJS:0.17.x0.18.x0.20.x
Download from GitHub

What's Included

  • Free to download & use
  • Open for personal & commercial use

Support The Creator

Use one-time or monthly support to thank the creator for this free product.

GrapesJS Compatible

Tested with GrapesJS 0.17.x, 0.18.x, 0.20.x

Open Source on GitHub

Free to use, fork, and contribute

Editor Compatible

Designed for the GrapesJS open-source editor

Free to Use

Open for personal and commercial projects

Adding interactivity to a page built visually normally means dropping to JavaScript. This plugin offers a middle path: Google Blockly's drag-and-drop programming interface, opened from a component's toolbar, generating the script attached to that component.

What it adds

A blockly-script command and a toolbar button that opens the Blockly workspace in a modal. The generated code is attached to the selected component, so behaviour travels with the element rather than living in a separate file.

Options

  • blocklyOptionstoolbox replaces the default Blockly toolbox, toolboxPush adds to it, and workspaceOptions passes injection options straight to Blockly.
  • starter — the canvas starter blocks. The default generates let el = this, giving the script a reference to its own component.
  • blocklyTypesSupport — which component types may have scripts attached. Defaults to default, wrapper, text, textnode, image, video and svg. Leave out components that already define their own scripts.
  • onRun and onError — hooks fired after the syntax check passes or fails.
  • modalTitle, buttonLabel, toolbarIcon and codeViewOptions — interface details.

Requirements

Blockly must be present, and the @blockly/block-plus-minus plugin is recommended. Register this plugin after your other components.

Ratings:

No reviews yet. Be the first to share your experience.


Share this item:
Last Update:Sep 8, 2026
Published:Jul 9, 2023
Versions:
0.17.x0.18.x0.20.x

Questions & Answers

No questions yet. Have something to ask?