Softwr

Web Development · head to head

Gatsby vs Rspack

Gatsby logo

Gatsby

Web Development

Open-source React framework for building websites and apps

From
Free
Free plan
Yes
Rspack logo

Rspack

Web Development

Rust-based web bundler with a webpack-compatible API and fast builds

From
Free
Free plan
Yes

The short version

  • Rspack is an MIT-licensed web bundler written in Rust.
  • Both are free.
  • Only Gatsby lists GraphQL data layer; only Rspack lists webpack API compatibility.
  • Where Gatsby falls short: Gatsby Cloud hosting ended in August 2023 and was merged into Netlify.
  • Where Rspack falls short: compatible with most, not all, webpack options and plugins.

How do Gatsby and Rspack differ?

Gatsby and Rspack differ on platforms. Only the attributes on which Gatsby and Rspack actually diverge.

Attributes where Gatsby and Rspack differ
AttributeGatsbyRspack
PlatformsWeb, Windows, macOS, LinuxWeb

Identical on both: starting price (Free), pricing model (Open-source), free tier (Yes).

Not yet recorded: category for Rspack.

Which features does each one have?

They share no listed features; 8 appear only for Gatsby and 8 only for Rspack. 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 Gatsby

  • React-based component development
  • GraphQL data layer
  • Plugin and theme ecosystem
  • Static site generation
  • Server-side rendering
  • Deferred Static Generation
  • Headless CMS integration
  • Cloud Functions support

Only in Rspack

  • Rust based bundler
  • webpack API compatibility
  • Incremental and lazy compilation
  • Persistent caching
  • Module Federation
  • Code splitting and tree shaking
  • React Server Components
  • Rsbuild, Rslib and Rspress toolchain

What is each one used for?

Gatsby is most often brought in for marketing sites pulling content from a headless CMS; Rspack for speeding up large webpack builds. The jobs each tool is most often brought in to do.

Gatsby

  • Marketing sites pulling content from a headless CMSnot Rspack
  • Blogs and documentation sites built in Reactnot Rspack
  • Static sites with image optimisation pluginsnot Rspack
  • Migrating existing Gatsby Cloud sites to Netlifynot Rspack

Rspack

  • Speeding up large webpack buildsnot Gatsby
  • Micro frontends with Module Federationnot Gatsby
  • Library and component builds via Rslibnot Gatsby
  • Documentation sites via Rspressnot Gatsby

Where do Gatsby and Rspack fall short?

Gatsby's most cited limit: Gatsby Cloud hosting ended in August 2023 and was merged into Netlify. Rspack's: compatible with most, not all, webpack options and plugins. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Gatsby

  • Gatsby Cloud hosting ended in August 2023 and was merged into Netlify
  • The GitHub repository's releases section is empty, so release cadence is unclear
  • Requires React and GraphQL knowledge; there is no visual editor
  • Hosting, CMS and build services are paid separately
  • Official hosting guidance now centres on Netlify

Rspack

  • Compatible with most, not all, webpack options and plugins
  • Major version upgrade from v1 to v2 needs a migration step
  • Bundler only, with application structure left to you or Rsbuild
  • Rust internals are harder to patch than a JavaScript bundler

How much do Gatsby and Rspack cost?

Gatsby is free to use; Rspack is free to use. Plan by plan below, from each vendor's own pricing page.

Gatsby

Free

No published plan breakdown. See the Gatsby review.

Rspack

Free

No published plan breakdown. See the Rspack review.

Which should you pick?

Choose Gatsby if

  • You need react-based component development.
  • You want to start without paying.
  • You work on Web, Windows, macOS, Linux.
  • You also want graphql data layer.

Choose Rspack if

  • You need rust based bundler.
  • You want to start without paying.
  • You also want webpack api compatibility.

Questions people ask

Is Gatsby or Rspack better?
It depends on the job. Gatsby fits marketing sites pulling content from a headless CMS; Rspack fits speeding up large webpack builds. Gatsby starts at Free and Rspack at Free.
Which is cheaper, Gatsby or Rspack?
Gatsby starts at Free and Rspack at Free.
Does Gatsby or Rspack run on more platforms?
Gatsby runs on Web, Windows, macOS, Linux. Rspack runs on Web.
Can I use Gatsby for free?
Both have a free tier, so you can try either at no cost before committing.
What is Gatsby best used for?
Gatsby is most often used for marketing sites pulling content from a headless cms, blogs and documentation sites built in react, static sites with image optimisation plugins, migrating existing gatsby cloud sites to netlify. Of those, marketing sites pulling content from a headless cms and blogs and documentation sites built in react are not what Rspack is typically brought in for.
What can Gatsby do that Rspack cannot?
Gatsby covers React-based component development, GraphQL data layer, Plugin and theme ecosystem, Static site generation. Rspack covers Rust based bundler, webpack API compatibility, Incremental and lazy compilation, Persistent caching.

Answered from the vendors’ own pages

Gatsby: Is Gatsby free?

Yes. Gatsby is open source under the MIT License, and the project site lists no paid Gatsby plans. You pay separately for hosting and any CMS you connect.

Source
Rspack: Can I reuse my webpack config in Rspack?

Rspack is compatible with the vast majority of webpack's configuration options and APIs, so loaders and plugins can usually be reused.

Source
Gatsby: What happened to Gatsby Cloud?

Netlify acquired Gatsby, Inc. in February 2023 and ended Gatsby Cloud in August 2023, folding it into Netlify. The Gatsby site offers migration paths to Netlify.

Source
Rspack: What licence is Rspack under?

Rspack is released under the MIT licence.

Source
Gatsby: Does Gatsby support server-side rendering?

Yes. Wikipedia says version 4 added server-side rendering and Deferred Static Generation alongside static generation. The Gatsby site also mentions Cloud Functions.

Source
Rspack: What else is in the Rstack family?

Rsbuild, Rslib, Rspress, Rstest, Rslint and Rsdoctor.

Source
Share

Related pages

Other head to heads