Code review that actually read your codebase
NiArgus uses Nia (not affiliated) to index your full repo before reviewing PRs — not just the diff. It finds conflicts with existing patterns, duplicated logic, and real issues.
## NiArgus Review
Summary
This PR adds rate limiting middleware to the auth flow. The implementation is correct but conflicts with an existing pattern used elsewhere.
🔴 Conflict with existing pattern — middleware/rateLimit.js:23
You're using express-rate-limit here, but middleware/auth.ts already implements rate limiting via services/redis/rateLimiter.ts. Two rate limiting systems will apply to the same endpoints.
🟡 Missing error handling — routes/auth.js:67
The new checkRateLimit() call has no try/catch. services/redis/rateLimiter.ts can throw on Redis connection failure.
🟢 Looks good
Token expiry logic in utils/jwt.ts is consistent with the existing pattern in services/auth/tokenService.ts.
Context used: 12 files from codebase index
Sees the full picture
Reviews reference files outside the diff. NiArgus knows what patterns exist across your entire codebase before reviewing.
Finds real conflicts
Identifies clashes with existing patterns, duplicated logic, and architectural inconsistencies — not just lint errors.
Zero configuration
Install once, works on every PR. No yaml files, no CLI, no API keys to manage. NiArgus starts reviewing immediately.