Open-source tool archink compiles and gates architecture diagrams without LLMs
A developer built archink, an open-source TypeScript CLI and library, to keep architecture diagrams accurate to real code. Its approach is deterministic and runs entirely locally, with no paid APIs, headless browsers, or network calls. The tool extracts module dependency graphs from TypeScript, JavaScript, Python, and Go source, then detects circular dependencies using Tarjan's algorithm. It renders clean, editorial-style SVG and HTML diagrams and can fail CI builds when diagrams drift from the code or layer rules are violated. The article presents this as a remedy for hallucinated or tangled diagrams produced by hand-written or AI-generated documentation.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in