ArthurSonzogni / Diagon

Interactive ASCII art diagram generators. :star2:
https://arthursonzogni.com/Diagon/
MIT License
1.55k stars 54 forks source link

How does the C++ command line version work? #78

Open cblc opened 1 month ago

cblc commented 1 month ago

I'm not a web developer, so that explains why I'm asking this question. I see that Diagon is written in JS. How does the C++ standalone application invoke the JS code? Is it through a browser invoked from the command line? The question is basically because I would like to use Diagon in my apps, but I have some requirements: the apps must be able to run with no Internet connection, they cannot depend on Python, I cannot bundle a full Javascript interpreter in my apps (that would be way overkill for my small apps), and, to be honest, I'd rather prefer not to depend on web browsers either...

ArthurSonzogni commented 1 month ago

Diagon is written in C++.

I can be used everywhere and portably, including in a web browser via a C++ -> WebAssembly compile step. It is also lightweight (707 KB .deb) and without any runtime dependencies.

Happy to help you if you have questions around using it as a C++ library.