A java app for rendering plantuml diagrams sourced from the Internet.
Pattern: /github/{owner}/{repo}/blob/{commit}/{path}
Example: https://demo.puml.net/github/lyang/puml/blob/main/github.md
More examples can be found in github.md
Pattern: /gitlab/projects/{repo}/files/{commit}/{path}
Example: https://demo.puml.net/gitlab/projects/32006361/files/main/gitlab.md
More examples can be found in gitlab.md
Pattern: /raw/{url}
Example: https://demo.puml.net/raw/https%3A%2F%2Fraw.githubusercontent.com%2Flyang%2Fpuml%2Fmain%2Fgithub.md
For resources requiring authentication (like private repos), Credential can be configured for it. So far, only AuthorizationHeader is implemented.
Credentials will only be used when the configured url pattern matches the outbound request. Examples can be found in puml-demo.yaml
If proxy authentication is required, it auto retries the request using http(s).proxyUser
and http(s).proxyPassword
system property.
Dependency: gradle-7.3.1
, graphviz
Building the fat jar:
gradle build
Run it locally:
gradle run --args="server config.yaml"
For IDE, I use IntelliJ CE
Prebuilt images are at: linyang1218/puml
Docker Hub