Rspack

The fast Rust-based web bundler with webpack-compatible API
GitHub
11.5k
Created 3 years ago, last commit 14 hours ago
238 contributors
6.23k commits
Stars added on GitHub, month by month
5
6
7
8
9
10
11
12
1
2
3
4
2024
2025
Stars added on GitHub, per day, on average
Yesterday
+11
Last week
+6.0
/day
Last month
+5.2
/day
Last 12 months
+11.0
/day
npmPackage on NPM
Monthly downloads on NPM
5
6
7
8
9
10
11
12
1
2
3
4
2024
2025
README
Rspack Banner

Rspack

discord channel npm version downloads node version license codspeed

English | 简体中文

Rspack is a high performance JavaScript bundler written in Rust. It offers strong compatibility with the webpack ecosystem, allowing for seamless replacement of webpack, and provides 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

Rstack is a unified JavaScript toolchain built around Rspack, with high performance and consistent architecture.

Name Description
Rspack Bundler
Rsbuild Build tool
Rslib Library development tool
Rspress Static site generator
Rsdoctor Build analyzer
Rstest Testing framework

Getting started

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-rspack A curated list of awesome things related to Rspack
Rspack 1.x documentation Documentation for Rspack 1.x (latest)
Rspack 0.x documentation Documentation for Rspack 0.x version
rspack-dev-server Dev server for Rspack
rstack-examples Examples showcasing Rstack ecosystem tools (Rspack, Rsbuild, Rspress, Rsdoctor)
rspack-sources Rust port of webpack-sources
rstack-design-resources Design resources for Rspack Stack

Contributors

Benchmark

See Benchmark.

Credits

Thanks to:

License

Rspack is MIT licensed.