d2 icon indicating copy to clipboard operation
d2 copied to clipboard

Online playground

Open KevinZhang19870314 opened this issue 2 years ago • 1 comments
trafficstars

Have a plan to build a online playground (in browser)? I think it will make more people happy to have a try this, but install it locally.

KevinZhang19870314 avatar Nov 25 '22 10:11 KevinZhang19870314

yes, this is in the works! thanks for the feedback

alixander avatar Nov 25 '22 16:11 alixander

I was looking for a way to do this so I put together a basic docker webapp with server side rendering and an API. Not perfect as no syntax highlighting, but has done the job for me for now.

https://github.com/BadgerHobbs/D2-Docker-Playground

BadgerHobbs avatar Nov 26 '22 09:11 BadgerHobbs

Hi @KevinZhang19870314, I was also hoping for the web playground. I just managed to host a simple API that serves up the svg from the D2 script. And I was able to build a very basic playground on top of that.

You can check it out here:- https://playground-d2-lang.netlify.app/

If you have any feedback, or you wish to collaborate on the project, feel free to raise an issue here https://github.com/YashBhalodi/d2-lang-playground.

YashBhalodi avatar Nov 27 '22 06:11 YashBhalodi

https://play.d2lang.com/ from #454

gavin-ts avatar Dec 17 '22 04:12 gavin-ts