Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluate D2 from Terrastruct #1323

Closed
ggrossetie opened this issue Aug 30, 2022 · 10 comments
Closed

Evaluate D2 from Terrastruct #1323

ggrossetie opened this issue Aug 30, 2022 · 10 comments
Labels

Comments

@ggrossetie
Copy link
Member

ggrossetie commented Aug 30, 2022

It's currently in alpha, during which it's only housed on Terrastruct, which provides the most well-supported interface (IDE) for it. Once we have a stable v1, we'll release and continue development of it in open source and make local options available.

https://d2-lang.com/tour/intro

It looks interesting! 🧐

@alixander
Copy link

it is now open-source =)

https://github.com/terrastruct/d2

@ggrossetie
Copy link
Member Author

Looking good, thanks for the heads-up. I will prototype an integration 😄

@ggrossetie
Copy link
Member Author

First step, compile v8go on Alpine (musl libc): rogchap/v8go#350 which is a dependency of d2.

@alixander
Copy link

alixander commented Dec 7, 2022

@Mogztter , i found your PR there on v8go and had actually linked it in an issue of D2, sharing with a fellow maintainer that "oh cool, someone's working on this" terrastruct/d2#31

I didn't know til checking back here that it was motivated from this hah. I'm sure it's going to be useful for a lot of projects, but for D2, we've actually just moved off of v8go. It didn't support Windows, so that was a nonstarter. (we're running Javascript in Goja now).

The new release this morning has no dependency on v8go, hopefully that can remove this blocker!

@ggrossetie
Copy link
Member Author

Awesome! I will give it a try, thanks for the heads-up 🙌

@ggrossetie
Copy link
Member Author

Sneak peek:

d2-kroki

@alixander
Copy link

alixander commented Dec 10, 2022

unrelated to inclusion of D2 -- ty for the work you do in open source @Mogztter. When we were just starting on the design of D2 and researching various tools, Kroki made it easy to try out many. It's also clear how much value the community gets from Kroki -- I see it everywhere in threads on diagramming, including posts we make (https://news.ycombinator.com/item?id=33705778). Terrastruct is proud to sponsor your work 🙌

@ggrossetie
Copy link
Member Author

Thank you so much, it means a lot 🤗

@Airkro
Copy link
Contributor

Airkro commented Feb 20, 2023

How to passing D2 flags like: https://d2lang.com/tour/sketch

@ggrossetie
Copy link
Member Author

@Airkro you can configure the theme: https://docs.kroki.io/kroki/setup/diagram-options/#_d2 but the sketch option is not available. Please open a new issue to request this enhancement and feel free to submit pull request! 🤗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants