For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /index.md.
close
  • English
  • Latest release v0.7.4

    Unified Toolchain forShipping JavaScript Faster

    One CLI unifies development, builds, testing, linting, and formatting across all your JavaScript projects. Powered by the Rspack ecosystem.

    rs devrs build

    From dev to production, fast

    Start dev servers quickly and build enterprise-grade web applications with Rspack and Rsbuild

    • Build 5–20× faster than webpack
    • Optimize bundles for faster runtime performance
    • A consistent bundling process for development and production
    $ rs build
    Rsbuild v2.0.0
    
    info    build started...
    ready   built in 0.02s
    
    File (web)                    Size     Gzip
    dist/static/js/index.js    0.20 kB  0.18 kB
    dist/index.html            0.32 kB  0.24 kB
    
                       Total:  0.52 kB  0.42 kB

    rs lib

    Your library, ready to ship

    Build reusable JavaScript libraries, CLI tools, and UI components with Rslib

    • One configuration for ESM, CJS, Module Federation, and more
    • Choose bundle or bundleless output to suit your needs
    • Generate type declarations quickly with TypeScript 7
    $ rs lib --dts
    Rslib v1.0.0
    
    info    build started...
    ready   built in 0.02s
    start   generating declaration files...
    ready   declaration files generated
    
    File (esm)          Size
    dist/index.js    0.04 kB

    rs test

    Faster tests, instant feedback

    Test JavaScript with Rstest for fast feedback from local development to CI

    • Familiar Jest-style APIs
    • Tests accelerated by Rspack, 20%+ faster than Jest
    • Automatically reuse your build configuration to reduce maintenance overhead
    $ rs test
    Rstest v0.11.0
    
    src/utils.test.ts (2)
    src/app.test.ts (1)
    
     Test Files  2 passed
          Tests  3 passed
       Duration  211ms

    rs lintrs fmtrs check

    Fast checks, consistent code

    Keep your team's code consistent with one command for linting, formatting checks, and type checking

    • Lint 20–40× faster than ESLint
    • Format 5–10× faster than Prettier
    • Compatible with ESLint and Prettier configuration and plugins
    $ rs check
    
    start   Linting...
    success Lint passed in 287ms
    
    start   Checking formatting...
    success Format check passed in 25ms (99 files)

    rs hooksrs staged

    Checks for every commit

    Add code checks to your Git workflow with familiar lint-staged configuration and Husky-style hooks

    • Manage repository-wide Git hooks in one place
    • Automatically check staged files
    • Run custom commands to suit your workflow
    $ rs staged
    
    Done backing up original state!
    rs lint --fix
    rs fmt
    Done running tasks for staged files!
    Done staging changes from tasks!
    Done cleaning up temporary files!

    rs doc

    Build AI-friendly docs sites

    Build beautiful, AI-friendly static documentation sites with Rspress and maintain them alongside your code

    • Write content in Markdown and MDX
    • Full-text search and multilingual support out of the box
    • Automatically generate llms.txt and Markdown files for AI agents
    $ rs doc
    Rspress v2.0.0
    
    Local: http://localhost:3000/
    Network: use --host to expose
    
    start   build started...
    ready   built in 0.18s

    Build your next project with Rstack CLI

    Keep your tools in sync and make time for what you want to create.

    pnpm create rstack@latest
    Get started