{"library":"stoppable","type":"library","category":null,"description":"Stoppable is a Node.js library that decorates standard `http.Server` and `https.Server` instances with a `stop()` method, addressing a long-standing behavior of Node.js's native `server.close()` that often leaves existing connections open indefinitely. This library ensures a graceful shutdown by stopping new connections, allowing in-flight requests to complete, and then closing existing idle connections, optionally with a grace period for force-closing. The current stable version is 1.1.0, last updated in 2017. While widely adopted and stable for its intended purpose, it is no longer actively maintained. Its key differentiator is providing a reliable, explicit mechanism for graceful server shutdown that was historically missing from Node.js core, with minimal performance overhead. Alternatives like `http-terminator` offer similar functionality with different design choices, often avoiding monkey-patching.","language":"javascript","status":"maintenance","version":"1.1.0","tags":["javascript","server","net","connect","socket","connection","stop","close","disconnect"],"install":[{"cmd":"npm install stoppable","imports":["const stoppable = require('stoppable');","import stoppable from 'stoppable';"]},{"cmd":"yarn add stoppable","imports":[]},{"cmd":"pnpm add stoppable","imports":[]}],"homepage":null,"github":"https://github.com/hunterloftis/stoppable","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/stoppable","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/stoppable/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}