# DavidHDev/haiku

A clean & lightweight collection of React Hooks & Utilities!

Repository: https://github.com/DavidHDev/haiku
Canonical: https://ross.abutalabs.com/products/davidhdev-haiku
Homepage: https://reacthaiku.dev/
Language: TypeScript
License: NOASSERTION
License Family: other
Topics: frontend, hooks, nextjs, react, reactjs, utilities, hook, react-hooks, components, next
Last push: 2025-08-12T08:04:56+00:00

## Health v2 (maintenance only)
Score: 42/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 36, release rhythm 18, longevity 100
- inputs: {"age_days": 1566, "days_push": 386, "days_rel": 386, "gap_med": 98.5, "n_releases_24m": 3}
- 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 1012, forks 114 (observed 2026-08-28T04:03:13.445948+00:00)

## What it is
Haiku (react-haiku) is a lightweight collection of 46 React hooks and 9 utility components for common frontend tasks like debouncing, clipboard access, click-outside detection, and conditional rendering. It ships as an npm package under 7Kb and works with React 16.8+ including Next.js projects.

## Use cases
- debounce user input in react components
- detect clicks outside an element
- copy text to clipboard in react
- conditional rendering in jsx
- detect user operating system in browser
- manage cookies in react
- show battery status in a web app
- catch render errors with an error boundary

## When to choose
- you want a small bundle of ready-made hooks instead of writing them yourself
- you need common browser-facing hooks like debounce, clipboard, or fullscreen
- you prefer declarative conditional-rendering components like If, Show, and Switch
- you use React 16.8+ or Next.js and want framework-agnostic utilities

## When to avoid
- you need a full UI component library with styled widgets
- your project is not React-based
- you need SSR guarantees on older Next.js versions without transpilation setup
- you require a permissively-audited license - the repo license is marked NOASSERTION despite the README stating MIT

## Facets
- artifact type: library
- maturity: active
- function: ui-components, state-management, developer-tools
- domain: frontend, web-development, developer-tools
- platform: browser, cross-platform
- tags: react-hooks, react, nextjs, typescript, utility-components, conditional-rendering, lightweight, nodejs

## Member repositories
- DavidHDev/haiku (main) score 42

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:13.445948+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-30T07:11:42.907996+00:00, confidence not recorded.
  - readme: https://github.com/DavidHDev/haiku (fetched 2026-08-28T04:03:13.445948+00:00, sha 0991c757b060)
  - homepage: https://reacthaiku.dev/ (fetched 2026-08-29T13:11:33.009711+00:00, sha 39325d4b4f2a)
  - site_page: https://www.reacthaiku.dev/docs/intro (fetched 2026-08-29T13:11:33.019178+00:00, sha 504de06943e7)
  - site_page: https://www.reacthaiku.dev/docs/category/hooks (fetched 2026-08-29T13:11:33.021750+00:00, sha f5c05968623d)
  - site_page: https://www.reacthaiku.dev/docs/category/utilities (fetched 2026-08-29T13:11:33.025622+00:00, sha 6dfeb18b80db)
- Data as of 2026-08-30T08:39:29.467469+00:00.
