https://github.com/rstackjs/rstack-examples
Examples of Rstack, including Rspack, Rsbuild, Rspress, Rsdoctor.
https://github.com/rstackjs/rstack-examples
rsbuild rsdoctor rspack rspress
Last synced: 3 days ago
JSON representation
Examples of Rstack, including Rspack, Rsbuild, Rspress, Rsdoctor.
- Host: GitHub
- URL: https://github.com/rstackjs/rstack-examples
- Owner: rstackjs
- License: mit
- Created: 2023-11-20T11:11:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2026-01-02T09:15:15.000Z (10 days ago)
- Last Synced: 2026-01-03T20:45:09.730Z (9 days ago)
- Topics: rsbuild, rsdoctor, rspack, rspress
- Language: JavaScript
- Homepage:
- Size: 15.1 MB
- Stars: 150
- Watchers: 9
- Forks: 42
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rstack - rstack-examples
README
# Rstack Examples
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.
## List of Examples
| [Rspack](https://github.com/web-infra-dev/rspack) |
| [Examples](./rspack) | [Document](https://rspack.dev/) |
| :---------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------: | :----------------------------------: |
| [Rsbuild](https://github.com/web-infra-dev/rsbuild) |
| [Examples](./rsbuild) | [Document](https://rsbuild.dev/) |
| [Rspress](https://github.com/web-infra-dev/rspress) |
| [Examples](./rspress/) | [Document](https://rspress.dev/) |
| [Rsdoctor](https://github.com/web-infra-dev/rsdoctor) |
| [Examples](./rsdoctor/) | [Document](https://rsdoctor.dev/) |
| [Rslib](https://github.com/web-infra-dev/rslib) |
| [Examples](./rslib) | [Document](https://lib.rsbuild.dev/) |
## How to Use
### Clone single example
To clone a single example, you can use the [gitpick](https://github.com/nrjdalal/gitpick) to clone a sub-directory from the current repository.
For example, to clone the `/rspack/basic` example, run the following command:
```bash
# Clone the basic example
npx gitpick https://github.com/rspack-contrib/rstack-examples/tree/main/rspack/basic
# Enter the basic example directory
cd basic
# Install the dependencies
pnpm i
```
### Clone all examples
To try all examples, you can clone the current repository to your local.
1. First, clone the current repository to your local:
```bash
git clone git@github.com:rspack-contrib/rstack-examples.git
```
2. Then, choose the example you need, such as the Rsbuild react example:
```bash
cd rsbuild/react
```
3. Install the dependencies using `pnpm` or other package manager, then start the project:
```bash
# Use corepack to enable pnpm
corepack enable
pnpm i
pnpm run dev
```
4. You can fork the current project or copy the code from the current project to use it.