Skip to content

u173487/d2-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple API to convert D2 files into SVG images

Usage

Build

docker build -t d2-api:latest

Run

docker run -p 3000:3000 d2-api:latest

Usage

curl -X POST "http://localhost:3000/convert" -F "file=@example.d2" -o diagram2.svg

Swap out url with actual location

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors