Static + heuristic performance analysis for Python code, directly inside VS Code.
Alnoms is a Performance Intelligence Engine that helps developers understand the computational cost of their code directly inside Visual Studio Code.
It analyzes functions, detects hotspots, estimates complexity, highlights risks, and provides a clean, deterministic explanation of why certain code paths may scale poorly.
This extension ships with a powerful local analysis engine written in TypeScript, with optional unlockable tiers (PRO, TEAM, ENTERPRISE) for deeper insights.
✨ Features (OSS Tier)
⚡ Analyze Current File
Run:
Command:
Ctrl+Shift+P→ Alnoms: Analyze File
You get:
- Function‑by‑function complexity estimates
- Time complexity (O(1), O(n), O(n²), O(n³))
- Basic space complexity
- Hotspot detection
- A clean right‑side webview panel
🔥 Inline Code Highlighting
Lightweight decorations:
- Yellow → nested loops
- Orange → deep nesting
- Red → recursion risk
💗 Explain This Function
Click any function to see:
- What it does
- Complexity explanation
- Why it may scale poorly
📚 Complexity Sidebar Tree
A sidebar view showing:
file.py
├── function_a → O(n)
├── function_b → O(n²) ⚠️
└── function_c → O(1)
⚠️ Basic Performance Warnings
Rule‑based detection of:
- Nested loops
- Triple nested loops
- Recursion without memoization
- Repeated list scanning
- Repeated computation inside loops
💯 Alnoms Score (0–100)
A simple heuristic score based on:
- Loop depth
- Recursion
- Function length
- Repeated scans
💾 Local‑Only Mode
The OSS tier runs entirely locally:
- No backend
- No login
- No telemetry
🚀 PRO, TEAM & ENTERPRISE Tiers
Alnoms supports unlockable premium tiers:
🟦 PRO (Individual Developers)
- Deep multi‑file analysis
- Cross‑function call graph
- Hidden quadratic pattern detection
- Auto‑fix suggestions
- Before/after performance simulation
- Optimized code snippet library
- PRO dashboard
🟪 TEAM (Small Teams)
- Shared team rules
- Team‑wide Alnoms Score
- PR diff analysis
- Team baseline tracking
🟥 ENTERPRISE (Large Organizations)
- Enterprise policy engine
- CI/CD integration
- Org‑wide complexity map
- Hotspot clusters
- SSO + license server
🧱 Architecture
VS Code Extension (TypeScript)
- Commands
- Webview panel
- Sidebar tree
- Decorations API
- Tier unlock system
Pure TypeScript Analysis Engine
No Python dependency.
The engine includes:
- Tokenizer
- AST walker
- Loop detection
- Recursion detection
- Complexity estimation
- Rule engine
- Scoring engine
This makes the extension:
- Fast
- Portable
- Zero‑dependency
- Easy to maintain
📦 Installation
The extension is published publicly on the VS Code Marketplace.
Search for: Alnoms
Or install via CLI:
code --install-extension alnoms
🧪 Development
Clone the repository
git clone https://github.com/arprax/alnoms-vscode.git
Install dependencies
npm install
Run the extension
Press F5 → Launch Extension Host
Build
npm run build
Package
vsce package
Publish
vsce publish
🔐 Licensing & Tiers
The extension includes a built‑in tier unlock system:
- OSS features are always available
- PRO/TEAM/ENTERPRISE features unlock via license key or cloud entitlement
No private code is exposed in the VSIX.
🛠 Roadmap
- Multi‑language support (JS/TS/Go/Rust/Java)
- WASM‑based analysis engine
- AI‑assisted optimization hints
- Enterprise‑grade dashboards
📄 License
MIT License
© Arprax Lab