shipscanner
v0.1.1
Published
The credit score for AI-generated code. Scan any GitHub repo from your terminal.
Maintainers
Readme
ShipScanner CLI
The credit score for AI-generated code. Scan any GitHub repo from your terminal in seconds.
Score range: 300-850 (like a credit score). Grades: A+ through F.
7 scanners. One score. Works with AI coding agents.
Quick Start
# Scan any GitHub repo
npx shipscanner scan https://github.com/owner/repo
# Shorthand works too
npx shipscanner scan owner/repoInstall
npm i -g shipscannerCommands
Scan a repository
# Basic scan
shipscanner scan owner/repo
# Specify branch
shipscanner scan owner/repo --branch develop
# JSON output (for AI agents, CI pipelines)
shipscanner scan owner/repo --json
# Fail if score is below threshold (CI quality gate)
shipscanner scan owner/repo --threshold 700Authentication
Free tier: 5 scans/hour. Authenticate for higher limits and private repo access.
# Set your API key (get one at shipscanner.dev/settings)
shipscanner login --key sk_your_api_key
# Check auth status
shipscanner whoami
# Remove stored key
shipscanner logoutOther commands
# Check status of a running scan
shipscanner status <scan-id>
# View/update config
shipscanner config
shipscanner config --api-url https://shipscanner.devOutput
ShipScanner Report
owner/repo (main)
Score: 720 / 850 (A)
████████████████████████████░░░░░░░░░░░░
300──────────────────────────────────850
Security ████████████░░░ 240/300 (80%) 3 issues
Secrets & Credentials ███████████████ 200/200 (100%) clean
Dependencies ██████████░░░░░ 100/150 (67%) 8 issues
Code Quality ████████████░░░ 82/100 (82%) 5 issues
Best Practices ███████████████ 98/100 (98%) 1 issues
Critical: 0 High: 2 Medium: 5 Low: 10
Full report: https://shipscanner.dev/report/abc123For AI Agents
ShipScanner is built for the agent economy. AI coding agents can call it before committing code.
# JSON output for machine consumption
npx shipscanner scan owner/repo --json
# Use as a quality gate (exit code 1 if below threshold)
npx shipscanner scan owner/repo --json --threshold 600Environment Variables
SHIPSCANNER_API_KEY=sk_... # API key (alternative to login)
SHIPSCANNER_API_URL=https://shipscanner.dev # API endpointWhat It Scans
| Scanner | Category | What it checks | |---------|----------|----------------| | Semgrep | Security | SAST - SQL injection, XSS, etc. | | Gitleaks | Secrets | Hardcoded API keys, tokens, passwords | | Trivy | Dependencies | Known CVEs in packages | | ESLint | Quality | Code smells, anti-patterns | | jscpd | Quality | Copy-paste / code duplication | | Lizard | Quality | Cyclomatic complexity | | Repocheck | Best Practices | Tests, CI/CD, LICENSE, README, .gitignore |
Links
- Website: shipscanner.dev
- GitHub Action: shipscanner/action
License
MIT
