• Stars
    star
    675
  • Rank 64,568 (Top 2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created 7 months ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The Rspack-based build tool. It's fast, out-of-the-box and extensible.
Rsbuild Banner

Rsbuild

discord channel npm version downloads license

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

๐Ÿ’ก What is Rsbuild?

  • Rsbuild is an Rspack-based build tool for the web.
  • Rsbuild is an enhanced Rspack CLI, which is more user-friendly and out-of-the-box.
  • Rsbuild is the Rspack team's exploration and implementation of best practices for web building.
  • Rsbuild is the best solution for migrating from Webpack to Rspack, reducing configuration by 90% and getting 10x build speed.

๐Ÿš€ Performance

The build performance of Rsbuild is on a par with native Rspack. Considering that Rsbuild includes more out-of-the-box features, its performance will be slightly lower than Rspack.

This is the time it takes to build 1000 React components:

benchmark

The data is based on the benchmark built by the Farm team, more info in performance-compare.

๐Ÿ”ฅ Features

Rsbuild has the following features:

  • Easy to Configure: One of the goals of Rsbuild is to provide out-of-the-box build capabilities for Rspack users, allowing developers to start a web project with zero configuration. In addition, Rsbuild provides semantic build configuration to reduce the learning curve for Rspack configuration.

  • Performance Oriented: Rsbuild integrates high-performance Rust-based tools from the community, including Rspack and SWC, to deliver top-notch build speed and development experience. Compared to webpack-based tools like Create React App and Vue CLI, Rsbuild provides 5 to 10 times faster build performance and lighter dependencies.

  • Plugin Ecosystem: Rsbuild has a lightweight plugin system and includes a range of high-quality official plugins. Furthermore, Rsbuild is compatible with most webpack plugins and all Rspack plugins, allowing users to leverage existing community or in-house plugins in Rsbuild without the need for rewriting code.

  • Stable Artifacts: Rsbuild is designed with a strong focus on the stability of build artifacts. It ensures high consistency between artifacts in the development environment and production builds, and automatically completes syntax downgrading and polyfill injection. Rsbuild also provides plugins for type checking and artifact syntax validation to prevent quality and compatibility issues in production code.

  • Framework Agnostic: Rsbuild is not coupled with any front-end UI framework. It supports frameworks like React, Vue 3, Vue 2, Svelte, Solid, and Lit through plugins, and plans to support more UI frameworks from the community in the future.

๐ŸŽฏ Position

In addition to being used as a build tool, Rsbuild also provides universal build capabilities for higher-level solutions, such as Rspress and Modern.js, allowing them to focus on the development of their own domain specific capabilities.

The following diagram illustrates the relationship between Rsbuild and other tools in the ecosystem:

Rspack Ecosystem

๐Ÿ“ Roadmap

  • Q4 2023: release several minor versions of Rsbuild 0.x (based on Rspack 0.x).
  • Q1 2024: release Rsbuild 1.0 beta version (based on Rspack 1.0 beta).
  • Q2 2024: release Rsbuild 1.0 stable version (based on Rspack 1.0 stable).

๐Ÿ“š Getting Started

To get started with Rsbuild, see the Quick Start.

๐Ÿฆ€ Ecosystem

  • Rspack: the underlying bundler of Rsbuild.
  • Rspress: A fast static site generator based on Rsbuild.
  • Modern.js: A progressive React framework based on Rsbuild.
  • awesome-rspack: A curated list of awesome things related to Rspack and Rsbuild.

๐Ÿค Contribution

New contributors welcome!

Please read the Contributing Guide.

๐Ÿง‘โ€๐Ÿ’ป Community

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

๐ŸŒŸ Quality

Rsbuild uses Web Infra QoS to observe the trend of key metrics, such as bundle size, compile speed and install size.

๐Ÿ™Œ Code of Conduct

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

๐Ÿ™ Credits

Some of the implementations of Rsbuild have drawn inspiration from outstanding projects in the community. We would like to express our gratitude to them:

This Rsbuild website is powered by Netlify.

๐Ÿ“– License

Rsbuild is licensed under the MIT License.

More Repositories

1

rspack

A fast Rust-based web bundler ๐Ÿฆ€๏ธ
Rust
7,445
star
2

modern.js

Modern.js is a web engineering system, including a web framework and a npm package solution.
TypeScript
4,161
star
3

garfish

A powerful micro front-end framework ๐Ÿšš
TypeScript
2,334
star
4

oxc

โš“ A suite of high-performance tools for JavaScript and TypeScript written in Rust.
Rust
1,902
star
5

rspress

๐Ÿฆ€๐Ÿ’จ A fast Rspack-based static site generator.
TypeScript
1,090
star
6

rsdoctor

A one-stop build analyzer for Rspack and Webpack.
TypeScript
189
star
7

rspack-sources

Rusty webpack-sources port.
Rust
117
star
8

webpack-inspector

Devtool for webpack.
TypeScript
97
star
9

mdx-rs

Rust MDX compilation binding for Rspress
Rust
77
star
10

reduck

A Redux-based state management library
TypeScript
71
star
11

rspack-website

Website of Rspack
TypeScript
59
star
12

swc-plugins

SWC plugins and binding
Rust
50
star
13

blogs

Web Infra team working group
35
star
14

modern-js-examples

Examples for Modern.js web engineering system
30
star
15

nodejs_resolver

Rust
27
star
16

unport

A Universal Port with strict type inference capability for cross-JSContext communication.
TypeScript
27
star
17

awesome-rspack

A curated list of awesome things related to Rspack, Rsbuild and Rspress
27
star
18

codesmith

Micro generator for development life-cycle.
TypeScript
20
star
19

electron-sprout

A front-end friendly desktop framework based on Electron.
TypeScript
20
star
20

rspack-dev-guide

A guide to how Rspack works and how to contribute to it.
17
star
21

deep-dive-into-tla

Blog Post - Deep Dive into Top-level await
14
star
22

napi-template

Template for generating rust-based native projects
JavaScript
11
star
23

web-infra-QoS

Web Infra QoS
TypeScript
9
star
24

bundler-benchmark

JavaScript
8
star
25

rspack-ecosystem-ci

Rspack Ecosystem CI
TypeScript
8
star
26

rspack-migration-showcase

migration showcase for rspack
TypeScript
8
star
27

libuild

The home for various projects about libuild
TypeScript
7
star
28

rspack-repro

A GitHub template for create reproduction with Rspack fastly.
JavaScript
7
star
29

webinfra.org

HTML
7
star
30

.github

The profile of Web Infra organization.
6
star
31

rspack-ecosystem-benchmark

JavaScript
4
star
32

actions

TypeScript
4
star
33

rfcs

RFC for changes to web-infra projects
3
star
34

with-rspack-demo

Demo application that bundle with rspack
CSS
2
star
35

modern-js-dev.github.io

modernjs.dev
HTML
2
star
36

rspack-demo

A demo for rspack bundler
JavaScript
2
star
37

module-tools-examples

module-tools examples
TypeScript
1
star
38

clabot-config

1
star
39

rspack-compat

JavaScript
1
star
40

media

media resources for Rspack
1
star