{"repo":"AbhishekSuresh2/zero-crash","free":true,"listed":false,"github":"https://github.com/AbhishekSuresh2/zero-crash","clone":"git clone https://github.com/AbhishekSuresh2/zero-crash.git","description":"🛡️ Zero-dependency runtime crash guard for Node.js apps with disciplined exits and clean logs","language":"JavaScript","stars":88,"topics":["api","backend","cli-tools","crash-handler","error-handler","graceful-shutdown","node-runtime","nodejs","process-exit","runtime-safety"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"💥 zero-crash 🛡️ Prevent silent crashes in Node.js apps in one line . 📊 Project Stats Global runtime crash protection for modern Node.js apps. Stop silent crashes, messy stack traces, and undefined exits. zero-crash enforces disciplined failures , clean shutdowns , and human-readable crash logs — automatically. Built for 2026 projects , production-safe, and dependency-free. --- 🚀 Why zero-crash? Most Node apps crash in ugly ways: Silent exits Infinite restart loops Unhandled promise rejections Random process.exit(1) No context, no discipline zero-crash gives your app a runtime safety contract . ✔ Zero dependencies ✔ Global crash interception ✔ Clean exit codes ✔ Shutdown hooks ✔ Context-aware crash logs ✔ Works for APIs, CLIs, bots, servers --- 📦 Installation --- 🧠 Basic Usage That’s it. Global crash protection is now active. --- 🔥 Advanced Usage (Recommended) 🧩 Role Awareness Crash output will include role: --- 🔐 Environment Validation If missing: --- 🛑 Safe Shutdown Hooks Runs on: crash Ctrl+C SIGTERM process exit --- ⚠️ Crash Classification Mapped exit codes: Type Exit Code ---------------- --------- Success 0 Runtime Error 1 Config Error 2 Dependency Error 3 Manual Interrupt 130 --- 🧪 Full Example --- 🪄 Crash Output Example --- ⚙️ Options Option Description --------- ------------------------- verbose Show full stack trace quiet Disable console logs json Output crash info as JSON onCrash Custom crash hook --- 🛠️ Use Cases REST APIs CLI tools WhatsApp / Telegram","default_branch":null,"files":null,"tree":[],"storefront":"/r/AbhishekSuresh2","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AbhishekSuresh2/zero-crash/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}