Examples of Rstack, including Rspack, Rsbuild, Rspress, Rsdoctor.
168
stars
493
commits
TypeScript
primary language
Sep 9, 2026
updated
This repository contains comprehensive examples that demonstrate the Rstack ecosystem tools, including Rspack, Rsbuild, Rspress, and Rsdoctor. These examples showcase common implementation patterns and best practices to help developers leverage the full potential of the Rstack toolchain.
The
mainbranch contains examples for Rspack/Rsbuild v2. For Rspack/Rsbuild 1.x examples, please check the v1.x branch.
| Rspack | ![]() | Examples | Document |
|---|---|---|---|
| Rsbuild | ![]() | Examples | Document |
| Rspress | ![]() | Examples | Document |
| Rsdoctor | ![]() | Examples | Document |
| Rslib | ![]() | Examples | Document |
To clone a single example, use giget to download a sub-directory from the current repository.
For example, to clone the /rspack/basic example, run the following command:
# Clone the basic example
npx giget gh:rstackjs/rstack-examples/rspack/basic my-app
# Enter the my-app example directory
cd my-app
# Install the dependencies
pnpm i
The second argument is the output directory. Pass it explicitly so the example is created with a clear local folder name.
You can clone any other example by replacing the path and output directory:
# Clone the Rsbuild React example
npx giget gh:rstackjs/rstack-examples/rsbuild/react my-app
# Clone the Rslib React example
npx giget gh:rstackjs/rstack-examples/rslib/react-basic my-lib
To try all examples, you can clone the current repository to your local.
git clone git@github.com:rstackjs/rstack-examples.git
cd rsbuild/react
pnpm or other package manager, then start the project:# Use corepack to enable pnpm
corepack enable
pnpm i
pnpm run dev
TypeScript
60.7%
JavaScript
24.5%
CSS
8.3%
HTML
3.4%
Vue
1.7%
Examples of Rstack, including Rspack, Rsbuild, Rspress, Rsdoctor.
168
stars
493
commits
TypeScript
primary language
Sep 9, 2026
updated
This repository contains comprehensive examples that demonstrate the Rstack ecosystem tools, including Rspack, Rsbuild, Rspress, and Rsdoctor. These examples showcase common implementation patterns and best practices to help developers leverage the full potential of the Rstack toolchain.
The
mainbranch contains examples for Rspack/Rsbuild v2. For Rspack/Rsbuild 1.x examples, please check the v1.x branch.
| Rspack | ![]() | Examples | Document |
|---|---|---|---|
| Rsbuild | ![]() | Examples | Document |
| Rspress | ![]() | Examples | Document |
| Rsdoctor | ![]() | Examples | Document |
| Rslib | ![]() | Examples | Document |
To clone a single example, use giget to download a sub-directory from the current repository.
For example, to clone the /rspack/basic example, run the following command:
# Clone the basic example
npx giget gh:rstackjs/rstack-examples/rspack/basic my-app
# Enter the my-app example directory
cd my-app
# Install the dependencies
pnpm i
The second argument is the output directory. Pass it explicitly so the example is created with a clear local folder name.
You can clone any other example by replacing the path and output directory:
# Clone the Rsbuild React example
npx giget gh:rstackjs/rstack-examples/rsbuild/react my-app
# Clone the Rslib React example
npx giget gh:rstackjs/rstack-examples/rslib/react-basic my-lib
To try all examples, you can clone the current repository to your local.
git clone git@github.com:rstackjs/rstack-examples.git
cd rsbuild/react
pnpm or other package manager, then start the project:# Use corepack to enable pnpm
corepack enable
pnpm i
pnpm run dev
TypeScript
60.7%
JavaScript
24.5%
CSS
8.3%
HTML
3.4%
Vue
1.7%