Blockly

BlocklyOriginal author(s)| Neil Fraser, Quynh Neutron, Ellen Spertus, Mark Friedman

|

Developer(s)| Google, MIT
Initial release| May 2012; 14 years ago (2012-05)
Stable release|

12.1.0 / 30 May 2025; 11 months ago (2025-05-30)[1]

Repository| github.com/google/blockly
Written in| JavaScript
Platform| Web browser
Size| 150 KB
Available in| 50 languages

List of languages

English

Type| Library
License| Apache License 2.0
Website| developers.google.com/blockly

Blockly is a client-side library for the programming language JavaScript for creating block-based visual programming languages (VPLs) and editors. A project of Google, it is free and open-source software released under the Apache License 2.0.[2] It typically runs in a web browser, and visually resembles the language Scratch.

Blockly uses visual blocks that link together to make writing code easier, and can generate code in JavaScript, Lua, Dart, Python, or PHP. It can also be customized to generate code in any textual programming language.[3]

## Contents

* 1 History
* 2 User interface
* 3 Customization
* 4 Applications
* 5 Features
* 6 References
* 7 External links

## History

Blockly development began in summer 2011. The first public release was in May 2012 at Maker Faire. Blockly was originally designed as a replacement for OpenBlocks in App Inventor.[4] Neil Fraser began the project with Quynh Neutron, Ellen Spertus, and Mark Friedman as contributors.

In October 2025, the Raspberry Pi Foundation announced that from 10 November 2025, the Blockly open source library and assets, and key members of the Blockly team will transition from Google to the Raspberry Pi Foundation.[5]

## User interface

File:Blockly Conditions to celsius.pngExample of Blockly code to convert from Fahrenheit to Celsius Example of Blockly code with a while loop

The default graphical user interface (GUI) of the Blockly editor consists of a toolbox, which holds available blocks, and where a user can select blocks, and a workspace, where a user can drag and drop and rearrange blocks. The workspace also includes, by default, zoom icons, and a trashcan to delete blocks.[6] The editor can be modified easily to customize and limit the available editing features and blocks.

## Customization

Blockly includes a set of visual blocks for common operations, and can be customized by adding more blocks. New blocks require a block definition and a generator. The definition describes the block's appearance (user interface) and the generator describes the block's translation to executable code. Definitions and generators can be written in JavaScript, or using a visual set of blocks, the Block Factory, which allows new blocks to be described using extant visual blocks; the intent is to make creating new blocks easier.

## Applications

Blockly is used in several notable projects, including:

* MIT's Scratch (since version 3.0), visual programming environment for education[7]
* MIT's App Inventor, to create applications for Android.[8]
* MIT's CoCo, visual collaborative programming website for education.
* Code.org, to teach introductory programing to millions of students in their Hour of Code program[9]
* Microsoft's MakeCode, "a free online learn-to-code platform where anyone can build games, code devices, and mod Minecraft" [10][11]
* RoboBlockly, a web-based robot simulation environment for learning coding and math
* PICAXE, to control their educational microchips[12]
* SAM Labs, in STEAM learn-to-code "education solutions"[clarification needed]

## Features

* Web-based using Scalable Vector Graphics (SVG)
* Completely client-side JavaScript
* Support of major web browsers including: Chrome, Firefox, Safari, Opera, Edge
* Support for many programmatic constructs including variables, functions, arrays
* Minimal type checking supported, designed for dynamically typed languages
* Easy to extend with custom blocks
* Clean code generation[13]
* Step-by-step code execution for tracing and debugging code[14]
* Localised into 100+ languages[15]
* Support for left-to-right and right-to-left languages[16]

## References

1. ↑ "Release blockly-v12.1.0 · google/blockly" (in en). https://github.com/google/blockly/releases/tag/blockly-v12.1.0.
2. ↑ Metz, Cade. "Google Blockly Lets You Hack With No Keyboard". Wired. https://www.wired.com/2012/06/google-blockly/.
3. ↑ "Google's Blockly Teaches You to Create Apps". 13 June 2012. http://www.nbcbayarea.com/blogs/press-here/Googles-Blockly-Teaches-You-to-Create-Apps-158935465.html.
4. ↑ "Google Groups". https://groups.google.com/forum/#!searchin/blockly/starlogo/blockly/eG2kQ5tyGpM/_ETqcdxH1rsJ.
5. ↑ CBE, Philip Colligan (2025-10-28). "The new home for Blockly" (in en-GB). https://www.raspberrypi.org/blog/new-home-for-blockly/.
6. ↑ Black, Lucy (12 June 2012). "Google Blockly – A Graphical Language with a Difference". http://www.i-programmer.info/news/98-languages/4357-google-blockly-a-graphical-language-with-a-difference.html.
7. ↑ "Scratch 3.0's new programming blocks, built on Blockly". https://developers.googleblog.com/2019/01/scratch-30s-new-programming-blocks.html.
8. ↑ "MIT App Inventor 2". http://ai2.appinventor.mit.edu/.
9. ↑ "Translate Code.org". http://code.org/translate.
10. ↑ "Microsoft MakeCode". https://www.microsoft.com/en-us/research/project/microsoft-makecode/.
11. ↑ "Microsoft MakeCode Computer Science Education". https://www.microsoft.com/en-us/makecode.
12. ↑ "PICAXE Blockly". https://picaxe.com/software/picaxe/blockly-for-picaxe/.
13. ↑ "Blockly Demo: Code". https://blockly-demo.appspot.com/static/demos/code/index.html.
14. ↑ "Blockly Demo: JS-Interpreter". https://google.github.io/blockly-samples/examples/interpreter-demo/step-execution.html.
15. ↑ "Localisation statistics for the Blockly core module". https://translatewiki.net/wiki/Special:MessageGroupStats/out-blockly-core#sortable:3=desc.
16. ↑ "Blockly Demo: RTL". https://google.github.io/blockly-samples/examples/rtl-demo/.

## External links

* Official website

* v
* t
* e

Google free and open-source software (FOSS)

Software|

| Applications|

* Chromium
* OpenRefine
* Tesseract

|

Programming languages|

* Dart
* Go
* Sawzall

Frameworks and
development tools|

* AMP
* Angular
* AngularJS
* Beam
* Blockly
* Closure Tools
* Cpplint
* FlatBuffers
* Flutter
* Gears
* Gerrit
* Guava
* gRPC
* Gson
* Guetzli
* Guice
* gVisor
* Kubernetes
* LevelDB
* libvpx
* Polymer
* TensorFlow

Operating systems|

* AOSP
* Chromium OS
* Fuchsia
* gLinux
* Goobuntu

Related|

* Code-in
* Open Source Security Foundation
* Summer of Code

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Blockly. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Software:Blockly&oldid=3955672"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template