Preact
⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM. observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 99
- Release rhythm 95
- 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: 13
- age_days: 4009
- days_rel: 32
- days_push: 7
- n_releases_24m: 38
Adoption not part of the score
38834 stars · 2046 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Preact is a fast, ~3-4kB JavaScript library offering a React-compatible API with components, hooks, JSX, and a highly optimized Virtual DOM. It includes an ecosystem with preact/compat for React compatibility, preact-cli for PWA scaffolding, and preact-router, and supports SSR and hydration.
Use cases
- build a lightweight single-page app without React's bundle size
- embed interactive UI widgets into an existing website
- migrate an existing React app to a smaller runtime via preact/compat
- scaffold a progressive web app quickly with preact-cli
- render components server-side with SSR and hydration
- write components with JSX or HTM without a build step
- add client-side routing to a Preact app
When to choose
- bundle size and load performance are critical
- you want React's API and ecosystem compatibility in a tiny footprint
- embedding components into widgets or pages with minimal overhead
- targeting modern browsers without heavy tooling
When to avoid
- you rely on React features Preact omits, like PropTypes, synthetic events, or certain concurrent behaviors
- your project depends on React libraries that require full React internals
- you need long-term legacy browser support like IE11 (use Preact 10.x instead)
Facets
library · maturity stable
frontend-framework ssr routing ui-components web-development frontend browser cross-platform react-alternative virtual-dom jsx hooks lightweight pwa preact-cli preact-router nodejs web-server
10 sources
- readme: https://github.com/preactjs/preact · fetched 2026-08-28 · d78a5ec87131
- homepage: https://preactjs.com · fetched 2026-08-29 · d12bde92a971
- site_page: https://preactjs.com/about/demos-examples · fetched 2026-08-29 · 2d1aa7e40993
- site_page: https://preactjs.com/about/project-goals · fetched 2026-08-29 · 41c2e63f3f20
- site_page: https://preactjs.com/guide/v10/getting-started · fetched 2026-08-29 · 1baad012dd68
- site_page: https://preactjs.com/about/we-are-using · fetched 2026-08-29 · e8598d9fe64a
- site_page: https://preactjs.com/about/libraries-addons · fetched 2026-08-29 · d273d297244e
- site_page: https://preactjs.com/about/browser-support · fetched 2026-08-29 · 2e2a90dfd4a8
- site_page: https://preactjs.com/guide/v11/getting-started · fetched 2026-08-29 · c13a4850b10f
- registry_npm: https://registry.npmjs.org/preact-cli · fetched 2026-08-29 · 4238313d4c3c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| preactjs/preact | main | 98 |
| preactjs/preact-cli | plugin | 23 |
| preactjs/preact-router | plugin | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem