Softwr

Testing · head to head

Nhost vs Vitest

Nhost logo

Nhost

Testing

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

From
Free
Free plan
Yes
Vitest logo

Vitest

Testing

Fast unit test framework powered by Vite

From
Free
Free plan
Yes

The short version

  • Nhost is a hosted backend platform.
  • Vitest is free; Nhost starts at $25/mo.
  • Only Nhost lists postgres database; only Vitest lists shares Vite config.
  • 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 Vitest falls short: assumes Vite: projects on webpack or other bundlers lose the main advantage.

How do Nhost and Vitest differ?

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

Attributes where Nhost and Vitest differ
AttributeNhostVitest
Pricing modelPer month plus usageOpen source, no licence fee
PlatformsWebLinux, macOS, Windows

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

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 Vitest. 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 Vitest

  • Shares Vite config
  • Jest-compatible API
  • Fast watch mode
  • ESM and TypeScript native

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; Vitest for migrating from Jest for faster watch-mode feedback. 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 Vitest
  • A React or Vue team using real-time GraphQL subscriptionsnot Vitest
  • A developer who wants backend config in git through the CLInot Vitest
  • An app that needs file storage and auth plus a few server functionsnot Vitest

Vitest

  • Unit testing an application already built with Vite, without a second build confignot Nhost
  • Migrating from Jest for faster watch-mode feedbacknot Nhost
  • Testing TypeScript and ESM code without transform configurationnot Nhost

Where do Nhost and Vitest fall short?

Vitest's most cited limit: assumes Vite: projects on webpack or other bundlers lose the main advantage. 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

Vitest

  • Assumes Vite: projects on webpack or other bundlers lose the main advantage
  • Younger than Jest, so some plugins and matchers in the Jest ecosystem have no equivalent
  • Jest compatibility is close but not exact, and unusual Jest configurations still need work to port

How much do Nhost and Vitest cost?

Nhost has a free plan, with paid plans from $25/mo; Vitest 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

Vitest

Free
  • VitestFree
    • Full functionality
    • Unlimited tests
    • Community support

Which should you pick?

Choose Nhost if

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

Choose Vitest if

  • You need shares vite config.
  • You want to start without paying.
  • You work on Linux, macOS, Windows.
  • You also want jest-compatible api.

Questions people ask

Is Nhost or Vitest better?
It depends on the job. Nhost fits a startup that wants Postgres, auth and a GraphQL API without writing a backend; Vitest fits unit testing an application already built with Vite, without a second build config. Nhost starts at Free and Vitest at Free.
Which is cheaper, Nhost or Vitest?
Nhost starts at Free and Vitest at Free.
Does Nhost or Vitest run on more platforms?
Nhost runs on Web. Vitest runs on Linux, macOS, Windows.
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 Vitest is typically brought in for.
What can Nhost do that Vitest cannot?
Nhost covers Postgres database, Hasura GraphQL, Authentication, Storage. Vitest covers Shares Vite config, Jest-compatible API, Fast watch mode, ESM and TypeScript native.

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.

Vitest: Is Vitest free?

Yes, open source under the MIT licence.

Nhost: Does the free plan pause?

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

Vitest: Is Vitest compatible with Jest?

The API is deliberately Jest-compatible and most migrations are mechanical, though unusual configurations and some ecosystem plugins need attention.

Nhost: Are there user limits on auth?

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

Vitest: Do I need Vite to use Vitest?

It works without a Vite app but the main benefit — sharing one config and transform pipeline — only applies if you are already using Vite.

Share

Related pages

Other head to heads