developit/decko
:dash: The 3 most useful ES7 decorators: bind, debounce and memoize observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4028
- days_rel: n/a
- days_push: 2882
- n_releases_24m: 0
Adoption not part of the score
1036 stars · 34 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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
library · maturity maintenance
caching middleware developer-tools web-development frontend browser decorators debounce memoization bind es7 preact nodejs javascript
3 sources
- readme: https://github.com/developit/decko · fetched 2026-08-28 · 2b245ff517c4
- homepage: https://developit.github.io/decko/ · fetched 2026-08-29 · e26dfc1b0cbc
- registry_npm: https://registry.npmjs.org/decko · fetched 2026-08-29 · 3d16bdcdc023
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| developit/decko | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem