Client-side JavaScript library that adds a customizable block-based code editor to web apps, exporting code while teaching logic without raw syntax.
Overview
Blockly is a library that embeds a visual programming editor in web applications. Interlocking graphical blocks represent variables, loops, conditions, and other concepts so users focus on logic instead of typing syntax, while the editor can emit code in target languages you configure.
Developers install it via npm or bootstrap tools, then integrate using documented APIs, codelabs, samples, and plugins that add fields, themes, renderers, and extra behavior. The editor is entirely client-side with no server dependency and targets major desktop browsers; keyboard navigation and screen reader support are built in with accessibility conformance documentation available.
Blockly underpins large block-based education products used by millions of learners worldwide, though end learners typically interact through those products rather than importing the library directly. Software teams use it as a ready-made UI for domain-specific block languages and custom blocks tailored to their apps.
Stewardship moved to the Raspberry Pi Foundation while remaining free under Apache 2.0. Releases ship on npm with semantic versioning; production apps are expected to pin released versions rather than untested main-branch snapshots.
Key features
- Drag-and-drop block editor
- Custom blocks and code export
- npm package and create-package bootstrap
- Plugin system for fields and themes
- Keyboard and screen reader accessibility
- Client-side browser-only deployment
- Codelabs and sample integrations
Use cases
- Block-based coding education platforms
- Domain-specific visual editors
- Teaching programming without syntax friction
- Embedded coding widgets in web apps