preact

Fast, 3kB React-compatible Virtual DOM library with the same modern component API.

Framework
npm
v11.0.2
38,949 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
95 /100 Excellent
Development Activity 100
Maintenance 96
Community 84
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
86 /100 Excellent
Architecture 88
Code Quality 90
Innovation 85
Learning Curve 82

Preact is a fast, lightweight alternative to React that implements the same modern component API — ES6 classes, hooks, and functional components — in roughly 3-4kB gzipped. It provides a highly optimized Virtual DOM diffing algorithm, seamless server-side-render hydration, and a pluggable asynchronous rendering scheduler.

Through the preact/compat alias, Preact offers extensive drop-in compatibility with the React ecosystem, letting most React libraries and components run unmodified on top of Preact’s smaller runtime. It also ships companion packages for debugging (preact/debug), DevTools integration, and hooks, and supports all modern browsers.

What You Get

  • A ~3-4kB Virtual DOM library implementing the same component model as React (classes, hooks, function components)
  • preact/compat, a compatibility layer that lets most React libraries run unmodified on top of Preact
  • First-class hooks support (useState, useEffect, useMemo, etc.) via the built-in preact/hooks package
  • Server-side rendering support with efficient client-side hydration
  • preact/debug for development-time warnings and preact/devtools for browser DevTools integration
  • A pluggable, transparent asynchronous rendering scheduler

Common Use Cases

  • Migrating a React app to a smaller runtime to reduce bundle size and improve load performance
  • Building performance-sensitive, low-bandwidth web apps (PWAs, widgets, embeds) that need a minimal footprint
  • Using existing React component libraries in a Preact app via the preact/compat alias
  • Server-rendering a component tree and hydrating it efficiently on the client

Under The Hood

Architecture - Preact’s core (src/) implements a Virtual DOM diffing engine with dedicated modules for diff, create-element, and component lifecycle handling; compat/ layers a React-API-compatible shim on top of the core renderer, hooks/ implements the hooks runtime independently pluggable into the core, and debug//devtools/ provide opt-in development tooling without bloating the production bundle. Tech Stack - Written in plain JavaScript (with TypeScript type definitions under types/), bundled to ESM (dist/preact.mjs) via Preact’s own build scripts, with jsx-runtime/ providing the automatic JSX transform entry point; monorepo packages (core, compat, hooks, debug, devtools) are versioned and published together. Code Quality - The test/ directory (8 top-level suites, each covering deep sub-scenarios) exercises rendering, hydration, hooks, and compat behavior across browsers via Karma/Vitest, with coverage tracked on Coveralls; a benchmarks/ suite tracks rendering performance regressions, and mangle.json configures aggressive minification tested against a strict size budget enforced in CI. API Design - Preact deliberately mirrors React’s public API (createElement, Component, hooks) so existing React knowledge transfers directly, while preact/compat absorbs most remaining differences (e.g. synthetic event names, forwardRef) transparently, making the migration path from React close to a one-line import swap for many projects.

Used by 19 apps in this directory

TypeScript
63%
MIT

Ghost

Blogging · CMS

55,598

Open source headless Node.js CMS for professional publishing, paid memberships, and newsletters with a fully owned audience.

View details
96
Repo Health
85
Technical
64
Dependency
Built with
TypeScript 63%
JavaScript 35%
Updated 6 days ago
Go
69%
Other

Hanko

Authentication · Security

9,045

Open source, self-hostable authentication platform with passkeys, SAML SSO, and OAuth — the privacy-first alternative to Auth0 and Clerk.

View details
90
Repo Health
81
Technical
66
Dependency
Built with
Go 69%
TypeScript 27%
Updated 6 days ago
TypeScript
82%
MIT

Hippo

AI Agents · AI Memory

784

A biologically-inspired memory layer for AI coding agents — memories decay by default and strengthen through use, modeled on the hippocampus, with zero runtime dependencies and a SQLite backbone.

View details
77
Repo Health
71
Technical
78
Dependency
Built with
TypeScript 82%
JavaScript 12%
Updated 5 days ago
Go
69%
Apache 2.0

open-code-review

Developer Tools · Devops

48,167

The AI code review agent born at Alibaba's scale — combining deterministic engineering with LLM intelligence for precise, token-efficient reviews.

View details
82
Repo Health
83
Technical
73
Dependency
Built with
Go 69%
JavaScript 12%
Updated 1 weeks ago
TypeScript
90%
MIT

Plasmic

CMS · Design Tools · Low Code Platforms

7,125

The open-source visual builder that lets teams design React apps and websites with drag-and-drop while integrating seamlessly with your codebase.

View details
81
Repo Health
78
Technical
64
Dependency
Built with
TypeScript 90%
Updated 6 days ago
TypeScript
97%
Other

Rocket.Chat

Team Chat

46,304

The secure, self-hosted team communications platform for organizations that cannot compromise on data sovereignty.

View details
96
Repo Health
79
Technical
63
Dependency
Built with
TypeScript 97%
Updated 5 days ago
Python
68%
AGPL 3.0

Tracecat

AI Agents · Automation · Security

3,860

Open-source agentic security automation platform that runs AI agents and durable workflows at scale with sandboxed execution.

View details
89
Repo Health
88
Technical
66
Dependency
Built with
Python 68%
TypeScript 30%
Updated 5 days ago
TypeScript
84%
Other

twenty

CRM

59,615

The open-source CRM you build, ship, and version like the rest of your stack — with customizable objects, AI agents, and a TypeScript SDK.

View details
92
Repo Health
82
Technical
64
Dependency
Built with
TypeScript 84%
MDX 14%
Updated 6 days ago
TypeScript
50%
Other

World Monitor

Analytics · Monitoring

89,376

Real-time global intelligence dashboard that fuses AI-synthesized news, geopolitical risk scoring, and infrastructure tracking into one open-source situational awareness platform.

View details
87
Repo Health
89
Technical
68
Dependency
Built with
TypeScript 50%
JavaScript 48%
Updated 5 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers