StrataMetriq Architecture Intelligence & DevSecOps
Full-stack polyglot AST graphs, vertical API traces, and 13-point safety audits inside VS Code & CLI.
StrataMetriq: Architecture Intelligence & Pre-Deployment Safety
StrataMetriq helps engineering teams understand software architecture, predict the impact of code changes, and prevent risky deployments before they happen.
Welcome to the authoritative engineering guide and user manual for StrataMetriq, an enterprise-grade Visual Studio Code extension and DevSecOps CLI designed to deliver Architecture Intelligence & Pre-Deployment Safety for full-stack polyglot codebases (JavaScript, TypeScript, Python, Java, Kotlin, Go, C#).
INFO: π VS Code Marketplace & Registry VS Code Marketplace Identifier:
stratametriq.stratametriq-extension
π‘ Why StrataMetriq?
In modern software organizations, engineers frequently grapple with hidden architectural debt, tangled module dependencies, and accidental production leaks (such as exposed API keys, debug logs, or unfinished TODOs). To gain comprehensive visibility, developers typically must stitch together 3 to 4 separate, expensive toolsβsuch as static code analyzers, secret scanners, dependency visualizers, and duplicate code detectors.
StrataMetriq unifies these capabilities into a single, native VS Code experience:
TIP: 360Β° Architectural Visibility Natively maps your entire workspace dependency graph, API routing topology, and database interactions in real time.
NOTE: Zero Cloud Exfiltration Unlike SaaS code scanners that upload proprietary source code to remote servers, StrataMetriq performs 100% of its Abstract Syntax Tree (AST) parsing and graph calculations locally on your machine. Your code never leaves your IDE.
INFO: Non-Blocking Performance Engineered with highly optimized tokenizers and TypeScript AST evaluators that parse thousands of lines of code in seconds without freezing or slowing down your editor.
ποΈ Enterprise Custom Architecture Governance
StrataMetriq allows Principal Architects and DevOps leaders to enforce organizational architecture standards across layered codebases and monorepos using a root stratametriq.config.yml configuration file.
version: 1
rules:
- name: "UI layer cannot import Database layer directly"
source: "src/ui/**"
forbiddenTarget: "src/db/**"
severity: "HIGH"
message: "UI components must go through src/services/ or API endpoints."
- Instant IDE Prevention: Forbidden imports are flagged in real time with inline diagnostic squiggles and status bar warnings inside VS Code.
- Automated CI/CD Gates: Running
npx @stratametriq/cli scan . --fail-on-highblocks pull requests if architectural boundaries are violated. - Actionable Remediation: Outputs immediate 1-line
π‘ Fixinstructions beneath every finding.
π Learn more in the dedicated Custom Architecture Governance Guide.
π¬ Most Complex Modules & Risk Impact Analysis
1. π§© Most Complex Modules Analysis
StrataMetriq automatically computes cyclomatic complexity and AST token density across every source file in your repository:
- Complexity Scoring: Ranks modules based on branching density, nested conditional logic, and total AST nodes.
- Dashboard Complex Modules Card: Displays the top most complex files in your codebase with clear metric bars so engineering managers and tech leads can prioritize refactoring technical debt.
- 1-Click Graph Isolation: Clicking any complex module instantly focuses the visual dependency graph on that file and highlights its upstream/downstream connections.
2. β‘ Intelligent Risk Impact Analysis & Ripple Mechanics
When inspecting any module in the StrataMetriq dashboard, the Risk Impact Analysis panel answers "If I change this file, what else is affected and why?":
- π‘ "Why & How Are These Affected?" Explanation Card:
- Dependency Ripple Chain: Shows exact counts for Direct Importers (
[Direct Importer]badge) versus Transitive Dependents ([Transitive]badge). - API Contract Risk: Explains which server API routes rely on the file and warn against breaking response payload contracts.
- UI Component Tree: Lists affected React/UI components that will undergo re-renders or layout changes.
- Dependency Ripple Chain: Shows exact counts for Direct Importers (
- β Adding vs. Modifying Code Mechanics:
- Adding New Code / Endpoints: Non-breaking (
0 ripple risk). New functions or routes do not affect existing consumers until explicitly imported. - Modifying Existing Exports: High ripple risk across all listed dependents.
- Adding New Code / Endpoints: Non-breaking (
- π¨ Native VS Code Editor Left-Gutter Decorations:
- Duplicate logic blocks and high-risk modules are automatically decorated with a solid purple/cyan left gutter strip and inline hover diagnostics directly inside your active VS Code editor window.
π Key Highlights
| Feature | Description | Benefit |
| :--- | :--- | :--- |
| π Full-Stack Enterprise Polyglot Support | Parses AST and framework semantics across Python, Java, Kotlin, Go, C#, and JS/TS simultaneously. | Maps cross-stack API calls and database dependencies on a unified interactive graph. |
| π‘οΈ 13-Point DevSecOps Safety Audit | Evaluates code against a comprehensive 13-point safety checklist before git commits. | Prevents leaked secrets, SQL injection, insecure crypto, debug statements, and broken catch blocks. |
| π SARIF 2.1.0 Security Export | Generates OASIS SARIF v2.1.0 compliance reports via --sarif <file>. | Directly integrates findings into GitHub Advanced Security and GitLab Security tabs. |
| β‘ Headless DevSecOps CLI | Standalone command-line executable (@stratametriq/cli) for terminal & CI/CD pipelines. | Blocks pull requests if HIGH severity risks exist (--fail-on-high) and posts PR comments. |
| β‘ Risk Impact Analysis | Calculates downstream ripple effects across APIs, DB tables, and UI views. | Answers "What breaks if I change this file?" instantly. |
| π³ Interactive Dependency Explorer | Generates visual dependency trees with live editor tab synchronization. | Eliminates manual grep hunting across complex monorepos. |
| π API Flow Visualizer | Traces vertical request lifecycles from frontend UI down to DB tables. | Provides end-to-end domain keyword matching without false positives. |
| π Global Search & Quick-Filter Toolbar | Interactive search across module names, API routes, DB tables, and 1-click filter pills. | Instantly isolate High Risks, Open Editor Tabs, or Circular Loops on the dashboard. |
| π‘οΈ Persistent Status Bar & Inline Diagnostics | Real-time VS Code status bar health badge and live inline diagnostic editor squiggles. | Highlights active debug statements and hardcoded secrets inline while you type or save files. |
| π‘ Actionable Remediation Guides | Prints 1-line π‘ Fix guidance below high-severity findings in CLI & PR comments. | Tells developers exactly how to fix security and architecture risks immediately. |
| ποΈ Enterprise Custom Architecture Governance | Enforce custom boundary rules via stratametriq.config.yml (e.g. forbidding UI layer from importing DB). | Automatically blocks illegal imports in both VS Code editor diagnostics and CI/CD pipelines. |
| π₯ Executive Audit JSON Export | Download a complete JSON snapshot of project health, loops, duplicates, and risks. | Enables compliance auditing and historical trend tracking. |
π¦ Quick Start (2 Powerful Modes)
Mode 1: Interactive VS Code Extension (VSIX)
- Install from VSIX: Open VS Code, press
Ctrl+Shift+P(orCmd+Shift+P), type and selectExtensions: Install from VSIX..., and choose the bundled extension package (stratametriq-extension-1.4.4.vsix). - Reload VS Code: Run
Developer: Reload Windowto activate the latest scanner engine. - Launch Dashboard: Open the Command Palette (
Ctrl+Shift+P) and run:StrataMetriq: Open Dashboard.
Mode 2: Headless DevSecOps CLI (Terminal / CI/CD)
Run directly in any directory without global installation:
# Local terminal scan
npx @stratametriq/cli scan .
# Run downstream BFS impact analysis on a specific file ("what breaks if I edit this?")
npx @stratametriq/cli impact src/services/UserService.ts
# CI/CD Pipeline Gate: Block build if HIGH severity vulnerabilities exist
npx @stratametriq/cli scan ./src --fail-on-high
# Export JSON & Markdown PR report
npx @stratametriq/cli scan . --fail-on-high --json report.json --md pr-comment.md
π Check out our dedicated Headless CLI & CI/CD Guide for GitHub Actions and GitLab CI workflows!
