Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
/ puppeteer Public archive

structurizr/puppeteer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

These scripts are not compatible with the new consolidated tooling - see export for details of how to export PNG/SVG images.

Structurizr Puppeteer

This repo contains some Node.js examples of how to script and automate parts of Structurizr Lite/on-premises/cloud service using Puppeteer (and headless Chrome) from the command line, perhaps as a part of your build process.

The command line examples that follow assume that you have Node.js and Puppeteer installed.

Exporting diagrams

node export-diagrams.js <diagram page URL> <png|svg> [username] [password]

Examples

Structurizr Lite:

node export-diagrams.js http://localhost:8080/workspace/diagrams png

Unauthenticated access to diagrams on the cloud service:

node export-diagrams.js https://structurizr.com/share/36141/diagrams png

Authenticated access to diagrams on an on-premises installation

node export-diagrams.js http://localhost:8080/workspace/1/diagrams png username password

Exporting documentation

node export-documentation.js <documentation page URL> [username] [password]

Examples

Structurizr Lite (workspace or default documentation):

node export-documentation.js http://localhost:8080/workspace/documentation

Unauthenticated access to documentation on the cloud service (specific software system documentation):

node export-documentation.js https://structurizr.com/share/31/documentation/Financial%20Risk%20System

Authenticated access to documentation on an on-premises installation (workspace or default documentation):

node export-documentation.js http://localhost:8080/workspace/1/documentation username password

About

Example scripts for exporting diagrams/documentation from Structurizr Lite/on-premises/cloud with Puppeteer.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Contributors