rspack is a free, open source build & deployment project written in Rust and released under MIT. It has 12,906 GitHub stars, 854 forks and 224 open issues, and was last pushed 7 hours ago. On this registry it ranks #11 of 59 tracked projects in Build & Deployment, with 5 head-to-head comparisons available. It gained 6 stars over the last 3 tracked days.

What is rspack?

What it is

Rspack is a fast bundler for the web written in Rust, distributed under the MIT license. It modernizes the webpack API so that webpack configurations can be replaced seamlessly, while the Rust core delivers fast build speeds. The project lives in the JavaScript and TypeScript build-tooling ecosystem, and it is part of Rstack, a unified JavaScript toolchain that also includes Rsbuild, Rslib, Rspress, Rsdoctor, Rstest, and Rslint. The repository carries the topics build-tool, bundler, compiler, esm, javascript, jsx, loaders, module-bundler, rspack, rstack, rust, and typescript.

The concrete problem it solves is build speed and migration cost. Existing webpack projects accumulate plugins and loaders that are difficult to abandon, so Rspack keeps compatibility with the webpack plugin and loader ecosystem while replacing the underlying compilation engine with Rust. That combination lets teams keep their existing configuration surface and community libraries, but gain faster startup and faster hot module replacement through a built-in incremental compilation mechanism. Module Federation is supported as a first-class feature, which matters for large-scale web applications that share code across independently deployed builds.

Key capabilities

  • Rust-based compilation that produces fast startup times.
  • Built-in incremental compilation for hot module replacement on large projects.
  • Compatibility with plugins and loaders from the webpack ecosystem.
  • First-class Module Federation support for large-scale web applications.
  • Production optimization strategies enabled by default, including tree shaking and minification.
  • Framework-agnostic design that is not bound to any frontend framework.
  • A companion dev server, rspack-dev-server, plus rspack_sources, a Rust port of webpack-sources.

Who uses it and how

  • Teams migrating an existing webpack project that want to keep their plugins and loaders while changing the bundler underneath.
  • Large-scale applications that rely on incremental compilation and fast hot module replacement during development.
  • Organizations building micro-frontend or shared-code architectures through Module Federation.
  • Library authors using Rslib, and static site authors using Rspress, within the same Rstack toolchain.
  • Build engineers using Rsdoctor to analyze build output, and Rstest and Rslint for testing and linting in the same stack.

Getting started

The README points to the Quick start guide at rspack.rs, with separate documentation sites for Rspack 2.x, 1.x, and 0.x. Examples are collected in the rstack-examples repository, and the dev server is available as rspack-dev-server.

When to use it โ€” and when not to

Rspack fits projects that want webpack compatibility without webpack's build times, and it is a reasonable choice when Module Federation or a framework-agnostic bundler is required. The README does not describe a hosted offering, so adoption

project readme (upstream, from github) โ€” read inline
Rspack Banner

Rspack

discord channel npm version crates version downloads node version license codspeed

English | ็ฎ€ไฝ“ไธญๆ–‡

Rspack is a fast Rust-based bundler for the web. It modernizes the webpack API to enable seamless replacement of webpack while delivering lightning-fast build speeds.

โœจ Features

  • ๐Ÿš€ Fast Startup: Based on Rust, the build speed is extremely fast, bringing you the ultimate development experience.
  • โšก Lightning HMR: With a built-in incremental compilation mechanism, HMR is extremely fast and fully capable of developing large-scale projects.
  • ๐Ÿ“ฆ Webpack Compatible: Compatible with plugins and loaders in the webpack ecosystem, seamlessly integrating excellent libraries built by the community.
  • ๐ŸŽจ Module Federation: Provide first-class support for Module Federation to facilitate the development of large-scale web applications.
  • ๐Ÿ› ๏ธ Production Optimization: Various optimization strategies are built in by default, such as tree shaking, minification, etc.
  • ๐ŸŽฏ Framework Agnostic: Not bound to any frontend framework, ensuring enough flexibility.

Read Introduction for details.

๐Ÿฆ€ Rstack

Rspack is part of Rstack, the fast, unified JavaScript toolchain for developers and agents.

Name Description Version
Rspack Bundler npm version
Rsbuild Build tool npm version
Rslib Library development tool npm version
Rspress Static site generator npm version
Rsdoctor Build analyzer npm version
Rstest Testing framework npm version
Rslint Linter npm version

Getting started

Open in StackBlitz

See Quick start.

Contribution

Please read the contributing guide and let's build Rspack together.

Code of conduct

This repo has adopted the ByteDance Open Source Code of Conduct. Please check Code of conduct for more details.

Community

Come chat with us on Discord! Rspack team and Rspack users are active there, and we're always looking for contributions.

Links

Name Description
awesome-rstack A curated list of awesome things related to Rstack
agent-skills A collection of Agent Skills for Rstack
Rspack 2.x docs Documentation for Rspack 2.x
Rspack 1.x docs Documentation for Rspack 1.x
Rspack 0.x docs Documentation for Rspack 0.x version
rspack-dev-server Dev server for Rspack
rstack-examples Examples showcasing Rstack
rspack-sources Rust port of webpack-sources
rstack-design-resources Design resources for Rstack

Contributors

Benchmarks

Credits

Thanks to:

  • The webpack team and community for creating a great bundler and ecosystem from which we draw a lot of inspiration.
  • @sokra for the great work on the webpack project.
  • @ScriptedAlchemy for creating Module Federation and helping Rspack connect with the community.
  • The SWC project created by @kdy1, which powers Rspack's code parsing, transformation and minification.
  • The esbuild project created by @evanw, which inspired the concurrent architecture of Rspack.
  • The NAPI-RS project created by [@Brooo

readme truncated โ€” read the full docs on github

Frequently asked questions

Is rspack free to use?

rspack is open source under the MIT licence. There is no licence fee and no seat count โ€” you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does rspack do?

Fast Rust-based bundler for the web with a modernized webpack API ๐Ÿฆ€

What is rspack written in?

rspack is primarily written in Rust. Its source is publicly available at https://github.com/web-infra-dev/rspack, and it has 12,906 GitHub stars.