HeadlinesBriefing favicon HeadlinesBriefing.com

Onboard-CLI: Visualize & Enforce Code Architecture

Hacker News •
×

Onboard-CLI offers a developer-centric approach to understanding and maintaining complex software architectures. This command-line interface tool uses Abstract Syntax Tree (AST) parsing through Tree-sitter to analyze codebases written in Go, JavaScript, TypeScript, Python, and Java. It generates visual topology graphs and enforces architectural rules, preventing 'architecture drift' by detecting unauthorized cross-file imports.

The tool features an interactive web-based visualizer, powered by React Flow and Vite, that maps code paths and dependencies locally. Developers can explore these structures within a configurable radius and receive instant feedback on boundary violations. Onboard-CLI also includes commands for impact analysis, code exporting, and tracking ownership.

Built with a Go CLI engine and a React 19 frontend, the system boasts sub-second rule evaluation for architectural drift detection. Its CI/CD integration allows for automated enforcement of architectural boundaries on pull requests, ensuring code health and consistency throughout development cycles.