Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
/ puppeteer Public archive
forked from structurizr/puppeteer

Code samples for scripting Structurizr with Puppeteer.

License

Notifications You must be signed in to change notification settings

BBC-archive/puppeteer

 
 

Repository files navigation

Due to the removal of Structurizr 1.0.0 we have archived this repo as the scripts no longer work on a free cloud-hosted account (see: RMSERVICES-7227 for more details)

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

Code samples for scripting Structurizr with Puppeteer.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%