Softwr

Documentation · head to head

MediaWiki vs Preact

MediaWiki logo

MediaWiki

Documentation

Free open source wiki software that powers Wikipedia

From
Free
Free plan
Yes
Preact logo

Preact

Web Development

3kB alternative to React with the same modern API

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only MediaWiki lists wiki page editing with history; only Preact lists 3kB runtime.
  • Where MediaWiki falls short: needs your own server, PHP and a database, plus ongoing upgrades.
  • 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.

How do MediaWiki and Preact differ?

MediaWiki and Preact differ on pricing model and category (Documentation against Web Development). Only the attributes on which MediaWiki and Preact actually diverge.

Attributes where MediaWiki and Preact differ
AttributeMediaWikiPreact
Pricing modelOpen-sourceOpen source, no licence fee
CategoryDocumentationWeb Development

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

Which features does each one have?

They share no listed features; 7 appear only for MediaWiki and 4 only for Preact. 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 MediaWiki

  • Wiki page editing with history
  • Multilingual interface
  • Runs on PHP with MySQL, PostgreSQL or SQLite
  • Extension ecosystem
  • Powers Wikipedia
  • Self-hosted or third-party hosting
  • Free of charge

Only in Preact

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

What is each one used for?

MediaWiki is most often brought in for internal company wiki; Preact for embedded widgets that load inside someone else’s page and must stay small. The jobs each tool is most often brought in to do.

MediaWiki

  • Internal company wikinot Preact
  • Public knowledge bases and community documentationnot Preact
  • Technical documentation with revision historynot Preact
  • Large multilingual reference sitesnot Preact

Preact

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

Where do MediaWiki and Preact fall short?

MediaWiki's most cited limit: needs your own server, PHP and a database, plus ongoing upgrades. Preact's: behavioural differences from React exist in edge cases, particularly around event handling. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

MediaWiki

  • Needs your own server, PHP and a database, plus ongoing upgrades
  • Editing uses wikitext, which new contributors must learn
  • Extra features come from extensions that need separate maintenance
  • No vendor support contract; help comes from the community

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

How much do MediaWiki and Preact cost?

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

MediaWiki

Free

No published plan breakdown. See the MediaWiki review.

Preact

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

Which should you pick?

Choose MediaWiki if

  • You need wiki page editing with history.
  • You want to start without paying.
  • You also want multilingual interface.

Choose Preact if

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

Questions people ask

Is MediaWiki or Preact better?
It depends on the job. MediaWiki fits internal company wiki; Preact fits embedded widgets that load inside someone else’s page and must stay small. MediaWiki starts at Free and Preact at Free.
Which is cheaper, MediaWiki or Preact?
MediaWiki starts at Free and Preact at Free.
Does MediaWiki or Preact run on more platforms?
Both run on Web, so platform support will not decide this one for you.
Can I use MediaWiki for free?
Both have a free tier, so you can try either at no cost before committing.
What is MediaWiki best used for?
MediaWiki is most often used for internal company wiki, public knowledge bases and community documentation, technical documentation with revision history, large multilingual reference sites. Of those, internal company wiki and public knowledge bases and community documentation are not what Preact is typically brought in for.
What can MediaWiki do that Preact cannot?
MediaWiki covers Wiki page editing with history, Multilingual interface, Runs on PHP with MySQL, PostgreSQL or SQLite, Extension ecosystem. Preact covers 3kB runtime, preact/compat, Same modern API, Fast rendering.

Answered from the vendors’ own pages

MediaWiki: Is MediaWiki free?

Yes. It is free of charge and open source.

Source
Preact: Is Preact free?

Yes, open source under the MIT licence.

MediaWiki: What does MediaWiki need to run?

A server with PHP and a SQL database such as MySQL, MariaDB, PostgreSQL or SQLite.

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.

MediaWiki: What licence does MediaWiki use?

The GNU General Public License version 2 or later.

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.

Share

Related pages

Other head to heads