{"library":"retimer","type":"library","category":null,"description":"Retimer is a JavaScript library providing a reschedulable alternative to Node.js's native `setTimeout`. It is specifically designed for scenarios requiring frequent timer rescheduling, such as managing keep-alive functionality across numerous client connections or sockets, where repeatedly clearing and setting `setTimeout` can become a performance bottleneck due to Node.js's internal timer linked list management. The library works by allowing old timers to run out naturally while scheduling new ones, optimizing performance when rescheduling a timeout *after* its original duration. The current stable version is 4.0.0, which notably introduced TypeScript types and support for `worker-timers`. While release cadence isn't strictly defined, major versions appear every few years, indicating a mature and stable project. Its key differentiator is the performance optimization for 'reschedule after' scenarios, aiming for better efficiency than naive `clearTimeout`/`setTimeout` cycles.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript","schedulable","reschedulable","timer","setTimeout","typescript"],"install":[{"cmd":"npm install retimer","imports":["import retimer from 'retimer';","import retimer, { Retimer } from 'retimer';","const retimer = require('retimer');"]},{"cmd":"yarn add retimer","imports":[]},{"cmd":"pnpm add retimer","imports":[]}],"homepage":null,"github":"https://github.com/mcollina/retimer","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/retimer","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/retimer/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}