{"id":37682,"date":"2022-11-22T14:57:54","date_gmt":"2022-11-22T19:57:54","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=37682"},"modified":"2022-11-22T14:57:54","modified_gmt":"2022-11-22T19:57:54","slug":"d2-diagram-scripting-language","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/11\/22\/d2-diagram-scripting-language\/","title":{"rendered":"D2 Diagram Scripting Language"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/terrastruct\/d2\">Terrastruct<\/a> (via <a href=\"https:\/\/news.ycombinator.com\/item?id=33704254\">Hacker News<\/a>):<\/p>\n<blockquote cite=\"https:\/\/github.com\/terrastruct\/d2\">\n<p>D2 is a modern diagram scripting language that turns text to diagrams.<\/p>\n<p>[&#8230;]<\/p>\n<p>D2 is built to be hackable -- the language has an API built on top of it to make edits programmatically.<\/p>\n<p>[&#8230;]<\/p>\n<p>D2 is designed with language tooling in mind. D2&rsquo;s parser can parse multiple errors from a broken program, has an autoformatter, syntax highlighting, and we have plans for LSP&rsquo;s and more. Good language tooling is necessary for creating and maintaining large diagrams.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/text-to-diagram.com\">Text to Diagram<\/a>:<\/p>\n<blockquote cite=\"https:\/\/text-to-diagram.com\"><p>Compare the syntax and renders of various languages that produce diagrams from text.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/graphviz.org\">GraphViz<\/a> has seemed fine to me, <a href=\"https:\/\/gitlab.com\/graphviz\/graphviz\/-\/blob\/main\/README.md\">but<\/a>:<\/p>\n<blockquote cite=\"https:\/\/gitlab.com\/graphviz\/graphviz\/-\/blob\/main\/README.md\">\n<p>This project has only 3 of its founders remaining as volunteer maintainers, and support is limited and may end soon. If you can help fund to a more formal foundation to continue this project, please contact north on graphviz org.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Terrastruct (via Hacker News): D2 is a modern diagram scripting language that turns text to diagrams. [&#8230;] D2 is built to be hackable -- the language has an API built on top of it to make edits programmatically. [&#8230;] D2 is designed with language tooling in mind. D2&rsquo;s parser can parse multiple errors from a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2022-11-22T19:57:56Z","apple_news_api_id":"71856096-75b4-4397-a41e-f604f7c0975e","apple_news_api_modified_at":"2022-11-22T19:57:56Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AcYVglnW0Q5ekHvYE98CXXg","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[846,34,46,74,71],"class_list":["post-37682","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-go-language","tag-graphicdesign","tag-languagedesign","tag-opensource","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/37682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=37682"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/37682\/revisions"}],"predecessor-version":[{"id":37683,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/37682\/revisions\/37683"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=37682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=37682"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=37682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}