Softwr

Documentation · head to head

Rspack vs Starlight

Rspack logo

Rspack

Documentation

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

From
Free
Free plan
Yes
Starlight logo

Starlight

Documentation

Documentation site framework built on Astro that ships no JavaScript to the reader by default

From
Free
Free plan
Yes

The short version

  • Rspack is an MIT-licensed web bundler written in Rust.
  • Both are free.
  • Only Rspack lists webpack API compatibility; only Starlight lists pagefind search.
  • Where Rspack falls short: compatible with most, not all, webpack options and plugins.

How do Rspack and Starlight differ?

Rspack and Starlight differ on pricing model and platforms. Only the attributes on which Rspack and Starlight actually diverge.

Attributes where Rspack and Starlight differ
AttributeRspackStarlight
Pricing modelOpen-sourceOpen source, no licence fee
PlatformsWebWeb, macOS, Windows, Linux

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

Not yet recorded: category for Rspack.

Which features does each one have?

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

Only in Starlight

  • File based routing
  • Pagefind search
  • Internationalisation
  • Component overrides
  • Zero client JavaScript
  • Expressive Code blocks
  • Auto generated sidebar

What is each one used for?

Rspack is most often brought in for speeding up large webpack builds. The jobs each tool is most often brought in to do.

Rspack

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

Starlight

  • A developer tool whose docs live in the same repository as the code and are reviewed in the same pull requestnot Rspack
  • A team that already runs Astro for its marketing site and wants one build pipeline for bothnot Rspack
  • Documentation that must be served from a CDN or an air gapped static host with no search backendnot Rspack
  • A multilingual open source project that needs per locale content trees and untranslated page fallbacknot Rspack

Where do Rspack and Starlight fall short?

Rspack's most cited limit: compatible with most, not all, webpack options and plugins. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

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

Starlight

  • There is no editing interface, so every correction requires a git client, a Node install and a CI run, which puts documentation changes out of reach for anyone who does not already work in a repository
  • Starlight versions track Astro versions, so an Astro major release becomes a documentation site migration on someone else timeline rather than yours
  • Pagefind builds the whole search index at compile time, so build duration and index size grow with page count and large documentation sets pay for it on every deploy
  • There is no analytics, no feedback widget and no page level rating built in, so measuring which pages fail readers means wiring a third party script yourself
  • Component overrides are limited to the slots the theme exposes, and anything outside those slots means forking the theme and inheriting the merge burden on every upgrade

How much do Rspack and Starlight cost?

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

Rspack

Free

No published plan breakdown. See the Rspack review.

Starlight

Free
  • Open sourceFree
    • MIT licence
    • All features included
    • Self hosted on any static host

Which should you pick?

Choose Rspack if

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

Choose Starlight if

  • You need file based routing.
  • You want to start without paying.
  • You work on Web, macOS, Windows, Linux.
  • You also want pagefind search.

Questions people ask

Is Rspack or Starlight better?
It depends on the job. Rspack fits speeding up large webpack builds; Starlight fits a developer tool whose docs live in the same repository as the code and are reviewed in the same pull request. Rspack starts at Free and Starlight at Free.
Which is cheaper, Rspack or Starlight?
Rspack starts at Free and Starlight at Free.
Does Rspack or Starlight run on more platforms?
Rspack runs on Web. Starlight runs on Web, macOS, Windows, Linux.
Can I use Rspack for free?
Both have a free tier, so you can try either at no cost before committing.
What is Rspack best used for?
Rspack is most often used for speeding up large webpack builds, micro frontends with module federation, library and component builds via rslib, documentation sites via rspress. Of those, speeding up large webpack builds and micro frontends with module federation are not what Starlight is typically brought in for.
What can Rspack do that Starlight cannot?
Rspack covers Rust based bundler, webpack API compatibility, Incremental and lazy compilation, Persistent caching. Starlight covers File based routing, Pagefind search, Internationalisation, Component overrides.

Answered from the vendors’ own pages

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
Starlight: Can a non technical writer publish a page without help?

No. There is no content management interface. Every change is a commit, a pull request and a build.

Rspack: What licence is Rspack under?

Rspack is released under the MIT licence.

Source
Starlight: Do I need to know Astro to use it?

Not for basic use. Markdown files and a config file are enough until you want custom components, at which point Astro knowledge becomes mandatory.

Rspack: What else is in the Rstack family?

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

Source
Starlight: Is search included or do I pay for it?

Included and free. Pagefind builds a static index at compile time. Algolia DocSearch is optional if you want hosted search instead.

Starlight: What happens when Astro releases a major version?

Starlight follows it, and your site needs a migration. Read the upgrade guide before pinning a version for a long lived project.

Starlight: Can I self host with no external services?

Yes. The output is static HTML, CSS and a search index. Nothing calls out at runtime unless you add it.

Share

Related pages

Other head to heads