Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bonndan/dld4e-headless
server-side rendering of network and architecture diagrams
https://github.com/bonndan/dld4e-headless
diagram headless network
Last synced: 5 days ago
JSON representation
server-side rendering of network and architecture diagrams
- Host: GitHub
- URL: https://github.com/bonndan/dld4e-headless
- Owner: bonndan
- Created: 2018-06-26T20:27:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T20:32:37.000Z (11 months ago)
- Last Synced: 2024-08-01T12:31:57.437Z (3 months ago)
- Topics: diagram, headless, network
- Language: JavaScript
- Homepage: https://github.com/cidrblock/drawthe.net
- Size: 4.64 MB
- Stars: 14
- Watchers: 5
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-starred - bonndan/dld4e-headless - server-side rendering of network and architecture diagrams (others)
README
# Decent looking diagrams for engineers - headless
Send dld4e.com yaml files to this service to obtain server side rendered network diagrams.
![Groups](https://raw.githubusercontent.com/bonndan/dld4e-headless/master/examples/groups.png)
See dld4e.com
## Usage
Run with
docker run -p 3030:3030 bonndan/dld4e-headless:latest
Test SVG generation ((send accept header) with
cat examples/groups.yaml | curl -v -X POST -H "Content-Type: text/yaml" -H "Accept: image/svg+xml" --data-binary @- http://localhost:3030 > /tmp/groups.svg
Test PNG generation (default) with
cat examples/groups.yaml | curl -v -X POST -H "Content-Type: text/yaml" --data-binary @- http://localhost:3030 > /tmp/groups.png
## Development
This app requires imagemagick.
sudo apt-get install imagemagick
npm installRun with
node --inspect src/index.js
or for debugging in docker
docker run -p 3030:3030 -p 9229:9229 bonndan/dld4e-headless:latest
## License
This project is licensed under the MIT License. [MIT License](http://www.opensource.org/licenses/MIT).