D2 is a lightweight text-to-diagram tool that converts simple code into clean architecture diagrams.

Great for: network maps , system architecture , infrastructure docs , self-hosted setups and developer documentation

Works locally, supports SVG/PNG/PDF export, and integrates with VSCode, Obsidian, Vim, and more.

GitHub: https://github.com/terrastruct/d2

More privacy-friendly tools: https://digitalescapetools.com/