feat: add visual builder + workspace mode to Burr UI#687
Open
andreahlert wants to merge 1 commit intoapache:mainfrom
Open
feat: add visual builder + workspace mode to Burr UI#687andreahlert wants to merge 1 commit intoapache:mainfrom
andreahlert wants to merge 1 commit intoapache:mainfrom
Conversation
Adds a low-code visual builder with split-view Monaco editor, workspace file browsing, and project persistence. Builder features: - 9 node types (Action, Input, Result, LLM Call, API Call, Code, Streaming, Loop, Router) with specialized property editors - Inline + buttons on edges for inserting nodes (Activepieces-style) - Recursive layout algorithm supporting loop arcs and router fan-out - Monaco Editor with multi-file code generation (actions.py, app.py, run.py, requirements.txt) - Bidirectional sync between graph and code - Searchable node type picker with categories - File menu with save/load projects, Ctrl+S support - Undo/redo (50-state history), copy/paste, delete shortcuts - Code generation with sanitized identifiers and proper imports Workspace features: - Backend router for file browsing, code viewing, script execution (SSE streaming), process management, and workspace-project linking - Builder project persistence in ~/.burr/builder_projects/ - Path traversal protection with workspace validation New dependencies (all MIT, ASF Category A): - @monaco-editor/react - @tanstack/react-query - @xyflow/react - react-joyride
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Building on #667 (Graph Builder by @skrawcz), this adds a workspace mode and significantly enhanced builder that turns Burr's UI into a development environment.
What's new
Visual Builder (enhanced)
Monaco Editor (split view)
Project save/load
Workspace integration
Other improvements
Screenshots
Builder with nodes and generated code

Node editor with LLM Call configuration

Searchable node type picker

Technical details
Backend (Python)
burr/tracking/server/workspace.py: new APIRouter with endpoints for file tree, file content, script execution (SSE), process management, workspace links, and builder project persistencerun.pyto mount workspace router,schema.pyto addsupports_workspaceFrontend (~6,700 new lines)
utils/: builderTypes, codeGenerator (9 node types + multi-file), codeParser (bidirectional sync), flowLayout (recursive layout), treeUtils (immutable tree ops), stateFlowhooks/useBuilderState.ts: tree-based state with undo/redo, keyboard shortcuts, save/loadbuilder/: BuilderView (split layout), BuilderGraph (ReactFlow with custom node/edge types), NodeEditor, NodeTypePicker (portal-based), 4 node components, 5 edge components with inline + buttonsworkspace/: FileExplorer, CodeViewer, RunTerminal, WorkspaceSelectorproject/: ProjectWorkspaceView, ActivityBar, SidePanel, TabBar, TrackingSidePanelDependencies added
@monaco-editor/react(MIT)@tanstack/react-query(MIT)@xyflow/react(MIT)react-joyride(MIT)All MIT license, ASF Category A compatible.
How I tested
npx tsc --noEmitzero errorsChecklist