TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Box-n-Weave.js – 0-dependency text-to-diagramming lib (16kb gzipped)

1 点作者 TiredGuy6 个月前
I was frustrated with the complexity and size of existing diagram libraries, so I wrote a new one from scratch. Box-N-Weave.js generates box-and-arrow diagrams from text definitions, with a focus on maintainable technical documentation.<p>Key features:<p><pre><code> - Zero dependencies, tiny footprint (16.2kb gzipped vs 745kb for Mermaid.js) - Clean separation of diagram content, styling, and animations - Git-friendly text format that can live alongside your code - Streamlined syntax for common technical diagrams (architecture, flows, state machines, etc.) - Built-in animation support </code></pre> The layout algorithm was written from scratch (not using dagre&#x2F;elkjs&#x2F;cytoscape) to keep it lightweight while flexible enough to add novel features.<p>Examples: <a href="https:&#x2F;&#x2F;box-n-weave-026ffb.gitlab.io&#x2F;#examples" rel="nofollow">https:&#x2F;&#x2F;box-n-weave-026ffb.gitlab.io&#x2F;#examples</a><p>Repo: <a href="https:&#x2F;&#x2F;gitlab.com&#x2F;andrewfulrich&#x2F;box-n-weave" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;andrewfulrich&#x2F;box-n-weave</a><p>I&#x27;d love feedback on bugs, the API design, and use cases you&#x27;d want to see supported. The goal is to keep it focused on doing one thing well - making it dead simple to maintain box-and-arrow diagrams as code evolves.

暂无评论

暂无评论