ready-to-ship
v1.0.0
Published
π Validate a backend project before deployment like a senior engineer would. Comprehensive checks for env, auth, API, security, dependencies, and database configuration.
Downloads
102
Maintainers
Readme
π Ready-to-Ship CLI
Validate a backend project before deployment like a senior engineer would.
The only CLI that combines environment, auth, API, security, dependencies, and database validation in one tool.
β¨ Features
- β
Environment Validation - Check
.envfiles, missing variables, weak secrets, type validation - π Auth Validation - Detect unprotected routes, JWT configuration, middleware checks
- π API Validation - Health endpoints, route consistency, HTTP method patterns
- π Project Validation - Structure, README, error handling, best practices
- π Security Validation - CORS, security headers, rate limiting, vulnerability detection
- π¦ Dependencies Validation - Package health, lock files, outdated packages
- ποΈ Database Validation - Connection handling, pooling, migration files
- π§ Auto-Fix Suggestions - Get actionable fixes for common issues
- π Comprehensive Reports - Combined verdict with detailed insights
- π― CI/CD Ready - GitHub Actions templates included
Installation
npm install -g ready-to-shipOr use with npx (no installation needed):
npx ready-to-ship <command>Usage
Individual Checks
# Check environment variables
npx ready-to-ship env
# Check authentication & route protection
npx ready-to-ship auth
# Check API endpoints
npx ready-to-ship api
# Check project structure
npx ready-to-ship project
# Check security configurations
npx ready-to-ship security
# Check dependencies
npx ready-to-ship dependencies
# Check database configuration
npx ready-to-ship databaseAuto-Fix
# Get fix suggestions
npx ready-to-ship fix
# Apply fixes automatically (creates files)
npx ready-to-ship fix --applyFull Report
# Generate comprehensive report
npx ready-to-ship report
# With verbose output
npx ready-to-ship report --verbose
# Export to JSON
npx ready-to-ship report --jsonOptions
-p, --path <path>- Specify project path (default: current directory)--json- Export results to JSON (report command only)--verbose- Show detailed logs (report command only)
What It Checks
πΉ ENV Module
- Missing environment variables (compared to
.env.example) - Weak secrets (short JWT_SECRET, etc.)
- Unused variables
- Type validation (URL, email, number)
πΉ AUTH Module
- Unprotected sensitive routes
- Missing auth middleware
- JWT expiry configuration
- Route protection patterns
πΉ API Module
- Health endpoint presence
- Route consistency
- HTTP method patterns
- RESTful API best practices
πΉ PROJECT Module
.env.exampleexistence- README presence and quality
- Project structure
- Error handling middleware
πΉ SECURITY Module
- CORS configuration
- Security headers (Helmet.js)
- Rate limiting
- Common security anti-patterns
- eval() usage detection
πΉ DEPENDENCIES Module
- Lock file presence
- Outdated packages
- Security package recommendations
- Dependency count analysis
πΉ DATABASE Module
- Database connection configuration
- Connection error handling
- Connection pooling
- Migration files
- Database type detection
Example Output
========================
READY-TO-SHIP REPORT
========================
ENV: β
PASS
AUTH: β FAIL
API: β
PASS
PROJECT: β FAIL
FINAL VERDICT: β NOT READYπ― Why Ready-to-Ship?
Most validation tools only check one thing. Ready-to-Ship is the only CLI that combines:
- β Environment validation
- β Security checks
- β Auth validation
- β API health
- β Dependencies analysis
- β Database configuration
- β Auto-fix suggestions
All in one command. Save hours of manual review before every deployment.
π CI/CD Integration
Add to your GitHub Actions workflow:
- name: Run Ready-to-Ship
run: npx ready-to-ship report --jsonSee templates/.github/workflows/ready-to-ship.yml for a complete example.
π Roadmap
- [ ] OpenAPI/Swagger spec validation
- [ ] Docker/container readiness checks
- [ ] Performance hints
- [ ] Logging setup validation
- [ ] VSCode extension
- [ ] Slack/Discord webhook integration
π€ Contributing
Contributions welcome! Please feel free to submit a Pull Request.
π License
MIT
β Star History
If you find this tool useful, please consider giving it a star on GitHub!
