Softwr

Web Development · head to head

Nhost vs Preact

Nhost logo

Nhost

Web Development

Postgres backend with GraphQL, authentication, storage and functions, from $25 a month

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

  • Nhost is a hosted backend platform.
  • Preact is free; Nhost starts at $25/mo.
  • Only Nhost lists postgres database; only Preact lists 3kB runtime.
  • Where Nhost falls short: the API layer is Hasura GraphQL, so teams who want a REST-first or other access pattern are working against the platform's default.
  • 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 Nhost and Preact differ?

Nhost and Preact differ on pricing model. Only the attributes on which Nhost and Preact actually diverge.

Attributes where Nhost and Preact differ
AttributeNhostPreact
Pricing modelPer month plus usageOpen source, no licence fee

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

Not yet recorded: category for Nhost.

Which features does each one have?

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

  • Postgres database
  • Hasura GraphQL
  • Authentication
  • Storage
  • Functions
  • AI toolkit
  • Nhost Run
  • Infrastructure as code

Only in Preact

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

What is each one used for?

Nhost is most often brought in for A startup that wants Postgres, auth and a GraphQL API without writing a backend; 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.

Nhost

  • A startup that wants Postgres, auth and a GraphQL API without writing a backendnot Preact
  • A React or Vue team using real-time GraphQL subscriptionsnot Preact
  • A developer who wants backend config in git through the CLInot Preact
  • An app that needs file storage and auth plus a few server functionsnot Preact

Preact

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

Where do Nhost and Preact fall short?

Preact's most cited limit: 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.

Nhost

  • The API layer is Hasura GraphQL, so teams who want a REST-first or other access pattern are working against the platform's default
  • Starter projects are paused after one week of inactivity, which makes the free tier unsuitable for anything that must stay available
  • Point-in-time recovery starts at $100 on top of the plan, so recovery beyond the 7 days of daily backups is an extra cost
  • Compute, custom domains ($10 per project per month), egress and storage overage are metered, so the plan fee understates the running bill for a busy app
  • Team costs $599 a month, a large jump from Pro at $25, so growing teams that need the Team tier's limits face a steep step

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

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

Nhost

Free
  • StarterFree
    • 1 project and 1 workspace member
    • 1 GB database, 1 GB storage, 5 GB egress
    • 10 functions with 10 second execution time
  • Pro$25/mo
    • $15 in compute credits included
    • 10 GB database, 50 GB storage, 50 GB egress
    • 50 functions, 180 second execution time
  • Team$599/mo
    • $15 in compute credits included
    • Everything in Pro, with 600 second function execution time
  • EnterpriseOn request
    • Custom pricing
    • Dedicated clusters available as an add-on

Preact

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

Which should you pick?

Choose Nhost if

  • You need postgres database.
  • You want to start without paying.
  • You also want hasura graphql.

Choose Preact if

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

Questions people ask

Is Nhost or Preact better?
It depends on the job. Nhost fits a startup that wants Postgres, auth and a GraphQL API without writing a backend; Preact fits embedded widgets that load inside someone else’s page and must stay small. Nhost starts at Free and Preact at Free.
Which is cheaper, Nhost or Preact?
Nhost starts at Free and Preact at Free.
Does Nhost or Preact run on more platforms?
Both run on Web, so platform support will not decide this one for you.
Can I use Nhost for free?
Both have a free tier, so you can try either at no cost before committing.
What is Nhost best used for?
Nhost is most often used for a startup that wants postgres, auth and a graphql api without writing a backend, a react or vue team using real-time graphql subscriptions, a developer who wants backend config in git through the cli, an app that needs file storage and auth plus a few server functions. Of those, a startup that wants postgres, auth and a graphql api without writing a backend and a react or vue team using real-time graphql subscriptions are not what Preact is typically brought in for.
What can Nhost do that Preact cannot?
Nhost covers Postgres database, Hasura GraphQL, Authentication, Storage. Preact covers 3kB runtime, preact/compat, Same modern API, Fast rendering.

Answered from the vendors’ own pages

Nhost: How much does Nhost cost?

Starter is $0, Pro is $25 a month and Team is $599 a month, plus metered usage beyond included amounts. Enterprise is custom.

Preact: Is Preact free?

Yes, open source under the MIT licence.

Nhost: Does the free plan pause?

Yes. Starter projects are paused after one week of inactivity.

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.

Nhost: Are there user limits on auth?

No. The pricing page lists unlimited total users on every plan.

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.

Share

Related pages

Other head to heads