safelaunch
v1.0.31
Published
Backend Reliability Infrastructure - catch what breaks production before it breaks
Maintainers
Readme
safelaunch
The pre-deploy guardrail for JavaScript projects.
One command turns safelaunch into a system that blocks bad pushes automatically — forever.
Works with Node.js, Next.js, Vite, and Create React App.
Get protected in one command
npx safelaunch setupNo installation. No config. Run it once in any JavaScript project.
safelaunch scans your project, shows you exactly what would break your next deploy, generates your environment manifest, and installs a git hook that blocks bad pushes automatically from now on.
What happens when you push
If something will break production:
✗ PUSH BLOCKED — 2 issues will break production
Fix all blockers before this code ships.
✗ STRIPE_SECRET_KEY is missing
Impact: Any code that reads process.env.STRIPE_SECRET_KEY will get undefined. This silently breaks at runtime.
→ Add STRIPE_SECRET_KEY to your .env file.
✗ DATABASE_URL is missing
Impact: Any code that reads process.env.DATABASE_URL will get undefined. This silently breaks at runtime.
→ Add DATABASE_URL to your .env file.
─────────────────────────────────────────────────
2 blockers · push aborted
To skip (not recommended): git push --no-verifyIf everything is clean:
✓ All checks passed (0.4s)Nothing else. Your push goes through.
What safelaunch checks
Environment
- Missing required variables
- Empty variable values
- Duplicate variable definitions
VITE_prefix validation (Vite projects)REACT_APP_prefix validation (CRA projects).env.examplegaps
Secrets & Security
- Secrets committed to staged files
.envnot in.gitignore
Dependencies
node_modulesnot installed- Packages in
package.jsonbut not installed - Lockfile out of sync with
package.json
Build Readiness
- TypeScript errors (
tsc --noEmit) - Critical npm vulnerabilities
Runtime
- Node.js version mismatch (
.nvmrc)
Commands
npx safelaunch setup # Scan + generate manifest + install git hook
safelaunch scan # Run all checks
safelaunch init # Generate env.manifest.json from your .env
safelaunch validate # Validate current env against manifest
safelaunch hook install # Install the git hook manually
safelaunch hook uninstall # Remove the git hook
safelaunch hook status # Check if the hook is activeHow the hook stays active
Once installed, the hook runs before every git push. If it ever goes missing, safelaunch validate detects and reinstalls it automatically.
New team members get the hook installed automatically via the postinstall script when they run npm install.
CI Integration
- name: Validate environment
run: npx safelaunch validateBlocks the pipeline if required variables are missing or misconfigured.
env.manifest.json
safelaunch setup generates an env.manifest.json — a contract that locks which variables your project requires. Commit this file. Every push is validated against it.
{
"version": "1.0.0",
"required": [
"DATABASE_URL",
"STRIPE_SECRET_KEY",
"NEXTAUTH_SECRET"
]
}Privacy & Security
safelaunch runs entirely on your machine. It never sends your environment variables, secrets, or project data to external servers. Your .env files stay local. Always.
Anonymous usage telemetry is collected to help improve the product. No personal data, no secrets, no file contents — ever.
Built by Karthi Cedric · Part of Orches
