# Preact: 7.3 out of 10

A strong pick. 6th of 10 in [UI frameworks](https://elestia.ai/opensource/ui-frameworks/index.md).

Preact is a 3 kB UI library with React's API, components, hooks and signals, and preact/compat for running many React packages. It is well maintained and Preact 11 shipped in autumn 2026. It is a strong pick when bundle size matters most, but React itself is the safer default for most full apps.

**Best for:** Teams that want React-style components in a very small bundle, such as embedded widgets, landing pages, Deno Fresh sites or Astro islands.

## Scores

- **Overall: 7.3** (likely 6.3 to 8.3)
  - Claude Opus 5.5 (6.5): Preact is an excellent small React-compatible runtime, it is actively maintained, and v11 is now stable. For most new full apps, React, Vue or Svelte offer bigger ecosystems, framework support and features such as RSC and concurrent rendering. It is clearly the best choice when size is the main constraint, or for Fresh and island-based sites.
  - GPT-6.2 Sol (8.0): Preact is a strong pick for new projects that want React-style development and ship very little browser JavaScript. Active maintenance, a small core, and established framework integrations make it a sound choice for widgets, islands, and standalone apps with a size budget. React is the stronger default when the project depends on a large set of React component libraries or current React APIs. The range reflects how much those dependencies can change the fit.
- **Needed by many: 6.9** (likely 5.8 to 7.9)
  - Claude Opus 5.5 (7.0): Almost every web app needs a UI framework, so the category is broad. Preact's own angle, a small React-compatible runtime, appeals most where bundle size counts. It is a general browser framework, not tied to one host framework.
  - GPT-6.2 Sol (6.7): Keeping browser UI in sync with data is a common job, and Preact handles both standalone apps and interactive parts of larger sites. Its small runtime is most valuable on pages with a tight JavaScript budget. Survey usage shows that Preact reaches a smaller audience than React, while the share of teams with tight size budgets is hard to measure.
- **Helps a lot: 7.6** (likely 6.5 to 8.5)
  - Claude Opus 5.5 (7.0): It is small, fast and correct, ships built-in types, and supports hooks, signals and a broad React compat layer. AI agents write correct code for it easily because the API mirrors React. It has no concurrent rendering, no RSC and a thinner native ecosystem, so React or Solid do some jobs better.
  - GPT-6.2 Sol (8.1): Preact 11.2 pairs a small runtime with typed JSX, documented hooks, component stacks for debugging, and improved hydration. Familiar JSX and hooks give coding agents a good starting point, although React-style event handlers and newer APIs still need checking. Preact with Signals shipped less code than React in the PraxisJS table benchmark, while Solid and Svelte ran the operations faster overall. Performance and compatibility depend on the app and its component libraries.
- **Holds up over time: 7.6** (likely 6.6 to 8.6)
  - Claude Opus 5.5 (7.0): The project is active, with 510 commits and 27 releases in the last year. Preact 11 went stable in autumn 2026 with an upgrade guide, and issue and PR backlogs are very small. A few core maintainers carry most of the work on modest funding, which keeps the score below that of the corporate-backed peers.
  - GPT-6.2 Sol (8.2): Preact had 510 commits and 27 GitHub releases in the past year, and Open Collective records paid maintenance. An October user report about loading the browser server-rendering entry point drew a next-day response and a fix in 11.0.2. Recent release activity is concentrated in one maintainer, and the move to ESM in version 11 created real upgrade work for older toolchains.
- **Used widely: 6.3** (likely 5.2 to 7.4)
  - Claude Opus 5.5 (6.0): Downloads rose from 35.9M to 230.6M per 4 weeks. That ratio of 6.4 is above the 4.1 median, but much of it is transitive installs by tools and SDKs that bundle Preact. The 79k dependent repos are more than Svelte's but far fewer than React's, Vue's or Angular's. Direct choices are probably in the tens of thousands of projects.
  - GPT-6.2 Sol (6.6): Four-week npm downloads rose from 35.9 million to 230.6 million, a 6.4× increase against the catalog's 4.1× median. Automated builds and indirect installs inflate that signal, and npm's version breakdown shows far more downloads for 10.29.8 alone than for the entire stable 11.x line. The roughly 79,000 indexed dependent repositories put Preact ahead of Svelte and Lit on this measure and well behind React, Vue, and Angular. Rising survey interest supports the growth signal, although the number of new projects choosing Preact remains uncertain.
- **Vouched for: 7.0** (likely 5.5 to 8.0)
  - Claude Opus 5.5 (6.0): Frameworks build on it: Deno Fresh is built on Preact, and Astro and Vite ship official Preact integrations. Several large sites are known to have used it in production. Current independent write-ups are mostly generic comparisons, and survey data on Preact is thin.
  - GPT-6.2 Sol (8.0): Shopify recommends Preact for checkout extensions, Adyen ships it in its checkout SDK, and Fresh and Astro support it for interactive islands. State of JavaScript 2025 reports about 81% satisfaction among Preact users. Shopify and Adyen's cited setups are on version 10, so their experience gives less certainty about the latest major release.
- **Safe: 7.5** (likely 6.4 to 8.5)
  - Claude Opus 5.5 (7.0): It has zero dependencies and an MIT licence. Only two advisories exist, and the 2026 one was fixed with backports to the 10.26, 10.27 and 10.28 lines. The Scorecard is 5.8, with weak token permissions, no security policy, unsigned releases and no SAST.
  - GPT-6.2 Sol (7.9): Preact has an MIT licence, zero required runtime dependencies, and a documented trusted publishing process with staged releases and two-factor approval. The January 2026 injection advisory had fixes across three 10.x lines by disclosure, and the two listed advisories affect older releases. The 5.8 Scorecard flags weak workflow token permissions and gives zero marks for a security policy and fuzzing. npm lists six collaborator accounts, while the number that can approve a staged release is unclear.

## Good

- The core is about 3 kB with zero dependencies. In one independent test, a compat bundle was 7 kB gzipped against 66 kB for React 19.
- It uses the same JSX and hooks API as React, so developers and AI agents can reuse their React knowledge and many React libraries through preact/compat.
- Development is active: Preact 11 brought new hydration, default ref forwarding, an ESM-first package and better tree-shaking.
- Signals offer fine-grained reactivity in a first-party package.

## Bad

- It has no concurrent rendering and no React Server Components, and React-only frameworks such as Next.js do not run on it.
- preact/compat is not a guarantee: libraries that read React internals, or that need the newest React 19 APIs, can break.
- A small core team does most of the work, and the funding is modest compared with React, Vue or Angular.
- A 2025 regression reopened JSON VNode injection (a high-severity advisory, CVE-2026-22028), and the OpenSSF Scorecard is only 5.8.

## The numbers

- Downloads, 4 weeks: 231M
- In a year: ×6.4
- GitHub stars: 39k
- Commits, 12 months: 510
- Last npm release: Nov 2026
- Advisories, 24 months: 1
- Licence: MIT
- GitHub: https://github.com/preactjs/preact
- npm: https://www.npmjs.com/package/preact

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
