Blockly

JavaScript library for building block-based visual programming editors

Open-Source Low-Code Frameworks Open source · Apache-2.0 Free plan Self-hostable
What is Blockly? Blockly is a client-side library, created at Google and stewarded by the Raspberry Pi Foundation since 2025, for adding drag-and-drop block coding to apps. Blocks generate code in JavaScript, Python, PHP, Lua or Dart, and Blockly powers tools like MIT App Inventor, Code.org and Scratch-inspired editors as well as many low-code rule builders.

Best for: Developers adding visual block programming to educational or rule-building products.

Blockly at a glance

CategoryOpen-Source Low-Code Frameworks
PricingFree (open source)
DeploymentSelf-hosted
Built forProfessional developers
Buildsweb
LicenceOpen source (Apache-2.0)
Code exportYes
VendorRaspberry Pi Foundation (originally Google) · United Kingdom · founded 2013
GitHub stars13,619 · last commit 2026-11

Key features

  • drag-and-drop blocks
  • code generators (JS, Python, PHP, Lua, Dart)
  • custom block definitions
  • toolbox and workspace APIs
  • plugins and themes
  • accessibility work

What you can build with Blockly

  • educational coding tools
  • visual rule and logic editors
  • robotics programming
  • end-user scripting in apps

Blockly pricing

Open source. There is a free plan. Free and open source; self-host at no cost.

Prices change often. Check the vendor's pricing page before buying.

Pros and cons

Pros

  • Industry standard for block coding
  • Highly customizable
  • Apache-2.0 and well documented

Cons

  • Library only, needs app around it
  • Block UX can be verbose for adults
  • Large flows hard to read

Integrations

JavaScriptPythonMIT App InventorArduino

Blockly alternatives

See all Blockly alternatives →

Compare Blockly

Frequently asked questions

What is Blockly?

Blockly is a client-side library, created at Google and stewarded by the Raspberry Pi Foundation since 2025, for adding drag-and-drop block coding to apps. Blocks generate code in JavaScript, Python, PHP, Lua or Dart, and Blockly powers tools like MIT App Inventor, Code.org and Scratch-inspired editors as well as many low-code rule builders.

How much does Blockly cost?

Blockly pricing: Free (open source). Free and open source; self-host at no cost.

Is Blockly open source?

Yes. Blockly is open source under the Apache-2.0 licence and its code is on GitHub at github.com/RaspberryPiFoundation/blockly.

Can Blockly be self-hosted?

Yes. Blockly supports self-hosted deployment.

What are the best alternatives to Blockly?

Popular alternatives to Blockly include Rete.js, Node-RED, amis, JeecgBoot, Skyve. See the full list of Blockly alternatives on lowcodeplatforms.org.

Who is Blockly best for?

Developers adding visual block programming to educational or rule-building products.