Web Development · head to head
Preact vs Valkey

Preact
Web Development
3kB alternative to React with the same modern API
- From
- Free
- Free plan
- Yes

Valkey
Databases
Open-source in-memory data store forked from Redis
- From
- Free
- Free plan
- Yes
The short version
- Both are free.
- Only Preact lists 3kB runtime; only Valkey lists BSD licensed.
- 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 Valkey falls short: younger project, so its track record is short even though the codebase is not.
How do Preact and Valkey differ?
Preact and Valkey differ on pricing model, platforms and category (Web Development against Databases). Only the attributes on which Preact and Valkey actually diverge.
Identical on both: starting price (Free), free tier (Yes).
Not yet recorded: founded for Preact.
Which features does each one have?
They share no listed features; 4 appear only for Preact and 4 only for Valkey. 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 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; Valkey for migrating from Redis without rewriting application code. 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 do Preact and Valkey fall short?
Preact's most cited limit: behavioural differences from React exist in edge cases, particularly around event handling. Valkey's: younger project, so its track record is short even though the codebase is not. 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
How much do Preact and Valkey cost?
Preact is free to use; Valkey 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
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, Self-hosted.
- You also want bsd licensed.
Questions people ask
- Is Preact or Valkey better?
- It depends on the job. Preact fits embedded widgets that load inside someone else’s page and must stay small; Valkey fits continuing on a permissively licensed in-memory store after the Redis licence change. Preact starts at Free and Valkey at Free.
- 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, 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.
Related pages
Other head to heads
- Preact vs SolidJS
- Preact vs Vue.js
- Preact vs React
- Preact vs Qwik
- Preact vs Lit
- Preact vs Svelte
- Preact vs Alpine.js
- Preact vs Stencil
- Preact vs jQuery
- Preact vs MUI
- Preact vs Angular
- Preact vs Bootstrap
- Preact vs Babel
- Preact vs Cloudflare Pages
- Preact vs Eleventy
- Preact vs HeroUI
- Preact vs Memberstack
- Preact vs PHP
- Preact vs Memcached
- Preact vs Amazon ElastiCache
- Preact vs Dragonfly
- Preact vs Redis
- Preact vs Readyset
- Preact vs etcd
- Preact vs VictoriaMetrics
- Preact vs Aiven
- Preact vs Redpanda
- Preact vs MariaDB
- Preact vs Timeplus
- Preact vs SAP HANA
- Preact vs Estuary
- Preact vs Firebase Realtime Database
- Preact vs Immuta
- Preact vs InfluxDB
- Preact vs Knack
- Preact vs MySQL
- Valkey vs SolidJS
- Valkey vs Vue.js
- Valkey vs React
- Valkey vs Qwik
- Valkey vs Lit
- Valkey vs Svelte
- Valkey vs Alpine.js
- Valkey vs Stencil
- Valkey vs jQuery
- Valkey vs MUI
- Valkey vs Angular
- Valkey vs Bootstrap
- Valkey vs Babel
- Valkey vs Cloudflare Pages
- Valkey vs Eleventy
- Valkey vs HeroUI
- Valkey vs Memberstack
- Valkey vs PHP
- Valkey vs Memcached
- Valkey vs Amazon ElastiCache
- Valkey vs Dragonfly
- Valkey vs Redis
- Valkey vs Readyset
- Valkey vs etcd
- Valkey vs VictoriaMetrics
- Valkey vs Aiven
- Valkey vs Redpanda
- Valkey vs MariaDB
- Valkey vs Timeplus
- Valkey vs SAP HANA
- Valkey vs Estuary
- Valkey vs Firebase Realtime Database
- Valkey vs Immuta
- Valkey vs InfluxDB
- Valkey vs Knack
- Valkey vs MySQL
