back to home

web-infra-dev / rspack

Rust-based bundler for JavaScript and TypeScript with refined webpack API đŸĻ€

12,541 stars
769 forks
204 issues
RustMDXTypeScript

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing web-infra-dev/rspack in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/web-infra-dev/rspack)
Preview:Analyzed by RepoMind

Repository Summary (README)

Preview
Rspack Banner

Rspack

discord channel npm version crates 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 centered on Rspack, with high performance and consistent architecture.

NameDescriptionVersion
RspackBundlernpm version
RsbuildBuild toolnpm version
RslibLibrary development toolnpm version
RspressStatic site generatornpm version
RsdoctorBuild analyzernpm version
RstestTesting frameworknpm version
RslintLinternpm 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

NameDescription
awesome-rstackA curated list of awesome things related to Rstack
agent-skillsA collection of Agent Skills for Rstack
Rspack 2.x docsDocumentation for Rspack 2.x (beta)
Rspack 1.x docsDocumentation for Rspack 1.x (latest)
Rspack 0.x docsDocumentation for Rspack 0.x version
rspack-dev-serverDev server for Rspack
rstack-examplesExamples showcasing Rstack
rspack-sourcesRust port of webpack-sources
rstack-design-resourcesDesign resources for Rstack

Contributors

Benchmark

See Benchmark.

Credits

Thanks to:

License

Rspack is MIT licensed.