Professional static analysis tool with smart duplicate detection, AI-style suggestions, and multi-language support. Built by Ayman Elmasry — AEL Digital Studio.
- Smart Duplicate Filter — detects duplicate lines ignoring structural syntax (
{};, comments, whitespace) - Multi-Language — Auto, HTML, CSS, JavaScript, Python, JSON
- Code Metrics — Lines of Code, Quality Score, Issues, Duplicates
- Real-Time Analysis — 800ms debounce, updates as you type
- File Drag & Drop — drop any code file to load instantly
- Keyboard Shortcuts —
Ctrl+Enterto analyze,Ctrl+Lto clear,Tabfor indentation - Sandboxed Execution — safe HTML/JS execution via iframe
- Zero Dependencies — pure HTML/CSS/JS, no libraries
- Open
index.htmlin any modern browser - Paste or type your code
- Select language (or use Auto-detection)
- View metrics, issues, duplicates, and suggestions
| Key | Action |
|---|---|
Ctrl+Enter |
Analyze code |
Ctrl+L |
Clear editor |
Tab |
Insert 4-space indent |
ael-code-analyzer/
├── index.html # Main application (HTML structure)
├── styles.css # All styles and theming
├── app.js # Analysis logic and UI interactions
├── screenshot.svg # Preview image
└── README.md # Documentation
| Aspect | Detail |
|---|---|
| Architecture | Single-page app (HTML5 + CSS3 + JS) |
| Editor | Native <textarea> with synced line numbers |
| Duplicate detection | Normalized whitespace comparison (ignores structural lines) |
| Language detection | Regex-based heuristics per language |
| Issue detection | Language-specific linting rules |
| Quality scoring | Deductions for issues (5pts) and duplicates (3pts) |
| Drag & drop | FileReader API with text file loading |
| Browser support | Chrome, Firefox, Safari, Edge |
Created by: Ayman Elmasry — AEL Digital Studio Website: aymanelmasry.com License: © 2026 Ayman Elmasry — AEL Digital Studio. All rights reserved.