Discover and explore top open-source AI tools and projects—updated daily.
nanoapi-ioCLI tool for analyzing and visualizing software architecture
Top 84.8% on SourcePulse
Summary
napi is a command-line interface tool designed for analyzing, visualizing, and refactoring software architecture, specifically tailored for the AI era. It addresses the need for deep codebase understanding without compromising data privacy, making it ideal for developers, architects, and teams seeking to manage complexity and dependencies in their projects. The core benefit is providing comprehensive architectural insights and refactoring capabilities entirely offline.
How It Works
The tool operates by generating detailed dependency manifests from source code, mapping files, symbols, and their interdependencies. These manifests are stored locally, ensuring code never leaves the user's machine unless optional AI labeling features are utilized with user-provided API keys. An interactive graph visualizer, powered by Cytoscape.js and served directly from the CLI, allows users to explore these architectural maps. napi supports automatic detection and auditing of complexity, size, and coupling thresholds, with optional AI integration for auto-labeling dependencies.
Quick Start & Requirements
curl -fsSL https://raw.githubusercontent.com/nanoapi-io/napi/refs/heads/main/install_scripts/install.sh | bash. Native Windows support is in progress; WSL is recommended.napi init (creates .napirc)napi generatenapi view (opens http://localhost:3000)Highlighted Details
Maintenance & Community
napi is developed by NanoAPI. The project follows a "fair-source" model, pooling donations to distribute among contributors, with surplus funds donated to charity. A contributing guide is available for community involvement.
Licensing & Compatibility
Limitations & Caveats
Support for C++, PHP, and JavaScript/TypeScript is currently under development. Native Windows support is not yet available, requiring users to utilize WSL. AI labeling features are optional and necessitate the provision of user API keys for supported third-party models.
2 weeks ago
Inactive