# libreact

Collection of useful React components

Repository: https://github.com/streamich/libreact
Canonical: https://ross.abutalabs.com/products/libreact
Language: TypeScript
License: Unlicense
License Family: permissive
Last push: 2025-01-25T13:24:16+00:00
Link (homepage): http://streamich.github.io/react-use

## Health v2 (maintenance only)
Score: 24/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 3, release rhythm 8, longevity 100
- inputs: {"age_days": 3007, "days_push": 585, "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 2611, forks 86 (observed 2026-08-28T04:07:04.397278+00:00)

## What it is
libreact is a React standard library offering a large toolbox of higher-order components, render-prop components, and utilities for sensors, state, routing, media, and UI concerns. Its successor react-use ports the same functionality as a widely used collection of essential React Hooks.

## Use cases
- track device battery or geolocation in a React app
- handle keyboard and mouse events with hooks
- detect element hover, intersection, or viewport visibility
- read and write localStorage from React components
- play audio and video in React
- track media query and network status in components
- add fullscreen, portal, or modal behavior to React apps

## When to choose
- you want a batteries-included set of React hooks instead of writing your own
- you need sensor-style state like battery, geolocation, or media queries
- you prefer tree-shakeable hook utilities over heavyweight frameworks

## When to avoid
- you use a framework other than React
- you need only one or two hooks and want zero extra dependencies
- you require SSR-safe hooks with strict server rendering guarantees

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, state-management, developer-tools
- domain: web-development, frontend, developer-tools
- platform: browser, cross-platform
- tags: react, react-hooks, hoc, sensors, utility-library, typescript, nodejs

## Member repositories
- streamich/libreact (main) score 24
- streamich/react-use (sdk) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:04.397278+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-29T16:22:15.789904+00:00, confidence not recorded.
  - readme: https://github.com/streamich/libreact (fetched 2026-08-28T04:07:04.397278+00:00, sha 85f1e0d0321d)
  - homepage: http://streamich.github.io/react-use (fetched 2026-08-29T07:46:10.703254+00:00, sha 7944684e79db)
  - registry_npm: https://registry.npmjs.org/libreact (fetched 2026-08-29T07:46:10.712603+00:00, sha fdfba36c97c0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
