# alibaba/hooks

A high-quality & reliable React Hooks library.   https://alibaba.github.io/hooks/

Repository: https://github.com/alibaba/hooks
Canonical: https://ross.abutalabs.com/products/hooks
Homepage: https://ahooks.js.org/
Language: TypeScript
License: MIT
License Family: permissive
Topics: ahooks, react, hooks-library, umi-hooks, react-hooks
Last push: 2026-08-09T11:13:20+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 64, longevity 100
- inputs: {"age_days": 2624, "days_push": 24, "days_rel": 163, "gap_med": 44.5, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 14982, forks 2768 (observed 2026-08-28T04:11:09.023270+00:00)

## What it is
ahooks is a high-quality, reliable React Hooks library written in TypeScript by Alibaba. It provides a comprehensive collection of basic and advanced hooks (like useRequest and useUrlState) refined from real business scenarios, with SSR support and closure-problem avoidance.

## Use cases
- manage async data fetching in React components
- sync React state to URL query params
- avoid stale closure bugs in React hooks
- debounce and throttle user input in React
- handle component lifecycle and DOM events with hooks
- build React apps with reusable stateful logic

## When to choose
- you use React and want battle-tested hooks instead of writing your own
- you need SSR-compatible hooks with TypeScript types
- you want a single library covering async requests, DOM, lifecycle, and state hooks

## When to avoid
- you use Vue, Svelte, or Angular rather than React
- you want a minimal bundle and only need one or two simple hooks
- your team prefers framework-native solutions like React Query for data fetching

## Facets
- artifact type: library
- maturity: stable
- function: state-management, http-client, form-handling, developer-tools
- domain: frontend, web-development, developer-tools
- platform: cross-platform
- tags: react-hooks, ahooks, typescript, ssr, use-request, nodejs, web-server

## Member repositories
- alibaba/hooks (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:09.023270+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:06:47.407705+00:00, confidence not recorded.
  - readme: https://github.com/alibaba/hooks (fetched 2026-08-28T04:11:09.023270+00:00, sha c9395574c02f)
  - homepage: https://ahooks.js.org/ (fetched 2026-08-29T08:05:03.491187+00:00, sha 0b5c4f8f1c82)
- Data as of 2026-08-30T08:39:29.467469+00:00.
