What's your code's Spaghetti Score?
Paste your AI-generated code and get an instant health check — the same smells we hunt when we refactor Cursor, v0, Lovable, Bolt and Replit apps. No GitHub access needed, no signup to scan.
🔒 Parsed on our server, scored in memory, never stored — no GitHub access, no signup to scan.
Your real Spaghetti Score — complexity, nesting, security and more, with line numbers — appears here in seconds.
What the scanner looks for in AI-generated code
God-files
Massive single files AI keeps extending instead of splitting into modules.
Deep nesting
Pyramids of if/for blocks that hide bugs and make changes risky.
No error handling
Happy-path async code with no try/catch — crashes on the first failed request.
Exposed secrets
API keys and tokens hardcoded in the source instead of env vars.
Copy-paste duplication
Repeated logic that turns one change into ten.
Weak typing & debug noise
`any` types and leftover console logs shipped to production.
Frequently asked questions
What is a Spaghetti Score?
It's a quick, heuristic health score (0–100) for a chunk of code. The scanner checks for common smells in AI-generated code — oversized files, deep nesting, missing error handling, copy-paste duplication, leftover debug logs, weak typing and possible hardcoded secrets — and grades how risky the code is to run and scale.
Is my code stored anywhere?
No. Your code is sent over an encrypted connection, parsed in memory on our server to compute the score, and immediately discarded — never written to disk or logged. We only keep your email and score if you choose to unlock the full report.
Which tools' code does it work with?
Any JavaScript/TypeScript (including JSX/TSX), but it's tuned for output from AI tools like Cursor, v0, Lovable, Bolt and Replit. Paste a single file or a representative snippet.
How accurate is the score?
It uses a real code parser to build a syntax tree and compute genuine metrics — cyclomatic complexity, function size, nesting depth — alongside security and quality checks. It's a fast, honest read. For a full review of architecture, security and scalability across your whole repo, Mendly does a free 48-hour human audit.
Low score? That's fixable — and the audit is free.
Get my free 48-hour audit →