matthewp/haunted
React's Hooks API implemented for web components 👻 observed · 2026-08-28
Health v2 · maintenance only
79/100
- Activity 99
- Release rhythm 40
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 3
- age_days: 2867
- days_rel: 558
- days_push: 9
- n_releases_24m: 2
Adoption not part of the score
2718 stars · 90 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Haunted is a TypeScript library that brings React's Hooks API (useState, useEffect, useContext, etc.) to standard web components, using lit-html or hyperHTML as renderers. It lets you define custom elements as plain functions with hooks, reusing existing React hooks from npm via bundler aliasing.
Use cases
- use react hooks in web components
- build custom elements without a framework
- write function-based web components with state
- reuse react hooks libraries in web components
- lightweight alternative to react for component development
- create web components with lit-html rendering
When to choose
- you want React-style hooks ergonomics in standards-based web components
- you need framework-agnostic components usable across React, Vue, or plain HTML
- you prefer a tiny library over a full framework like React or Lit
When to avoid
- you are building a full React application with its ecosystem
- you need class-based web components or Lit's full feature set
- your team has no familiarity with the hooks mental model
Facets
library · maturity active
frontend-framework ui-components state-management web-development frontend developer-tools browser web-components react-hooks lit-html hyperhtml custom-elements shadow-dom web-server nodejs
2 sources
- readme: https://github.com/matthewp/haunted · fetched 2026-08-28 · 9f954bcbece3
- registry_npm: https://registry.npmjs.org/haunted · fetched 2026-08-29 · 814a96c0d6f4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| matthewp/haunted | main | 79 |
For agents
markdown · JSON · MCP: product_card(name="matthewp/haunted")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem