bpmnkit view spawns a local HTTP server and opens the system browser to display BPMN diagrams,
DMN decision tables, and Camunda forms. All rendering happens server-side — no browser plugins required.
Commands
bpmnkit view
├── open — view any mix of .bpmn, .dmn, and .form files (auto-detects type)
├── bpmn — view BPMN files rendered as SVG
├── dmn — view DMN decision tables
└── form — view Camunda form layouts
Subcommands
bpmnkit view open
Accepts any combination of .bpmn, .dmn, and .form files or directories. File type is
detected automatically from the extension.
# Mixed file types
bpmnkit view open order.bpmn routing.dmn review.form
# Entire project folder — all supported files get tabs
bpmnkit view open ./project/
# Mix files and folders
bpmnkit view open ./processes/ extra.dmn review.form
bpmnkit view bpmn
Renders BPMN diagrams server-side as SVG using exportSvg from @bpmnkit/core.
# Single file
bpmnkit view bpmn process.bpmn
# All .bpmn files in a folder
bpmnkit view bpmn ./processes/
# Multiple specific files
bpmnkit view bpmn order.bpmn payment.bpmn shipping.bpmn
bpmnkit view dmn
Renders DMN decision tables as ASCII art in a monospace panel.
bpmnkit view dmn eligibility.dmn
bpmnkit view dmn ./decisions/
bpmnkit view form
Renders Camunda form layouts (.form files) as ASCII art in a monospace panel.
bpmnkit view form approval.form
bpmnkit view form ./forms/
Folder support
Pass a directory instead of individual files. The viewer scans the top level of the directory for files with the matching extension and gives each one its own tab.
# All .bpmn files in ./processes/
bpmnkit view bpmn ./processes/
# All supported types in ./project/
bpmnkit view open ./project/
Flags
All subcommands accept the same flags:
| Flag | Description | Default |
|---|---|---|
--port | Port for the local server | 3044 |
--theme | Color theme: light or dark | light |
--no-open | Do not open the browser automatically | false |
# Dark theme on a custom port without auto-opening
bpmnkit view bpmn process.bpmn --theme dark --port 8080 --no-open
Tabbed navigation
When multiple files are loaded, the viewer renders a tab bar at the top. Click a tab to switch diagrams. Tabs show the filename and are colour-coded by type (BPMN / DMN / Form).
Stopping the server
Press Ctrl+C in the terminal where bpmnkit view is running. The server shuts down cleanly.
Usage in an AI workflow
# Generate a process, then immediately view it
bpmnkit generate bpmn --template approval --process-id approve
bpmnkit view bpmn approve.bpmn
# Inspect a folder of processes together
bpmnkit view open ./processes/
# After patching an existing file, verify the result
bpmnkit generate bpmn --input order.bpmn --patch '...'
bpmnkit view bpmn order.bpmn --no-open --port 3044