Temporize: Promise-aware debounce and throttle for TypeScript
I made a Promise-aware debounce and throttle library for TypeScript
Temporize is a zero-dependency TypeScript library offering debounce, throttle, batching, retries, concurrency limits, and React/Vue adapters. Every scheduled call returns a real promise for the wrapped function's result, with full type inference. It includes unique features like promise queue rate limiting, async overlap policies, animation-frame throttling, and idle scheduling. The package ships as ESM and CommonJS.
Every scheduled call returns a real promise for the wrapped function's actual result.
- benoau
Very nice. I've become addicted to using the `openapi-typescript` libraries to ingest type definitions and then `openapi-fetch` for an automatically-typed client, your debounce library slots over it while preserving all the typing and IntelliSense information.
- game_the0ry
Anyone else notice that debounce is a popular FE interview question?
- jonchurch_
Im curious OP, what was the specific callsite (not overall category) that made you write this library? What did the code look like before/after you used this library?
And in that callsite, what were you doing with the resolved value?