# Temporize: Promise-aware debounce and throttle for TypeScript

Original title: I made a Promise-aware debounce and throttle library for TypeScript

> Hacker News story 49143304 · language: en · submitted 2026-08-02
> Web version: https://zeli.app/story/49143304
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 14 · by [slimy74](<https://news.ycombinator.com/user?id=slimy74>) · 💬 10
[original](<https://github.com/nyvexis1/temporize>) · [HN discussion](<https://news.ycombinator.com/item?id=49143304>)

## Summary

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.

## Key quote

> Every scheduled call returns a real promise for the wrapped function's actual result.

## HN discussion (10 comments)

### [benoau](<https://news.ycombinator.com/item?id=49145311>)

> 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](<https://news.ycombinator.com/item?id=49145015>)

> Anyone else notice that debounce is a popular FE interview question?

### [jonchurch_](<https://news.ycombinator.com/item?id=49145611>)

> 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?

---

## Cite

- Page: https://zeli.app/story/49143304
- Date: 2026-08-02
- Source: github.com (https://github.com/nyvexis1/temporize)
- Hacker News: https://news.ycombinator.com/item?id=49143304

## Other languages

- zh: https://zeli.app/zh/story/49143304 · markdown: https://zeli.app/zh/story/49143304.md
