# uidotdev/usehooks

A collection of modern, server-safe React hooks – from the ui.dev team

Repository: https://github.com/uidotdev/usehooks
Canonical: https://ross.abutalabs.com/products/usehooks
Homepage: https://usehooks.com
Language: MDX
License: MIT
License Family: permissive
Topics: react, hooks, blog, astro, react-hooks, vercel
Last push: 2025-05-24T15:48:40+00:00

## Health v2 (maintenance only)
Score: 33/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 23, release rhythm 8, longevity 100
- inputs: {"age_days": 2794, "days_push": 466, "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 11502, forks 586 (observed 2026-08-28T04:10:48.388343+00:00)

## What it is
A collection of modern, server-safe React hooks published as the npm package @uidotdev/usehooks, maintained by the ui.dev team. It includes hooks for common UI needs like debounce, localStorage, window size, media queries, and geolocation, plus an experimental tier.

## Use cases
- add debounce or throttle to React components
- sync React state with localStorage
- track window size or scroll position in React
- detect hover, click-away, or idle state in React apps
- copy to clipboard from a React component
- use geolocation or battery status in React
- learn how React hooks are implemented

## When to choose
- you want a well-maintained, MIT-licensed set of ready-made React hooks
- you need hooks that are safe with server-side rendering (React 18+)
- you want small, focused utilities instead of a heavy component library

## When to avoid
- you are not using React
- you need a full UI component library with styling
- you need hooks for a specific library like React Query or Redux

## Facets
- artifact type: library
- maturity: active
- function: ui-components, state-management, developer-tools
- domain: frontend, web-development, developer-tools
- platform: browser
- tags: react-hooks, react, npm-package, server-safe, hooks-collection, nodejs, web-server

## Member repositories
- uidotdev/usehooks (main) score 33

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:48.388343+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:15:32.346403+00:00, confidence not recorded.
  - readme: https://github.com/uidotdev/usehooks (fetched 2026-08-28T04:10:48.388343+00:00, sha e318804dff96)
  - homepage: https://usehooks.com (fetched 2026-08-29T08:14:27.424567+00:00, sha cf9396ac30c6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
