# simoneb/axios-hooks

🦆 React hooks for axios

Repository: https://github.com/simoneb/axios-hooks
Canonical: https://ross.abutalabs.com/products/axios-hooks
Language: JavaScript
License: NOASSERTION
License Family: other
Topics: axios, react, hooks
Last push: 2026-07-28T14:43:51+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 94, release rhythm 28, longevity 100
- inputs: {"age_days": 2755, "days_push": 36, "days_rel": 531, "gap_med": 74, "n_releases_24m": 2}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1892, forks 127 (observed 2026-08-28T04:05:50.464415+00:00)

## What it is
A React hooks library wrapping the axios HTTP client, offering one-line data fetching with loading/error state, caching, and built-in server-side rendering support. It exposes useAxios, configure, cache serialization, and a makeUseAxios factory for custom instances.

## Use cases
- fetch data in react components with hooks
- handle loading and error states for http requests in react
- server side rendering with cached requests
- refetch data on button click
- implement pagination or infinite scrolling with axios
- share a configured axios instance across hooks

## When to choose
- you use axios in a React app and want declarative hook-based fetching
- you need SSR-compatible request caching and hydration
- you want minimal boilerplate for data fetching with refetch support

## When to avoid
- you use a framework with its own data-fetching primitives like React Query or Next.js built-ins
- your project does not use React
- you need a non-axios HTTP client

## Facets
- artifact type: library
- maturity: active
- function: http-client, state-management, caching
- domain: web-development, frontend, apis
- platform: cross-platform
- tags: react-hooks, axios, ssr, data-fetching, nodejs, web-server

## Member repositories
- simoneb/axios-hooks (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:50.464415+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-30T03:12:58.440843+00:00, confidence not recorded.
  - readme: https://github.com/simoneb/axios-hooks (fetched 2026-08-28T04:05:50.464415+00:00, sha f2bcae3eb561)
  - registry_npm: https://registry.npmjs.org/axios-hooks (fetched 2026-08-29T10:52:19.093145+00:00, sha df8d2d5b6e11)
- Data as of 2026-08-30T08:39:29.467469+00:00.
