← Catalog

pi-bpmn-side-view

Display interactive BPMN 2.0 diagrams in a resizable side or top split view inside Pi.

Extension

Install

Install with PiG

pig install npm:pi-bpmn-side-view

Install with Pi

pi install npm:pi-bpmn-side-view
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "image": "https://raw.githubusercontent.com/henrywen98/pi-bpmn-side-view/main/assets/preview-fit.png",
  "extensions": [
    "./index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.0 (README.md). PiG does not review it.

pi-bpmn-side-view

Interactive BPMN 2.0 split-view inside the Pi coding agent terminal.

Inspect and iterate on BPMN 2.0 workflows right next to your Pi chat — without switching to a browser, losing editor focus, or fighting tmux image protocols.

Zero runtime dependencies. Works over SSH, inside tmux, on landscape and portrait monitors, with crisp CJK and English labels.

Auto-fit full BPMN diagram in right-side split view

Why

  • True split view, zero overlap: In Pi fullscreen mode (tuiMode: "fullscreen"), chat and input stay on the left while BPMN renders on the right. Keep typing while reading the flow.
  • Auto-fit full diagram (FIT, default): Terminal emulators inside tmux cannot pinch-to-zoom. FIT adapts the entire multi-lane diagram to your pane dimensions so you see start-to-end on one screen; press + anytime to zoom into compact (CMP) or full boxed (DET) swimlanes.
  • Landscape & portrait aware: Right-side split on wide screens, automatic top-bottom split on vertical monitors (auto, or press v / /bpmn dock).
  • Trackpad & mouse native: Drag the divider border to resize (20%–75%), grab-and-drag inside the canvas to pan in 2D, scroll vertically or horizontally, and click any node to inspect its lane, documentation, and outgoing conditions.
  • Agent-native: Exposes the show_bpmn tool so Pi can open or update the diagram directly, auto-detects fenced bpmn XML replies, and live-reloads .bpmn files on disk changes.
More screenshots: Swimlanes & Portrait Monitor Split

Boxed Swimlanes

Swimlane view

Portrait Terminal (Auto Top Split + Draggable Horizontal Divider)

Portrait top split view

Install

Requires Node.js >= 22.19 and Pi >= 1.6.0.

From npm:

pi install npm:pi-bpmn-side-view

From GitHub (pinned release tag):

pi install git:github.com/henrywen98/pi-bpmn-side-view@v0.1.0

Try once without installing:

pi -e npm:pi-bpmn-side-view

Run /reload in Pi (or restart Pi), then run /bpmn demo.

Quick Start

/bpmn demo                      # Open built-in multi-lane Purchase Approval BPMN 2.0 demo
/bpmn ./workflow.bpmn           # Open and live-watch a local .bpmn file
/bpmn list                      # Pick from .bpmn files in the workspace
/bpmn fit                       # Auto-fit full diagram to pane
/bpmn zoom fit|compact|detail   # Switch density level
/bpmn layout tb|lr              # Vertical (TB) or horizontal (LR) swimlanes
/bpmn dock auto|right|top|bottom# Panel placement (auto adapts to portrait monitors)
/bpmn size 50                   # Set pane size percentage (20-75)
/bpmn modal                     # Full-screen overlay (useful on tiny terminals)
/bpmn close                     # Close the BPMN view

You can also ask Pi directly: "Draw our refund approval flow as BPMN 2.0 and show it on the right." — Pi calls show_bpmn automatically.

Controls

ActionMouse / TrackpadKeyboard (after Alt+G or click)
Resize panelDrag │ (right) or ─ (top/bottom) border[ / ]
Pan diagramGrab-and-drag canvas, 2-finger scroll, Shift+scrollh/j/k/l or arrow keys, u/d / PgUp/PgDn
Zoom / Auto-fitClick [FIT] in header+ / - / f
Switch TB ↔ LRClick [TB] in headero
Switch dock positionClick [A:R] in headerv
Select & inspect nodeClick any nodeTab / Shift+Tab (or n / p)
Model summary drawer—i
Return focus to chatClick chat paneEsc or Alt+G
Close panelClick [×] in headerq or /bpmn close

Supported BPMN 2.0 Elements

  • Containers: Collaborations, Pools (including black-box external participants), Lanes, nested childLaneSet
  • Events: Start, End, Intermediate Catch/Throw, Boundary (attachedToRef) with Timer, Message, Error, Signal, and Terminate markers
  • Activities: Task, User Task, Service Task, Script Task, Manual Task, Business Rule Task, Send/Receive Task, Call Activity, Sub-Process
  • Gateways: Exclusive (◇×), Parallel (◇+), Inclusive (◇○), Event-based (◇◎), Complex (◇*)
  • Connections & Notes: Sequence flows (with conditions & default marker), dashed Message flows across pools, cycle-safe rework loops, Text Annotations

Development & Testing

npm run typecheck
npm test
/usr/bin/python3 test/tui-e2e.py --out evidence

License

MIT © Henry WEN