Viewer Guide
ProtoML now has two viewer paths: the Electron-based protoviewer and the browser-based independent viewer in web/index.html.
Independent browser viewer
The browser viewer gives you an editor, local file upload, drag-and-drop loading, in-browser preview, and HTML export without requiring Electron.
npm run build:web
protoparser viewer
protoparser viewer app "./meeting.pml"
protowebviewer "./meeting.pml"
Start the viewer
protoviewer "test.pml"
protoviewer "test.pml" dark
This is the fastest way to inspect the rendered shape of a document while you are still editing the source.
When to use the viewer vs. CLI rendering
- Use the browser viewer when you want an independent, cross-platform local workspace
- Use
protoviewerfor immediate local review - Use
protoparser ... html|pdf|json|markdown|textwhen you need export files or automation
Typical workflow
- Edit the
.pmlfile - Open it in
protoviewerfor local review - Use
protoparserwhen you need distributable output
Limits
- The viewer is a local GUI tool, not a publishing pipeline
- It complements the CLI, but does not replace export or analysis commands
- The browser viewer works from source text or uploaded files, not direct arbitrary filesystem path access