Explore every feature, learn the CLI commands, and understand the full analysis pipeline — all in one place.
From 3D architecture visualization to AI-powered insights — all from a single CLI command.
Explore your entire codebase in an interactive, force-directed 3D graph. Each node is a file — shaped and colored by type.
AST-based import scanning detects used, unused, and outdated packages automatically.
npm audit + AST-level code analysis for eval(), innerHTML, hardcoded secrets, and more.
Bundle size, load time estimation, large file detection, and heavy dependency flagging with recommendations.
AI-powered analysis detects anti-patterns and provides actionable architectural recommendations.
Unified 0–100 score based on modularity, coupling, vulnerabilities, and Git volatility.
Live dashboard updates via SSE — zero manual refresh after CLI analysis.
Identifies the most frequently changed files that may need refactoring or better test coverage.
Moduly's CLI is built with Commander.js and uses Babel AST parsing under the hood. One command scans your entire project and generates a comprehensive analysis report.
npm i -g moduly-climoduly analyzeScans the entire project: files, LOC, imports, dependencies, security, and performance. Generates an interactive HTML dashboard at .moduly/index.html.
--open—Launch the HTML dashboard in your browser--report—Save report.json and push to live dashboardmoduly ai <on|off>Toggles AI-assisted commit detection. When enabled, Moduly uses machine learning to identify semantically significant commits and hotspot patterns.
7 specialized analyzer modules that work together.
Walks the file tree, builds stats, orchestrates all sub-analyzers
analyzer/project.tsCounts code, comment, and blank lines per file with language-aware parsing
analyzer/loc.tsAST-based import/export detection, builds file-to-file dependency graph
analyzer/dependencies.tsDetects used vs unused packages, checks npm for outdated versions
analyzer/dependencies.tsnpm audit + 6 AST code patterns (eval, exec, innerHTML, secrets)
analyzer/security.tsBundle size estimation, large file detection, heavy dependency flagging
analyzer/performance.tsParses git log --name-only to rank files by commit frequency
analyzer/git.tsRunning moduly analyze --report generates a structured JSON report.
{
"projectName": "my-app",
"timestamp": "2026-02-23T18:00:00.000Z",
"score": 87,
"stats": {
"totalFiles": 42,
"totalLOC": 12450,
"languages": { ".ts": 28, ".tsx": 10, ".js": 4 },
"fileList": [...]
},
"hotspots": [
{ "file": "src/core/engine.ts", "commits": 24 }
],
"dependencies": {
"nodes": [...],
"links": [...]
},
"packageDependencies": {
"used": [...], "unused": [...],
"outdated": [...], "suggestions": [...]
},
"security": [...],
"performance": {
"bundleSize": "1.2MB",
"largeFiles": [...],
"heavyDependencies": [...]
}
}Everything you need to get started, configure the analyzer, and understand the output.
npm i -g moduly-cliOne command, zero config — installs everywhere.
cd my-projectPoint to any JavaScript or TypeScript codebase.
moduly analyze --reportScans files, deps, security, and performance.
moduly-zeta.vercel.app/dashboardReport syncs live to the visual dashboard.
Zero-config by default. These behaviors are automatic.
AST-based code scanner checks for these dangerous patterns.
eval()Code Injectionnew Function()Code Injectionchild_process.exec()Command InjectioninnerHTMLXSSdangerouslySetInnerHTMLXSSdocument.write()XSSHardcoded secretsSensitive DataStarts at 100 — penalties deducted per factor.
Deduction // GLOBAL
Deduction // GLOBAL
Deduction // GLOBAL
Deduction // GLOBAL
Deduction // MAX 15
Deduction // GLOBAL
Deduction // GLOBAL
Deduction // GLOBAL
Deduction // GLOBAL
Deduction // GLOBAL
Deduction // GLOBAL
Deduction // GLOBAL
Deduction // MAX 15
Deduction // GLOBAL
Deduction // GLOBAL
Deduction // GLOBAL
Install the CLI, run your first analysis, and see your architecture come alive.