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

    Powered by Rspack and Rsbuild, start a dev server quickly and build enterprise-grade web applications

    • 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 with Rslib, with the flexibility to develop shared libraries, CLI tools, and components

    • 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 APIs
    • Tests accelerated by Rspack, 20%+ faster than Jest
    • Automatically reuse existing build configuration to reduce maintenance
    $ 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

    Consistent standards, faster checks

    One command for linting, formatting checks, and type checking to keep team standards consistent

    • 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 in every commit

    Bring code checks into your Git workflow while keeping your existing lint-staged configuration and Husky workflow

    • 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

    Generate beautiful, AI-friendly static documentation sites with Rspress and maintain docs alongside your code

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