Not designed for production use, just for fun. These are a collection of microservices that I use for various things.
They are likely to want additional error checking and security before being used in production unless you know what you are doing.
If you want to use these, you can either build the containers yourself or use the prebuilt ones on dockerhub.
Want to support me? Sponsor me on GitHub or paypal.me/darkflib
Custom builds are available on request, just open an issue.
- mermaid-api - simple wrapper around mermaid to render graphs
- markdown-api - simple markdown to html service
- email - WIP email worker
- geohash-api - simple geohash converter
- picotts-api - picotts wrapper
- highlight-api - pygments wrapper
docker buildx build --platform linux/amd64,linux/arm64 -t darkflib/mermaid-api:latest --push .
docker run -it -p 8003:8000 darkflib/mermaid-api:latest
Json input format:
{
"graph_definition": "graph LR;A-->B;B-->C;C-->A",
"img_format": "png",
"theme": "default",
"width": 800,
"height": 600,
"bg_color": "transparent",
"scale": 1
}
curl -X POST -H "Content-type: application/json" http://localhost:8003/mermaid -d
'{
"graph_definition": "graph LR;A-->B;B-->C;C-->A"
}'
docker buildx build --platform linux/amd64,linux/arm64 -t darkflib/markdown-api:latest --push .
docker run -it -p 8004:8000 darkflib/markdown-api:latest
curl -X POST -H "Content-type: application/json" http://localhost:8004/markdown -d
'{
"markdown-text": "# Hello World\n\nThis is a test\n\n## Subtitle\n\nThis is a test\n\n### Subsubtitle\n\nThis is a test\n\n#### Subsubsubtitle\n\nThis is a test\n\n##### Subsubsubsubtitle\n\nThis is a test\n\n###### Subsubsubsubsubtitle\n\nThis is a test\n\n####### Subsubsubsubsubsubtitle\n\nThis is a test\n\n######## Subsubsubsubsubsubsubtitle\n\nThis is a test\n\n######### Subsubsubsubsubsubsubsubtitle\n\nThis is a test\n\n########## Subsubsubsubsubsubsubsubsubtitle\n\nThis is a test\n\n########### Subsubsubsubsubsubsubsubsubsubtitle\n\nThis is a test\n\n############ Subsubsubsubsubsubsubsubsubsubsubtitle\n\nThis is a test\n\n"
}'
Work in progress
docker buildx build --platform linux/amd64,linux/arm64 -t darkflib/geohash-api:latest --push .
docker run -it -p 8002:8000 darkflib/geohash-api:latest
curl -X POST -F "lat=51.5074" -F "lon=0.1278" http://localhost:8002/geohash
curl -X POST -F "lat=51.5074" -F "lon=0.1278" -F "precision=5" http://localhost:8002/geohash
curl -X POST -F "geohash=<geohash>" http://localhost:8002/ungeohash
docker buildx build --platform linux/amd64,linux/arm64 -t darkflib/picotts-flask:latest --push .
docker run -it -p 8001:8000 darkflib/picotts-flask:latest
curl -X POST -F "text=Hello, how are you?" -o output.wav http://localhost:8001/synthesize
docker buildx build --platform linux/amd64,linux/arm64 -t darkflib/highlight-api:latest --push .
docker run -it -p 8005:8000 darkflib/highlight-api:latest
curl -X POST -H "Content-type: application/json" http://localhost:8005/highlight -d
'{
"code": "print('Hello World')",
"language": "python",
"style": "default", # todo
"output_format": "html",
"line_numbers": true, # todo
"download": false # todo
}'