Blockly is an open-source JavaScript library that adds a drag-and-drop visual code editor to web apps, so users can build programs from interlocking blocks instead of typing syntax.