# juliencrn/usehooks-ts

React hook library, ready to use, written in Typescript.

Repository: https://github.com/juliencrn/usehooks-ts
Canonical: https://ross.abutalabs.com/products/usehooks-ts
Homepage: https://usehooks-ts.com
Language: TypeScript
License: MIT
License Family: permissive
Topics: typescript, react, react-hooks, mdx, hooks, reactjs, hook, nextjs, react-hook
Last push: 2026-08-26T13:44:59+00:00

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

## Adoption (not part of the score)
Stars 7851, forks 457 (observed 2026-08-28T04:10:07.402091+00:00)

## What it is
usehooks-ts is a collection of ready-to-use React hooks written in TypeScript, covering common needs like localStorage, debounce, dark mode, event listeners, and media queries. It is dependency-free, fully tree-shakable, and extensively tested for production use.

## Use cases
- sync react state with localstorage
- debounce a value or callback in react
- implement dark mode toggle in react
- detect clicks outside a component
- track window size in react
- copy text to clipboard in react
- run interval or timeout hooks in react

## When to choose
- you build React or Next.js apps and want typed, tested hooks for common patterns
- you want a tiny, tree-shakable hook library with zero dependencies
- you want to avoid rewriting boilerplate hooks like useLocalStorage or useDebounce

## When to avoid
- your project does not use React
- you need only one or two hooks and prefer inlining them to avoid a dependency
- you need highly specialized hooks not covered by the library

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, state-management, developer-tools
- domain: frontend, web-development, developer-tools
- platform: cross-platform
- tags: react-hooks, typescript, tree-shakable, react, hooks-library, nextjs, nodejs, web-server

## Member repositories
- juliencrn/usehooks-ts (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:07.402091+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-29T17:33:49.278811+00:00, confidence not recorded.
  - readme: https://github.com/juliencrn/usehooks-ts (fetched 2026-08-28T04:10:07.402091+00:00, sha 5b3d7b769514)
  - homepage: https://usehooks-ts.com (fetched 2026-08-29T08:30:41.407413+00:00, sha e5f21049dbb6)
  - registry_npm: https://registry.npmjs.org/usehooks-ts (fetched 2026-08-29T08:30:41.418106+00:00, sha 111aa3702e67)
  - site_page: https://usehooks-ts.com/introduction (fetched 2026-08-29T08:30:41.416275+00:00, sha dd7d4a96f084)
- Data as of 2026-08-30T08:39:29.467469+00:00.
