Softwr

Web Development · head to head

Preact vs Publii

Preact logo

Preact

Web Development

3kB alternative to React with the same modern API

From
Free
Free plan
Yes
Publii logo

Publii

Website Builders

Free open-source desktop CMS for building static websites offline

From
Free
Free plan
Yes

The short version

  • Publii is a free, open-source desktop CMS for Windows, macOS and Linux.
  • Both are free.
  • Only Preact lists 3kB runtime; only Publii lists block, WYSIWYG and Markdown editors.
  • Where Preact falls short: compatibility through preact/compat is good but not total, and some React libraries break in ways that are hard to diagnose.
  • Where Publii falls short: no built-in hosting; you arrange and pay for your own.

How do Preact and Publii differ?

Preact and Publii differ on pricing model, platforms and category (Web Development against Website Builders). Only the attributes on which Preact and Publii actually diverge.

Attributes where Preact and Publii differ
AttributePreactPublii
Pricing modelOpen source, no licence feeOpen-source
PlatformsWebWindows, macOS, Linux
CategoryWeb DevelopmentWebsite Builders

Identical on both: starting price (Free), free tier (Yes).

Which features does each one have?

They share no listed features; 4 appear only for Preact and 9 only for Publii. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Preact

  • 3kB runtime
  • preact/compat
  • Same modern API
  • Fast rendering

Only in Publii

  • Block, WYSIWYG and Markdown editors
  • Offline editing
  • Multiple sites in one app
  • Static site generation
  • SEO tools and sitemaps
  • RSS and JSON feeds
  • WordPress content importer
  • Theme and plugin marketplace

What is each one used for?

Preact is most often brought in for embedded widgets that load inside someone else’s page and must stay small; Publii for personal blogs and portfolios. The jobs each tool is most often brought in to do.

Preact

  • Embedded widgets that load inside someone else’s page and must stay smallnot Publii
  • Marketing and content sites where JavaScript payload affects Core Web Vitalsnot Publii
  • Applications targeting low-bandwidth or low-powered devicesnot Publii

Publii

  • Personal blogs and portfoliosnot Preact
  • Documentation and small business sitesnot Preact
  • Privacy-minded sites without trackersnot Preact
  • Migrating a WordPress blog to staticnot Preact
  • Free hosting on GitHub Pagesnot Preact

Where do Preact and Publii fall short?

Preact's most cited limit: behavioural differences from React exist in edge cases, particularly around event handling. Publii's: no built-in hosting; you arrange and pay for your own. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Preact

  • Compatibility through preact/compat is good but not total, and some React libraries break in ways that are hard to diagnose
  • Behavioural differences from React exist in edge cases, particularly around event handling
  • A much smaller community, so unusual problems have fewer existing answers than React

Publii

  • No built-in hosting; you arrange and pay for your own
  • Static output needs third-party services for dynamic features
  • Premium themes and plugins in the marketplace cost extra
  • Desktop app only, so content lives on one computer

How much do Preact and Publii cost?

Preact is free to use; Publii is free to use. Plan by plan below, from each vendor's own pricing page.

Preact

Free
  • PreactFree
    • Full library
    • Commercial use permitted
    • No usage limits

Publii

Free

No published plan breakdown. See the Publii review.

Which should you pick?

Choose Preact if

  • You need 3kb runtime.
  • You want to start without paying.
  • You also want preact/compat.

Choose Publii if

  • You need block, wysiwyg and markdown editors.
  • You want to start without paying.
  • You work on Windows, macOS, Linux.
  • You also want offline editing.

Questions people ask

Is Preact or Publii better?
It depends on the job. Preact fits embedded widgets that load inside someone else’s page and must stay small; Publii fits personal blogs and portfolios. Preact starts at Free and Publii at Free.
Which is cheaper, Preact or Publii?
Preact starts at Free and Publii at Free.
Does Preact or Publii run on more platforms?
Preact runs on Web. Publii runs on Windows, macOS, Linux.
Can I use Preact for free?
Both have a free tier, so you can try either at no cost before committing.
What is Preact best used for?
Preact is most often used for embedded widgets that load inside someone else’s page and must stay small, marketing and content sites where javascript payload affects core web vitals, applications targeting low-bandwidth or low-powered devices. Of those, embedded widgets that load inside someone else’s page and must stay small and marketing and content sites where javascript payload affects core web vitals are not what Publii is typically brought in for.
What can Preact do that Publii cannot?
Preact covers 3kB runtime, preact/compat, Same modern API, Fast rendering. Publii covers Block, WYSIWYG and Markdown editors, Offline editing, Multiple sites in one app, Static site generation.

Answered from the vendors’ own pages

Preact: Is Preact free?

Yes, open source under the MIT licence.

Publii: Is Publii free?

Yes, the page calls it a free, open-source desktop CMS with no per-site fee for the application.

Source
Preact: Can I use React libraries with Preact?

Most, through the preact/compat layer. Compatibility is good but not complete, so libraries relying on React internals can break.

Publii: Which systems does it support?

Windows, macOS and Linux.

Source
Preact: Why choose Preact over React?

Bundle size, almost always. If payload is not a binding constraint, React’s ecosystem is usually the better trade.

Publii: Where can I host a Publii site?

On third parties such as GitHub Pages, Netlify and Amazon S3, as Publii has no cloud service of its own.

Source
Share

Related pages

Other head to heads