Softwr

Web Development · head to head

Preact vs vLLM

Preact logo

Preact

Web Development

3kB alternative to React with the same modern API

From
Free
Free plan
Yes
vLLM logo

vLLM

Machine Learning

Open-source inference and serving engine for large language models with PagedAttention

From
Free
Free plan
Yes

The short version

  • vLLM is an open-source LLM inference and serving engine.
  • Both are free.
  • Only Preact lists 3kB runtime; only vLLM lists PagedAttention memory management.
  • 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 vLLM falls short: self-hosted only, so you run GPUs, scaling and monitoring.

How do Preact and vLLM differ?

Preact and vLLM differ on pricing model and category (Web Development against Machine Learning). Only the attributes on which Preact and vLLM actually diverge.

Attributes where Preact and vLLM differ
AttributePreactvLLM
Pricing modelOpen source, no licence feeOpen-source
CategoryWeb DevelopmentMachine Learning

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

Which features does each one have?

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

  • PagedAttention memory management
  • Continuous batching
  • OpenAI-compatible API server
  • Quantisation including FP8, AWQ and GPTQ
  • Speculative decoding
  • Tensor and pipeline parallelism
  • Multi-LoRA serving
  • Structured outputs and tool calling

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; vLLM for serving open-weight models behind an OpenAI-style API. 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 vLLM
  • Marketing and content sites where JavaScript payload affects Core Web Vitalsnot vLLM
  • Applications targeting low-bandwidth or low-powered devicesnot vLLM

vLLM

  • Serving open-weight models behind an OpenAI-style APInot Preact
  • High-throughput batch inferencenot Preact
  • Multi-GPU model servingnot Preact
  • Running models with quantisation to cut GPU costnot Preact

Where do Preact and vLLM fall short?

Preact's most cited limit: behavioural differences from React exist in edge cases, particularly around event handling. vLLM's: self-hosted only, so you run GPUs, scaling and monitoring. 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

vLLM

  • Self-hosted only, so you run GPUs, scaling and monitoring
  • Fast-moving project with frequent changes between versions
  • Hardware support differs between GPU, CPU and plugin backends
  • No managed hosting or commercial support plan from the project

How much do Preact and vLLM cost?

Preact is free to use; vLLM 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

vLLM

Free

No published plan breakdown. See the vLLM review.

Which should you pick?

Choose Preact if

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

Choose vLLM if

  • You need pagedattention memory management.
  • You want to start without paying.
  • You also want continuous batching.

Questions people ask

Is Preact or vLLM better?
It depends on the job. Preact fits embedded widgets that load inside someone else’s page and must stay small; vLLM fits serving open-weight models behind an OpenAI-style API. Preact starts at Free and vLLM at Free.
Which is cheaper, Preact or vLLM?
Preact starts at Free and vLLM at Free.
Does Preact or vLLM run on more platforms?
Both run on Web, so platform support will not decide this one for you.
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 vLLM is typically brought in for.
What can Preact do that vLLM cannot?
Preact covers 3kB runtime, preact/compat, Same modern API, Fast rendering. vLLM covers PagedAttention memory management, Continuous batching, OpenAI-compatible API server, Quantisation including FP8, AWQ and GPTQ.

Answered from the vendors’ own pages

Preact: Is Preact free?

Yes, open source under the MIT licence.

vLLM: Where did vLLM come from?

vLLM was originally developed in the Sky Computing Lab at UC Berkeley and is now maintained by a community of contributors.

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.

vLLM: Does vLLM offer an OpenAI-compatible API?

Yes, it includes an OpenAI-compatible API server and also supports the Anthropic Messages API and gRPC.

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.

vLLM: What hardware does vLLM run on?

NVIDIA, AMD and Intel GPUs and x86, ARM and PowerPC CPUs, with plugins for hardware such as Google TPUs and Intel Gaudi.

Source
Share

Related pages

Other head to heads