Softwr

Web Development · head to head

Preact vs Valkey

Preact logo

Preact

Web Development

3kB alternative to React with the same modern API

From
Free
Rated
-
Valkey logo

Valkey

Databases

Open-source in-memory data store forked from Redis

From
Free
Rated
-

The short version

  • Each has a real cost: Preact compatibility through preact/compat is good but not total, and some React libraries break in ways that are hard to diagnose; Valkey younger project, so its track record is short even though the codebase is not
  • They diverge on capability: Preact covers 3kB runtime, Valkey covers Redis-compatible.
  • Prices and features above were last checked on 29 August 2026.

Where they differ

Only the attributes on which Preact and Valkey actually diverge.

Attributes where Preact and Valkey differ
AttributePreactValkey
Pricing modelOpen source, no licence feeOpen source, no licence fee; managed cloud billed separately
PlatformsWebLinux, macOS, Docker, Self-hosted
CategoryWeb DevelopmentDatabases

Identical on both: starting price (Free), free tier (Yes), user rating (Not yet rated).

What each one covers

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 Valkey

  • Redis-compatible
  • BSD licensed
  • Rich data structures
  • Replication and persistence

What people use each for

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 Valkey
  • Marketing and content sites where JavaScript payload affects Core Web Vitalsnot Valkey
  • Applications targeting low-bandwidth or low-powered devicesnot Valkey

Valkey

  • Continuing on a permissively licensed in-memory store after the Redis licence changenot Preact
  • Caching and session storage where a foundation-governed project is a procurement requirementnot Preact
  • Migrating from Redis without rewriting application codenot Preact

Where each one falls short

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

Valkey

  • Younger project, so its track record is short even though the codebase is not
  • Divergence from Redis grows over time, so compatibility is strongest near the fork point and weakens as both evolve
  • Ecosystem tooling and documentation still frequently assume Redis, leaving translation work

Pricing, plan by plan

Preact

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

Valkey

Free
  • ValkeyFree
    • Full functionality
    • Self-hosted
    • No usage limits

Which should you pick?

Choose Preact if

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

Choose Valkey if

  • You need redis-compatible.
  • You want to start without paying.
  • You work on Linux, macOS, Docker, Self-hosted.
  • You also want bsd licensed.

Questions people ask

Is Preact or Valkey better?
Neither clearly leads. Preact starts at Free and Valkey at Free, and user ratings are close enough to be indistinguishable. Choose on capability and platform support.
Which is cheaper, Preact or Valkey?
Preact starts at Free and Valkey at Free.
Does Preact or Valkey run on more platforms?
Preact runs on Web. Valkey runs on Linux, macOS, Docker, Self-hosted.
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 Valkey is typically brought in for.
What can Preact do that Valkey cannot?
Preact covers 3kB runtime, preact/compat, Same modern API, Fast rendering. Valkey covers Redis-compatible, BSD licensed, Rich data structures, Replication and persistence.

Answered from the vendors’ own pages

Preact: Is Preact free?

Yes, open source under the MIT licence.

Valkey: Is Valkey free?

Yes, BSD-licensed open source under the Linux Foundation.

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.

Valkey: Why does Valkey exist?

Redis changed its licence away from BSD in 2024. Valkey is the community fork continuing under permissive terms, backed by AWS, Google Cloud and Oracle among others.

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.

Valkey: Can I switch from Redis to Valkey?

At the fork point it is drop-in compatible with existing clients and data. The further both projects move from that point, the more you should verify the specific features you use.

Share

Related pages

Other head to heads