# niksy/throttle-debounce

Throttle and debounce functions.

Repository: https://github.com/niksy/throttle-debounce
Canonical: https://ross.abutalabs.com/products/throttle-debounce
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2024-06-24T14:06:25+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4274, "days_push": 800, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1044, forks 106 (observed 2026-08-28T04:03:21.173622+00:00)

## What it is
A small JavaScript utility library providing throttle and debounce functions, ported from jquery-throttle-debounce to ES Modules and CommonJS. It supports options like leading/trailing execution, at-begin mode, and cancellation of pending calls.

## Use cases
- rate-limit scroll or resize event handlers
- debounce search input before firing API requests
- throttle window resize callbacks
- cancel a pending debounced call
- limit how often a button handler fires

## When to choose
- you need a tiny, dependency-free throttle/debounce utility
- you want ES Modules and CommonJS support
- you need cancel support including upcoming-only cancellation

## When to avoid
- your framework already bundles throttle/debounce (e.g. lodash)
- you need advanced scheduling like trailing-edge promises or async throttling

## Facets
- artifact type: library
- maturity: stable
- function: middleware
- domain: web-development, frontend, developer-tools
- platform: browser, cross-platform
- tags: throttle, debounce, rate-limiting, es-modules, javascript, npm-package, event-handling, nodejs

## Member repositories
- niksy/throttle-debounce (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:21.173622+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-30T07:02:14.883949+00:00, confidence not recorded.
  - readme: https://github.com/niksy/throttle-debounce (fetched 2026-08-28T04:03:21.173622+00:00, sha 6524d5efa7ee)
  - registry_npm: https://registry.npmjs.org/throttle-debounce (fetched 2026-08-29T13:03:13.874798+00:00, sha 7481b742f9d5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
