Softwr

Networking · head to head

Cloudflare vs Preact

Cloudflare logo

Cloudflare

Networking

The web performance and security company

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

  • Preact is free; Cloudflare starts at $20/mo.
  • Only Cloudflare lists global CDN; only Preact lists 3kB runtime.
  • Where Cloudflare falls short: free tier limited to basic features (no advanced analytics or premium features).
  • 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 Cloudflare and Preact differ?

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

Attributes where Cloudflare and Preact differ
AttributeCloudflarePreact
Pricing modelFreemiumOpen source, no licence fee
CategoryNetworkingWeb Development

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

Not yet recorded: founded for Preact.

Which features does each one have?

They share no listed features; 20 appear only for Cloudflare 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 Cloudflare

  • Global CDN
  • DDoS Protection
  • WAF
  • DNS
  • SSL/TLS
  • Load Balancing
  • Bot Management
  • Workers (Serverless)

Only in Preact

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

What is each one used for?

Cloudflare is most often brought in for global content delivery network (CDN) with 330+ data centres worldwide; 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.

Cloudflare

  • Global content delivery network (CDN) with 330+ data centres worldwidenot Preact
  • DDoS protection and bot blockingnot Preact
  • Web application security and rate limitingnot Preact
  • DNS management and domain protectionnot Preact
  • Static and dynamic content cachingnot Preact
  • Serverless computing via Cloudflare Workersnot Preact
  • Database and storage services (D1, R2)not Preact
  • Performance optimisation for Core Web Vitalsnot Preact

Preact

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

Where do Cloudflare and Preact fall short?

Cloudflare's most cited limit: free tier limited to basic features (no advanced analytics or premium features). 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.

Cloudflare

  • Free tier limited to basic features (no advanced analytics or premium features)
  • Pro tier ($20-25/month) caps at professional websites (higher tiers needed for enterprise scale)
  • Caches only anonymous API GET responses (authenticated requests and non-GET methods not cached)
  • Geographic coverage limited to announced 330+ cities (may not cover all regions globally)

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 Cloudflare and Preact cost?

Cloudflare has a free plan, with paid plans from $20/mo; Preact is free to use. Plan by plan below, from each vendor's own pricing page.

Cloudflare

Free
  • FreeFree
  • Pro (billed annually)$20/mo
  • Business (billed annually)$200/mo
  • EnterpriseOn request

Preact

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

Which should you pick?

Choose Cloudflare if

  • You need global cdn.
  • You want to start without paying.
  • You also want ddos protection.

Choose Preact if

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

Questions people ask

Is Cloudflare or Preact better?
It depends on the job. Cloudflare fits global content delivery network (CDN) with 330+ data centres worldwide; Preact fits embedded widgets that load inside someone else’s page and must stay small. Cloudflare starts at Free and Preact at Free.
Which is cheaper, Cloudflare or Preact?
Cloudflare starts at Free and Preact at Free.
Does Cloudflare or Preact run on more platforms?
Both run on Web, so platform support will not decide this one for you.
Can I use Cloudflare for free?
Both have a free tier, so you can try either at no cost before committing.
What is Cloudflare best used for?
Cloudflare is most often used for global content delivery network (cdn) with 330+ data centres worldwide, ddos protection and bot blocking, web application security and rate limiting, dns management and domain protection. Of those, global content delivery network (cdn) with 330+ data centres worldwide and ddos protection and bot blocking are not what Preact is typically brought in for.
What can Cloudflare do that Preact cannot?
Cloudflare covers Global CDN, DDoS Protection, WAF, DNS. Preact covers 3kB runtime, preact/compat, Same modern API, Fast rendering.

Answered from the vendors’ own pages

Cloudflare: Does Cloudflare have a free tier?

Yes, Cloudflare includes a free tier with generous allowances: 100k daily requests for Workers, 10 GB monthly storage for R2, and 1 GB for Workers KV.

Source
Preact: Is Preact free?

Yes, open source under the MIT licence.

Cloudflare: How much does Cloudflare cost beyond the free tier?

Cloudflare uses pay-as-you-go pricing beyond free allocations, charging per million requests, per GB-month of storage, or per vCPU-second depending on the service.

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.

Cloudflare: Does Cloudflare charge egress fees?

No, Cloudflare explicitly states no egress fees and no hidden costs; you only pay for the usage metrics specific to each service.

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.

Cloudflare: What's the Enterprise pricing model for Cloudflare?

Cloudflare Enterprise offers custom pricing and volume discounts available through direct sales for organizations with specialized needs and large-scale usage.

Source
Share

Related pages

Other head to heads