prodlint
Production readiness for vibe-coded apps.
Static analysis for vibe-coded apps. Flags the security, reliability, performance, and AI quality issues that Cursor, v0, Bolt, and Copilot create โ hallucinated imports, missing auth, hardcoded secrets, unvalidated server actions, and more. Zero config, no LLM, 52 rules.
npx prodlint
prodlint v0.10.4
Scanned 148 files ยท 2 critical ยท 5 warnings ยท 1 info
src/app/api/checkout/route.ts
12:1 INFO No rate limiting โ anyone could spam this endpoint and run up your API costs rate-limiting
28:5 WARN Empty catch block silently swallows error shallow-catch
src/actions/submit.ts
5:3 CRIT Server action uses formData without validation next-server-action-validation
โณ Validate with Zod: const data = schema.safeParse(Object.fromEntries(formData))
src/lib/db.ts
1:1 CRIT Package "drizzle-orm" is imported but not in package.json hallucinated-imports
Scores
security 72 โโโโโโโโโโโโโโโโโโโโ (8 issues)
reliability 85 โโโโโโโโโโโโโโโโโโโโ (4 issues)
performance 95 โโโโโโโโโโโโโโโโโโโโ (1 issue)
ai-quality 90 โโโโโโโโโโโโโโโโโโโโ (3 issues)
Overall: 82/100 (weighted)
2 critical ยท 5 warnings ยท 4 info
Why?
Vibe coding is the fastest way to build. Shipping fast means knowing your code is production-ready โ not just that it compiles. Hardcoded secrets, hallucinated packages, missing auth, and XSS vectors pass type-checks and look correct โ but they aren't ready for production.
prodlint checks what TypeScript and ESLint don't: whether your vibe-coded app is ready for production.
Install
npx prodlint # Run directly (no install)
npx prodlint ./my-app # Scan specific path
npx prodlint --json # JSON output for CI
npx prodlint --sarif # SARIF 2.1.0 for GitHub Code Scanning
npx prodlint --summary # Quick pass/fail + top 3 blockers
npx prodlint --profile startup # Only critical findings
npx prodlint --profile strict # All findings including info
npx prodlint --baseline .prodlint-baseline.json # Only new findings
npx prodlint --ignore "*.test.ts" # Ignore patterns
npx prodlint --min-severity warning # Only warnings and criticals
npx prodlint --quiet # Suppress badge output
Or install it:
npm i -D prodlint # Project dependency
npm i -g prodlint # Global install
52 Rules across 4 Categories
Security (27 rules)
Reliability (11 rules)
Performance (6 rules)
AI Quality (8 rules)
Smart Detection
prodlint avoids common false positives:
- AST parsing โ Babel-based analysis for 13 rules (imports, catch blocks, redirects, redirects in try/catch, SSRF, path traversal, JWT, HTML injection, hydration, transactions, env leaks, loops, SQL) with regex fallback
- Monorepo support โ npm/yarn/pnpm workspace dependencies resolved automatically
- Framework awareness โ Prisma, Drizzle, Supabase, Knex, and Sequelize whitelists prevent false SQL injection flags
- Middleware detection โ Clerk, NextAuth, Supabase middleware (
middleware.ts, orproxy.tson Next.js 16) detected โ auth findings downgraded - Block comment awareness โ patterns inside
/* */are ignored - Path alias support โ
@/,~/, and tsconfig paths aren't flagged as hallucinated imports - Route exemptions โ auth, webhook, health, and cron routes are exempt from auth/rate-limit checks
- Test/script file awareness โ lower severity for non-production files
- Fix suggestions โ findings include actionable
fixhints with remediation code
Scoring
Each category starts at 100. Deductions per finding:
Diminishing returns: after 30 points deducted in a category, further deductions are halved; after 50, quartered.
Weighted overall: security 40%, reliability 30%, performance 15%, ai-quality 15%. Floor at 0. Exit code 1 if any critical findings exist.
GitHub Action
Add to .github/workflows/prodlint.yml:
name: Prodlint
on: [pull_request]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: prodlint/prodlint@v1
with:
threshold: 50
Posts a score breakdown as a PR comment, and fails the build when the scan finds critical
issues or the score is below threshold. Each release of the action runs its matching
prodlint version, so pinning the action (@v1, a version tag, or a commit SHA) also pins
the scanner.
SARIF + GitHub Code Scanning
Upload prodlint results to GitHub's Security tab:
- name: Run prodlint
run: npx prodlint --sarif > prodlint.sarif
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: prodlint.sarif
category: prodlint
Baseline for Existing Projects
Adopt prodlint gradually without drowning in pre-existing findings:
# Save current state as baseline
npx prodlint --baseline-save .prodlint-baseline.json
# CI only fails on NEW findings
npx prodlint --baseline .prodlint-baseline.json
MCP Server
Use prodlint inside Cursor, Claude Code, or any MCP-compatible editor:
Claude Code:
claude mcp add prodlint -- npx -y prodlint-mcp
Cursor / Windsurf:
{
"mcpServers": {
"prodlint": {
"command": "npx",
"args": ["-y", "prodlint-mcp"]
}
}
}
prodlint-mcp is a thin launcher for the server built into prodlint. It's published with
every prodlint release, so it always runs the matching scanner.
Ask your AI: "Run prodlint on this project" and it calls the scan tool directly.
Both tools return a Markdown summary plus structured output (structuredContent matching
each tool's outputSchema), and both are marked read-only (readOnlyHint), which hosted
reviewers such as GitHub Copilot code review require before they call an MCP tool.
Site Score
Check any deployed website for AI agent-readiness โ 14 checks covering emerging standards like llms.txt, TDMRep, AgentCard, AI-Disclosure, HTTP Signatures (RFC 9421), and more.
npx prodlint --web example.com
npx prodlint --web example.com --json # JSON output
prodlint site score
example.com ยท 14 checks
Score: 42 C โโโโโโโโโโโโโโโโโโโโ
โ AI-Disclosure Header 0/10 No AI-Disclosure header found.
โ Content-Usage Directives 0/10 No Content-Usage directives found.
โ TDMRep 0/10 No TDMRep found.
โ A2A AgentCard 0/5 No agent-card.json found.
โ ai.txt 0/5 No ai.txt found at site root.
! llms.txt 2/5 llms.txt found but missing key sections.
โ robots.txt 10/10 robots.txt found with 15 rules.
โ Sitemap 10/10 Valid sitemap with 42 URLs.
โ Structured Data 10/10 Found JSON-LD structured data.
โ OpenGraph 10/10 Complete OpenGraph tags found.
โ Page Speed 5/5 Loaded in 0.8s.
โ AI Bot Directives 5/5 AI-specific bot rules found.
โ WebMCP Tools 0/5 No WebMCP tools detected.
7 passed ยท 5 failed ยท 1 warnings
Full results: https://prodlint.com/score?url=example.com
Or check your score interactively at prodlint.com/score.
For AI Tools
- LLM-friendly docs: prodlint.com/llms.txt โ concise project summary for LLMs
- Full reference: prodlint.com/llms-full.txt โ all 52 rules with details
- MCP setup guide: prodlint.com/mcp โ detailed editor setup for Claude Code, Cursor, Windsurf
prodlint is designed specifically for AI-generated code patterns. Every rule checks for production issues that AI coding tools consistently create โ not style nits.
Suppression
Suppress a single line:
// prodlint-disable-next-line secrets
const key = "sk_test_example_for_docs"
Suppress an entire file (place at top):
// prodlint-disable secrets
Programmatic API
import { scan } from 'prodlint'
const result = await scan({ path: './my-project' })
console.log(result.overallScore) // 0-100
console.log(result.findings) // Finding[]
Badge
[](https://prodlint.com)
License
MIT