Opening Block Search
To open block search:Find an Empty Room
Locate an empty block room in the Playground or Factory where you want to add a block.
Search Interface
The block search interface consists of:Search Input
A text field with the placeholder: “Search name, type, or description” The search is fuzzy and matches against:- Block names (e.g., “ellipse”, “fill”, “random”)
- Block types (e.g., “shape”, “color”, “math”)
- Block descriptions and functionality
Results List
As you type, matching blocks appear in a horizontal scrollable list showing:- Block preview with visual styling
- Block description (truncated to ~65 characters)
- Input and output nodes
Search results update in real-time as you type. Leave the input empty to close the results.
Keyboard Navigation
Block search supports full keyboard control:- Arrow Keys
- Enter
- Escape
Left Arrow / Right ArrowNavigate between search results. The focused block is highlighted and its description is emphasized.The list automatically scrolls to keep the focused block visible.
Mouse Interaction
Adding Blocks
Block is Added
The block is immediately added to the canvas at the position where you opened search.
Moving the Search Bar
The search interface can be repositioned:Closing Search
Click anywhere outside the search bar to close it without adding a block.Search Algorithm
The block search uses fuzzy matching to find relevant blocks:- Searches across multiple fields simultaneously
- Ranks results by relevance
- Includes both predefined and custom blocks
- Updates instantly as you type
Block Types
Search results include two sources:- Predefined Blocks
- Custom Blocks
Built-in blocks that come with b5:
- Shape drawing blocks
- Color and style blocks
- Math and logic blocks
- Control flow blocks
- And many more
Visual Feedback
Block Coloring
Each block in search results is displayed with a random color generated when the search opens. This color:- Helps distinguish blocks visually
- Makes the interface more engaging
- Is generated fresh for each search session
The search color is stored in session storage and cleared when search closes.
Description Truncation
Descriptions longer than 65 characters are automatically truncated:- Full words are preserved (no mid-word cuts)
- Ellipsis (”…”) indicates truncation
- Hover on blocks for full descriptions (embedded documentation)
Search Context
Block search is context-aware:- Playground search: Shows all available blocks
- Factory search: Shows blocks appropriate for that context
- Custom blocks: Appear alongside predefined blocks
Best Practices
Start Typing Immediately
The search input is automatically focused, so you can start typing right away.
Use Keywords
Search for what the block does (“draw circle”) rather than exact names.
Navigate with Keys
Use arrow keys and Enter for fast keyboard-only workflow.
Close with Escape
Hit Escape to quickly cancel if you opened search by accident.
Embedded Documentation
All blocks in b5 have embedded documentation:- Hover over any block to see its full description
- Hover over nodes to see parameter details
- Hover over input boxes for value explanations
Limitations
Next Steps
Playground
Learn about the main code canvas
Factory
Create custom blocks to use in search