News for hackers. Stuff that matters.
Re:Vizdom: Diagrams as Code by s0l0ist on Sunday September 01, 2024 @01:31PM (#41418649)
I’m the author, I just got tired of using a DSL and wanted a way to programmatically write/build a graph and quickly see the rendering.

DLS-based diagramming tools like Terrastruct, mermaid, or graphviz definitely have their perks and are very well established for manual graph curation. But I found the lack of programmatic tooling (except terrastruct) a bit of a pain point.

Re:Vizdom: Diagrams as Code by alixanderwang on Sunday September 01, 2024 @01:41PM (#41418730)
Congrats on the launch! I'm the author of D2 (Terrastruct). I won't comment on comparisons you want to make as it's your launch, but just to clarify, we do have a programmatic API:

- https://terrastruct.com/blog/post/generate-diagrams-programm...

- https://d2lang.com/tour/api/

Re:Vizdom: Diagrams as Code by s0l0ist on Sunday September 01, 2024 @01:58PM (#41418852)
Thanks! Love your product! I didn’t mean to say you don’t have it. I’ll edit my other post.
Re:Vizdom: Diagrams as Code by alixanderwang on Sunday September 01, 2024 @02:10PM (#41418926)
No worries at all, the API is definitely a bit hidden. Anyway, best of luck and feel free to reach out if you want to chat diagrams!
Re:Vizdom: Diagrams as Code by s0l0ist on Sunday September 01, 2024 @03:38PM (#41419694)
Definitely!
Re:Vizdom: Diagrams as Code by fyaliwnyfjsd on Sunday September 01, 2024 @03:11PM (#41419456)
Current user of D2, would really love a TypeScript API with Deno support.
Re:Vizdom: Diagrams as Code by Veuxdo on Sunday September 01, 2024 @01:46PM (#41418767)
"DLS-based diagramming tools like Terrastruct, mermaid, or graphviz definitely have their perks and are very well established for manual graph curation. But I found the lack of programmatic a bit of a pain point."

Hi, creator of Ilograph[0] here. I agree with this if the DSL doesn't provide an IDE with autocomplete and instant-rendering (which I think applies to the technologies you mentioned).

With auto-complete and instant-rendering, I think a DSL is much preferable to Python (the most common "diagrams-as-code" language). Python is a programming language for writing, well, programs. It feels like complete overkill for creating static diagrams.

[0] https://www.ilograph.com

Re:Vizdom: Diagrams as Code by s0l0ist on Sunday September 01, 2024 @02:20PM (#41419017)
Neat product! I like the interactivity.

For me (and my narrow use-case), I just couldn’t find a simple tool to sync my graph to somewhere that I could view it easily - especially after I’ve instrumented my application and deployed to the cloud.

Re:Vizdom: Diagrams as Code by lazyasciiart on Sunday September 01, 2024 @03:57PM (#41419843)
I’ve been using this GitHub service https://github.com/dreampuf/GraphvizOnline
Re:Vizdom: Diagrams as Code by s0l0ist on Sunday September 01, 2024 @09:07PM (#41421669)
Yeah that and http://magjac.com/graphviz-visual-editor/ are decent. But they will crash on medium/large graphs because the WebAssembly build of Graphviz that they use under the hood isn't compiled to allow memory growth.
Re:Vizdom: Diagrams as Code by foundry27 on Sunday September 01, 2024 @04:37PM (#41420171)
This looks really interesting and I love how well put-together it feels! I wish your offline desktop software version had a one-time payment option though. Forcing SaaS subscriptions for non-SaaS is a big turn-off IMO.
Re:Vizdom: Diagrams as Code by Veuxdo on Sunday September 01, 2024 @05:00PM (#41420360)
Thanks for the kind words! I appreciate the feedback and understand where you're coming from.
Re:Vizdom: Diagrams as Code by smusamashah on Sunday September 01, 2024 @01:53PM (#41418812)
A minor nitpick on the editor page https://vizdom.dev/editor/

The example drop down should either have names instead of Example 1..n. Or it should be changeable via keyboard. I have reached example 10 so far I think, but I have to keep track of example number in my head, open the dropdown, scroll the list and click the next number every single time. Edit: Yup, can't just go through all examples like this.

Re:Vizdom: Diagrams as Code by s0l0ist on Sunday September 01, 2024 @01:59PM (#41418860)
Ah yeah, it’s been bugging me as well lol.

I definitely need to update that at some point.

Re:Vizdom: Diagrams as Code by jitl on Sunday September 01, 2024 @01:36PM (#41418681)
Can you explain the licensing? There’s several comments noting some closed source WASM blob.
Re:Vizdom: Diagrams as Code by s0l0ist on Sunday September 01, 2024 @01:42PM (#41418743)
Sure! It’s Apache 2.0 licensed, but yes the binary wasm blob is what does all the work and is closed source for the time being.

It’s about 25k lines of rust code compiled to do the following:

- Layout/position a directed graph

- Compute a bounding box for text labels and produce font glyphs for the rendering engine

- Generate an SVG

- Optionally, sync to a Vizdom account

Fun fact, the majority of that wasm blob is what is powering the web application itself. You can see it in action using the editor view/diff on the site.

Re:Vizdom: Diagrams as Code by jitl on Sunday September 01, 2024 @02:53PM (#41419304)
I free to redistribute the WASM blob to my end users? The blob itself is Apache? I know binaries can be under Apache without being source available but I just want o make sure I understand correctly
Re:Vizdom: Diagrams as Code by s0l0ist on Sunday September 01, 2024 @03:20PM (#41419546)
Yes exactly!
Re:Vizdom: Diagrams as Code by notepad0x90 on Monday September 02, 2024 @08:37AM (#41424921)
Sounds like an interesting app. But I just wanted to comment that I don't need an account to use draw.io and I can download an xml of the diagram just fine from them. I noticed you didn't mention them in your comment, so perhaps they are not a competition?
Re:Vizdom: Diagrams as Code by s0l0ist on Tuesday September 03, 2024 @12:19PM (#41436452)
Yeah not really competition as I see it. If you create graphs rarely or need to craft one manually then there are better tools out there.

Maybe my landing page is terrible, but you don’t need an account to download the npm package and start doing things locally.

That being said, I’m more interested in helping individuals who want to programmatically generate graphs - hundred+ updates to them per day, similar to how an APM/telemetry libs work. You instrument once and get the benefits of a real-time graph.