AI Coding Pattern Refactorer — Smells, Diffs & GoF Patterns
Detects code smells (long methods/functions, deep nesting, magic numbers, duplicated code, switch statements, god classes, long parameter lists, comments-as-deodorizer) and proposes named refactorings (Extract Function, Replace Conditional with Strategy, Replace Nested Conditional with Guard Clauses, Introduce Parameter Object, Replace Magic Number with Symbolic Constant, Extract Class, etc.) and GoF design patterns (Singleton, Factory, Builder, Adapter, Decorator, Facade, Observer, Strategy, State, Command, Template Method, Visitor, and 10 more) with reviewable before/after diffs, rationale, tradeoffs, accept/reject per suggestion, apply-all-safe-refactorings button, complexity metrics (cyclomatic, lines, functions, max nesting, duplicates), 22-pattern browseable catalog with intent/when-to-use/when-not-to-use/templates, multi-language support (Python, JavaScript, TypeScript, Java, C++, Go), sample snippets per language, local history (localStorage, last 20), and shareable URL. 100% client-side. Optional BYO-key LLM enhancement — your code never leaves the browser unless you choose to call your own provider.