casen view
casen 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
Section titled “Commands”casen 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 layoutsSubcommands
Section titled “Subcommands”casen view open
Section titled “casen view open”Accepts any combination of .bpmn, .dmn, and .form files or directories. File type is
detected automatically from the extension.
# Mixed file typescasen view open order.bpmn routing.dmn review.form
# Entire project folder — all supported files get tabscasen view open ./project/
# Mix files and folderscasen view open ./processes/ extra.dmn review.formcasen view bpmn
Section titled “casen view bpmn”Renders BPMN diagrams server-side as SVG using exportSvg from @bpmnkit/core.
# Single filecasen view bpmn process.bpmn
# All .bpmn files in a foldercasen view bpmn ./processes/
# Multiple specific filescasen view bpmn order.bpmn payment.bpmn shipping.bpmncasen view dmn
Section titled “casen view dmn”Renders DMN decision tables as ASCII art in a monospace panel.
casen view dmn eligibility.dmncasen view dmn ./decisions/casen view form
Section titled “casen view form”Renders Camunda form layouts (.form files) as ASCII art in a monospace panel.
casen view form approval.formcasen view form ./forms/Folder support
Section titled “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/casen view bpmn ./processes/
# All supported types in ./project/casen view open ./project/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-openingcasen view bpmn process.bpmn --theme dark --port 8080 --no-openTabbed navigation
Section titled “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
Section titled “Stopping the server”Press Ctrl+C in the terminal where casen view is running. The server shuts down cleanly.
Usage in an AI workflow
Section titled “Usage in an AI workflow”# Generate a process, then immediately view itcasen generate bpmn --template approval --process-id approvecasen view bpmn approve.bpmn
# Inspect a folder of processes togethercasen view open ./processes/
# After patching an existing file, verify the resultcasen generate bpmn --input order.bpmn --patch '...'casen view bpmn order.bpmn --no-open --port 3044