
Title: I built a CLI that diagnoses your code before you ship
I built a CLI that diagnoses your code before you ship Every NestJS project I've worked on had the same problems: POST endpoints without auth guards Hardcoded API keys in source code .env not in .gitignore Zero tests No Swagger documentation I was tired of catching these manually in code reviews. So I built codediag. What it does bashnpx codediag scan . One command. It auto-detects your stack and runs 5 analyzers: codediag — Diagnostic Report Project: my-nestjs-app Stack: nestjs + typescript + prisma Score: B+ (87/100) API Health ███████████████░░░░░ 78 Security ██████████████████░░ 92 Dependencies ██████████████████░░ 91 Testing ████████████████░░░░ 82 Structure █████████████████░░░ 88 The 5 Analyzers API Health (NestJS) This is the differentiator. codediag uses ts-morph to do real AST analysis of your NestJS decorators — not regex pattern matching. It discovers every endpoint from @get (), @post (), @Put(), @Delete(), @Patch() decorators and checks: Auth guards: Does this endpoint ha
Continue reading on Dev.to Webdev
Opens in a new tab



