Softwr

Web Development · head to head

Preact vs VictoriaMetrics

Preact logo

Preact

Web Development

3kB alternative to React with the same modern API

From
Free
Rated
-
VictoriaMetrics logo

VictoriaMetrics

Cloud

Fast, cost-effective time series database for metrics

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; VictoriaMetrics promQL compatibility is very close but not identical, and MetricsQL extensions do not port back
  • They diverge on capability: Preact covers 3kB runtime, VictoriaMetrics covers PromQL compatible.
  • Prices and features above were last checked on 29 August 2026.

Where they differ

Only the attributes on which Preact and VictoriaMetrics actually diverge.

Attributes where Preact and VictoriaMetrics differ
AttributePreactVictoriaMetrics
PlatformsWebLinux, Docker, Kubernetes, Self-hosted
CategoryWeb DevelopmentCloud

Identical on both: starting price (Free), pricing model (Open source, no licence fee), 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 VictoriaMetrics

  • PromQL compatible
  • Low resource use
  • Single binary or cluster
  • Remote write target

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

VictoriaMetrics

  • Keeping months or years of Prometheus metrics without the memory costnot Preact
  • High-cardinality metrics where Prometheus strugglesnot Preact
  • Consolidating metrics from many Prometheus instances into one queryable storenot 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

VictoriaMetrics

  • PromQL compatibility is very close but not identical, and MetricsQL extensions do not port back
  • Smaller community than Prometheus, so fewer guides and third-party integrations
  • The clustered version has meaningfully more moving parts than the single binary suggests
  • Some enterprise features sit outside the open-source offering

Pricing, plan by plan

Preact

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

VictoriaMetrics

Free
  • VictoriaMetricsFree
    • Full functionality
    • No data limits
    • Community support

Which should you pick?

Choose Preact if

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

Choose VictoriaMetrics if

  • You need promql compatible.
  • You want to start without paying.
  • You work on Linux, Docker, Kubernetes, Self-hosted.
  • You also want low resource use.

Questions people ask

Is Preact or VictoriaMetrics better?
Neither clearly leads. Preact starts at Free and VictoriaMetrics at Free, and user ratings are close enough to be indistinguishable. Choose on capability and platform support.
Which is cheaper, Preact or VictoriaMetrics?
Preact starts at Free and VictoriaMetrics at Free.
Does Preact or VictoriaMetrics run on more platforms?
Preact runs on Web. VictoriaMetrics runs on Linux, Docker, Kubernetes, 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 VictoriaMetrics is typically brought in for.
What can Preact do that VictoriaMetrics cannot?
Preact covers 3kB runtime, preact/compat, Same modern API, Fast rendering. VictoriaMetrics covers PromQL compatible, Low resource use, Single binary or cluster, Remote write target.

Answered from the vendors’ own pages

Preact: Is Preact free?

Yes, open source under the MIT licence.

VictoriaMetrics: Is VictoriaMetrics free?

The open-source version is free with no data limits. An enterprise edition and cloud service are paid.

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.

VictoriaMetrics: Does it replace Prometheus?

It can, but most teams keep Prometheus for scraping and use VictoriaMetrics as the long-term store behind it.

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.

VictoriaMetrics: Is PromQL fully supported?

Very nearly. It implements PromQL and extends it with MetricsQL, though a small number of edge-case behaviours differ.

Share

Related pages

Other head to heads