git404hub

what is preact fr?

josdejong/preact — explained in plain English

Analysis updated 2026-07-18 · repo last pushed 2016-08-04

JavaScriptAudience · developerComplexity · 2/5DormantSetup · moderate

tl;dr

A 3-kilobyte JavaScript library that builds interactive web UIs the same way React does, using a virtual DOM, but far smaller and faster to load.

vibe map

mindmap
  root((repo))
    What it does
      Builds UI components
      Virtual DOM diffing
      3KB library size
    Tech stack
      JavaScript
      JSX
      Preact
    Use cases
      Fast mobile websites
      Embedded widgets
      React-like development
    Audience
      Developers
      Performance-focused teams
    Notable features
      Linked State
      Routing add-on
      React compatibility layer

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Add interactivity to a mobile website without the overhead of a full framework.

VIBE 2

Build performance-sensitive embedded widgets that need to load instantly.

VIBE 3

Reuse existing React knowledge and patterns like state, props, and lifecycle methods.

VIBE 4

Server-render a universal app or add client-side routing using Preact's add-ons.

what's the stack?

JavaScriptJSXPreact

how it stacks up fr

josdejong/preact3rd-eden/ircb.ioa15n/a15n
LanguageJavaScriptJavaScriptJavaScript
Last pushed2016-08-042016-11-162019-04-07
MaintenanceDormantDormantDormant
Setup difficultymoderateeasyeasy
Complexity2/52/52/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 30min

Requires a build tool like Webpack or Babel since it only supports modern ES6 JSX syntax.

prompts (copy fr)

prompt 1
Show me how to build a ticking clock component in Preact like the one in this repo's examples.
prompt 2
Help me set up Webpack or Babel to bundle a Preact project from scratch.
prompt 3
Explain how Preact's virtual DOM updates only the changed parts of the page.
prompt 4
Walk me through using Linked State to simplify a form input bound to component state.
prompt 5
Compare switching an existing React component to Preact using the compatibility layer.

Frequently asked questions

what is preact fr?

A 3-kilobyte JavaScript library that builds interactive web UIs the same way React does, using a virtual DOM, but far smaller and faster to load.

What language is preact written in?

Mainly JavaScript. The stack also includes JavaScript, JSX, Preact.

Is preact actively maintained?

Dormant — no commits in 2+ years (last push 2016-08-04).

How hard is preact to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is preact for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.