Skip to main content
Get up and running with b5 in just a few minutes. This guide will walk you through creating your first visual program using blocks, nodes, and wires.

Open the editor

Visit b5editor.app to access the b5 online editor. No installation required.
The editor works best on desktop browsers. Mobile support is limited.

Create your first program

1

Open the Playground

The Playground is the main code canvas on the left side. It runs at 60 FPS by default, like the draw() function in p5.js.
2

Add a block

Double-click on any empty block room (grid cell) to open the block search. Search for “circle” and press Enter to add a circle block.
3

Add inputs

Double-click the block rooms to the left of the circle to add input blocks:
  • Add a number block above the first input (x position)
  • Add another number block above the second input (y position)
  • Add a third number block above the third input (diameter)
4

Connect with wires

Click and drag from the output node (bottom) of each number block to the input node (top) of the circle block. The wire shows the data flow.
5

Set values

Click on each number block to set values:
  • X position: 250
  • Y position: 150
  • Diameter: 100
6

Add color

Double-click to the left of the circle block (same row) to add a fillPicker block. This is an effect block that sets the fill color for blocks to its right.Click the color picker to choose a color.
7

Watch it run

Check the Viewer on the right to see your circle! The canvas updates in real-time as you make changes.
8

Save your work

Press ⌘/Ctrl + S to save your project as a .b5.json file. You can drag it back into the editor anytime to continue.
Hover over any block, node, or input to see embedded documentation.

Key concepts you just used

Sequential execution

Blocks execute left-to-right, line-by-line, top-to-bottom

Data flow

Wires connect output nodes (bottom) to input nodes (top)

Effect blocks

Some blocks affect others by position, not wires (like fillPicker)

Live coding

Changes appear instantly at 60 FPS

Next steps

Build your first project

Follow a complete tutorial to build a bouncing ball animation

Explore the editor

Learn about the Playground, Factory, and all editor features

Browse examples

Check out example projects with detailed explanations

Block reference

Explore all available blocks and their parameters

Keyboard shortcuts

ShortcutAction
Double-clickOpen block search
Click + hold empty spacePan around canvas
ScrollZoom in/out
Shift + scrollScroll horizontally
⌘/Ctrl + SSave project
EscapeClose dialogs
Need help? Click the link icon at the top-left of the editor to report issues or start a discussion on GitHub.