All Projects → TomWright → Mermaid Server

TomWright / Mermaid Server

Go implementation of a HTTP server to allow remote generation of mermaid-js diagrams without any pre-requisites installed locally.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Mermaid Server

Diagram
☊ Tool for making node graphs. Inspired by dependency graph. Used mainly for automation services 📈
Stars: ✭ 510 (+684.62%)
Mutual labels:  diagram
Protobuf Uml Diagram
Create UML diagrams from Protobuf compiled .proto files using Python
Stars: ✭ 17 (-73.85%)
Mutual labels:  diagram
React Flow Chart
A flexible, stateless, declarative flow chart library for react.
Stars: ✭ 1,051 (+1516.92%)
Mutual labels:  diagram
Aws Plantuml
PlantUML sprites, macros, and other includes for AWS components.
Stars: ✭ 565 (+769.23%)
Mutual labels:  diagram
Drawthe.net
drawthe.net draws network diagrams dynamically from a text file describing the placement, layout and icons. Given a yaml file describing the hierarchy of the network and it's connections, a resulting diagram will be created.
Stars: ✭ 729 (+1021.54%)
Mutual labels:  diagram
Grav Plugin Diagrams
Diagrams is a Grav plugin that adds simple and powerful diagrams functionality
Stars: ✭ 37 (-43.08%)
Mutual labels:  diagram
Wfd Vue
flowable workflow designer for Vue base on @antv/g6
Stars: ✭ 482 (+641.54%)
Mutual labels:  diagram
Deep Viz
A React component library, providing concise and beautiful diversity charts with Canvas, SVG, E-map, WebGL, Dom, based on data visualization experience and commercial data display practice.
Stars: ✭ 55 (-15.38%)
Mutual labels:  diagram
Jsplumb
Visual connectivity for webapps
Stars: ✭ 6,758 (+10296.92%)
Mutual labels:  diagram
Gatsby Embedder Excalidraw
🤴 Custom transformer to embed Excalidraw diagrams
Stars: ✭ 45 (-30.77%)
Mutual labels:  diagram
Gojs
JavaScript diagramming library for interactive flowcharts, org charts, design tools, planning tools, visual languages.
Stars: ✭ 5,739 (+8729.23%)
Mutual labels:  diagram
Arkit
JavaScript architecture diagrams and dependency graphs
Stars: ✭ 671 (+932.31%)
Mutual labels:  diagram
Uml Diagram For Python Design Pattern Examples
UML diagram list of GoF design pattern examples written in Python.
Stars: ✭ 40 (-38.46%)
Mutual labels:  diagram
Reftree
Automatically generated diagrams and animations for Scala data structures
Stars: ✭ 566 (+770.77%)
Mutual labels:  diagram
Glsp
Graphical language server platform for building web-based diagram editors
Stars: ✭ 53 (-18.46%)
Mutual labels:  diagram
Regulex
🚧 Regular Expression Excited!
Stars: ✭ 4,877 (+7403.08%)
Mutual labels:  diagram
Flowchart.js
Draws simple SVG flow chart diagrams from textual representation of the diagram
Stars: ✭ 7,711 (+11763.08%)
Mutual labels:  diagram
React Gojs
GoJS React integration
Stars: ✭ 59 (-9.23%)
Mutual labels:  diagram
Asciidoctor Kroki
Asciidoctor.js extension to convert diagrams to images using Kroki!
Stars: ✭ 55 (-15.38%)
Mutual labels:  diagram
G6
♾ A Graph Visualization Framework in JavaScript
Stars: ✭ 8,490 (+12961.54%)
Mutual labels:  diagram

mermaid-server

Use mermaid-js to generate diagrams in a HTTP endpoint.

While this currently serves the diagrams via HTTP, it could easily be manipulated to server diagrams via other means.

Basic usage

Docker

Run the container:

docker run -d --name mermaid-server -p 80:80 tomwright/mermaid-server:latest

Manually as a go command

Start the HTTP server:

go run cmd/app/main.go --mermaid=./mermaidcli/node_modules/.bin/mmdc --in=./in --out=./out

Diagram creation

Use the query param 'type' to change between 'png' and 'svg' defaults to 'svg'.

POST

Send a CURL request to generate a diagram via POST:

curl --location --request POST 'http://localhost:80/generate' \
--header 'Content-Type: text/plain' \
--data-raw 'graph LR

    A-->B
    B-->C
    C-->D
    C-->F
'

GET

Send a CURL request to generate a diagram via GET... send in url encoded data under the data query param:

curl --location --request GET 'http://localhost:80/generate?data=graph%20LR%0A%0A%20%20%20%20A--%3EB%0A%20%20%20%20B--%3EC%0A%20%20%20%20C--%3ED%0A%20%20%20%20C--%3EF%0A'

Example request in Postman

Caching

All generated diagram input and output will be cached for 1 hour. The cache time is reset whenever a cached diagram is accessed.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].