<story><title>D2, a diagram scripting language that turns text to diagrams, is now open source</title><url>https://github.com/terrastruct/d2</url></story><parent_chain><item><author>alixanderwang</author><text>Hi HN, I&amp;#x27;m Alex, at Terrastruct, where we&amp;#x27;ve been making D2. This actually popped up on HN a couple months back, though it wasn&amp;#x27;t ready, e.g. not open source yet. It is now!&lt;p&gt;We also put up a site for you to compare D2 with MermaidJS, Graphviz, and PlantUML: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;text-to-diagram.com&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;text-to-diagram.com&lt;/a&gt;.&lt;p&gt;Full disclosure, we&amp;#x27;re a for-profit company. The open-core part is that we make an alternative layout engine which we sell (Jetbrains model, i.e. your copy is your&amp;#x27;s forever if you&amp;#x27;ve paid for 12+ months). It&amp;#x27;s not packaged with D2, so you won&amp;#x27;t see it if you don&amp;#x27;t want it. D2 is perfectly usable without it, and integrates with multiple free open source layout engines (e.g. the one that Mermaid uses, &amp;quot;dagre&amp;quot;, is D2&amp;#x27;s default). If you want to read more about our plans for D2: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;d2lang.com&amp;#x2F;tour&amp;#x2F;future&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;d2lang.com&amp;#x2F;tour&amp;#x2F;future&lt;/a&gt;.&lt;p&gt;Hope you can check it out! It&amp;#x27;s got an easy install (and uninstall) process.</text></item></parent_chain><comment><author>localhost</author><text>This is a great idea; my go-to approach is the &amp;quot;I&amp;#x27;ll use PowerPoint to do that and take a screenshot&amp;quot; mindset since I don&amp;#x27;t have a need for publication quality output.&lt;p&gt;I really like the comparison site that you have created - it&amp;#x27;s great for learning these languages. I would love to see a plugin for Obsidian for the times where I need to add a custom drawing to my notes. It looks like there already are plugins for PlantUML[1] and graphviz[2] today.&lt;p&gt;[1] &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;QAMichaelPeng&amp;#x2F;obsidian-graphviz&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;QAMichaelPeng&amp;#x2F;obsidian-graphviz&lt;/a&gt;&lt;p&gt;[2] &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;joethei&amp;#x2F;obsidian-plantuml&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;joethei&amp;#x2F;obsidian-plantuml&lt;/a&gt;</text></comment>
<story><title>D2, a diagram scripting language that turns text to diagrams, is now open source</title><url>https://github.com/terrastruct/d2</url></story><parent_chain><item><author>alixanderwang</author><text>Hi HN, I&amp;#x27;m Alex, at Terrastruct, where we&amp;#x27;ve been making D2. This actually popped up on HN a couple months back, though it wasn&amp;#x27;t ready, e.g. not open source yet. It is now!&lt;p&gt;We also put up a site for you to compare D2 with MermaidJS, Graphviz, and PlantUML: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;text-to-diagram.com&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;text-to-diagram.com&lt;/a&gt;.&lt;p&gt;Full disclosure, we&amp;#x27;re a for-profit company. The open-core part is that we make an alternative layout engine which we sell (Jetbrains model, i.e. your copy is your&amp;#x27;s forever if you&amp;#x27;ve paid for 12+ months). It&amp;#x27;s not packaged with D2, so you won&amp;#x27;t see it if you don&amp;#x27;t want it. D2 is perfectly usable without it, and integrates with multiple free open source layout engines (e.g. the one that Mermaid uses, &amp;quot;dagre&amp;quot;, is D2&amp;#x27;s default). If you want to read more about our plans for D2: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;d2lang.com&amp;#x2F;tour&amp;#x2F;future&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;d2lang.com&amp;#x2F;tour&amp;#x2F;future&lt;/a&gt;.&lt;p&gt;Hope you can check it out! It&amp;#x27;s got an easy install (and uninstall) process.</text></item></parent_chain><comment><author>mooneater</author><text>20+ year fan of graphviz here, love seeing what you are doing with D2!&lt;p&gt;Any examples of larger diagrams (1000+s of nodes) and how does that perform in layout?</text></comment>