# developit/decko

:dash: The 3 most useful ES7 decorators: bind, debounce and memoize

Repository: https://github.com/developit/decko
Canonical: https://ross.abutalabs.com/products/decko
Homepage: https://developit.github.io/decko/
Language: JavaScript
License: MIT
License Family: permissive
Topics: decorators, debounce, throttle-calls, memoize, memoization
Last push: 2018-10-12T22:33:20+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4028, "days_push": 2882, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1036, forks 34 (observed 2026-08-28T04:03:19.154941+00:00)

## What it is
A tiny JavaScript library providing three ES7 decorators: @bind, @debounce, and @memoize. It is designed to simplify common class method patterns, particularly in Preact class components.

## Use cases
- bind class methods to a fixed this value
- debounce frequently called methods
- memoize expensive function results by argument
- simplify React or Preact class component handlers
- avoid writing custom decorators in a codebase

## When to choose
- you use Babel or TypeScript with experimental decorators and want standard, recognizable method decorators
- you need a tiny, dependency-free bind/debounce/memoize utility for class-based components

## When to avoid
- you write functional components or modern code without decorator support
- you need advanced memoization with multiple-argument cache keys or LRU eviction
- you need actively maintained libraries with recent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: caching, middleware
- domain: developer-tools, web-development, frontend
- platform: browser
- tags: decorators, debounce, memoization, bind, es7, preact, nodejs, javascript

## Member repositories
- developit/decko (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:19.154941+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:04:39.144977+00:00, confidence not recorded.
  - readme: https://github.com/developit/decko (fetched 2026-08-28T04:03:19.154941+00:00, sha 2b245ff517c4)
  - homepage: https://developit.github.io/decko/ (fetched 2026-08-29T13:05:23.357998+00:00, sha e26dfc1b0cbc)
  - registry_npm: https://registry.npmjs.org/decko (fetched 2026-08-29T13:05:23.360931+00:00, sha 3d16bdcdc023)
- Data as of 2026-08-30T08:39:29.467469+00:00.
