# xnimorz/use-debounce

A debounce hook for react

Repository: https://github.com/xnimorz/use-debounce
Canonical: https://ross.abutalabs.com/products/use-debounce
Language: TypeScript
License: MIT
License Family: permissive
Topics: react-hooks, react-hook, debounce, react, usedebounce, react-use
Last push: 2026-08-05T07:03:41+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 21, longevity 100
- inputs: {"age_days": 2854, "days_push": 28, "days_rel": 366, "gap_med": 161.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3384, forks 120 (observed 2026-08-28T04:07:58.709552+00:00)

## What it is
A small (<1 Kb) React hooks library providing useDebounce, useDebouncedCallback, and useThrottledCallback. It is lodash-compatible, tree-shakeable, TypeScript-typed, and server-rendering friendly.

## Use cases
- debounce a value in a react component
- debounce http requests as user types in a search input
- debounce callbacks with cancel and maxWait options
- throttle event handlers like scroll or resize in react
- avoid re-rendering on every keystroke in a controlled input

## When to choose
- you use React and need lightweight debouncing or throttling hooks
- you want lodash-compatible semantics with cancel, flush, and maxWait support
- you need SSR-friendly, tree-shakeable, typed hooks

## When to avoid
- you are not using React
- you need general-purpose debouncing outside of React components
- you need advanced scheduling beyond debounce/throttle

## Facets
- artifact type: library
- maturity: stable
- function: web-framework, developer-tools
- domain: web-development, frontend, developer-tools
- platform: cross-platform
- tags: react, react-hooks, debounce, throttle, typescript, npm-package, nodejs, web-server

## Member repositories
- xnimorz/use-debounce (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:58.709552+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:39:29.160460+00:00, confidence not recorded.
  - readme: https://github.com/xnimorz/use-debounce (fetched 2026-08-28T04:07:58.709552+00:00, sha 74258fc52c1b)
  - registry_npm: https://registry.npmjs.org/use-debounce (fetched 2026-08-29T09:33:17.246790+00:00, sha b130c862f41b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
