Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ayaka14732/graphviz-server

Render Graphviz images from web requests
https://github.com/ayaka14732/graphviz-server

api graphviz server

Last synced: about 2 months ago
JSON representation

Render Graphviz images from web requests

Awesome Lists containing this project

README

        

# Graphviz Server

A server that renders graphviz image from web requests.

## Motivation

Render graph images on webpage.

## Example

Graphviz source:

```graphviz
digraph G {
bgcolor=grey
A -> B;
}
```

URI encode:

https://graphviz.shn.hk/?src=digraph%20G%20%7B%0A%20bgcolor%3Dgrey%0A%20A%20-%3E%20B%3B%0A%7D

Result:

![](https://graphviz.shn.hk/?src=digraph%20G%20%7B%0A%20bgcolor%3Dgrey%0A%20A%20-%3E%20B%3B%0A%7D)

## API Usage

Query string:

- `src`: graphviz source code
- `format`: currently one of 'svg', 'png', 'gif', 'pdf'

## Supported Scripts

- CJK Characters
- Emoji
- Khmer
- Latin

Please open an issue if you want more writing systems to be supported.

## Deploy

The service is supposed to be deployed with Docker containers.