rslib is a free, open source build & deployment project written in TypeScript and released under MIT. It has 1,035 GitHub stars, 67 forks and 30 open issues, and was last pushed 18 hours ago. On this registry it ranks #58 of 81 tracked projects in Build & Deployment, with 5 head-to-head comparisons available.

Rslib Banner

Rslib

Discord channel npm version downloads node version license Ask DeepWiki

English | 简体中文

Rslib is a library development tool based on Rsbuild.

It gives developers a simple way to create JavaScript libraries and UI component libraries, and provides tool integrations and best practices for building, debugging, documentation, and testing throughout library development.

🔥 Features

Rslib has the following features:

  • Easy to configure: Out-of-the-box tooling enables developers to build libraries with zero configuration. Rslib also provides a set of semantic build configurations that can be extended as project needs grow.

  • Performance-focused: Powered by Rspack, it integrates high-performance Rust-based tools from the community, including SWC and Lightning CSS, delivering first-class build speed and development experience.

  • Plugin ecosystem: Supports Rsbuild plugins, Rspack plugins, and webpack plugins, allowing developers to reuse existing plugin ecosystems and continue using familiar development workflows and engineering practices.

  • Flexible outputs: Designed around the diverse ways libraries are published and consumed, it supports flexible build output configuration for different runtimes, distribution methods, and downstream build tools to meet the delivery needs of different types of libraries.

  • Framework agnostic: Decoupled from frontend UI frameworks, it supports React, Vue, Svelte, Solid, and other frameworks through plugins, allowing developers to build component libraries for different frameworks with a consistent configuration and development workflow.

📚 Documentation

🦀 Rstack

Rslib is part of Rstack, the fast, unified JavaScript toolchain for developers and agents.

Name Description Version
Rspack Bundler npm version
Rsbuild Build tool npm version
Rslib Library development tool npm version
Rspress Static site generator npm version
Rsdoctor Build analyzer npm version
Rstest Testing framework npm version
Rslint Linter npm version

🔗 Links

🤝 Contribution

[!NOTE] We highly value any contributions to Rslib!

Please read the Contributing Guide.

Contributors

Code of conduct

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

🧑‍💻 Community

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

🙏 Credits

Parts of Rslib are derived from or inspired by many excellent open source projects. We sincerely appreciate the work of these projects and the ideas they have shared with the community:

📖 License

Rslib is licensed under the MIT License.

Frequently asked questions

Is rslib free to use?

rslib is open source under the MIT licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does rslib do?

Create JavaScript libraries in a simple and intuitive way.

What is rslib written in?

rslib is primarily written in TypeScript. Its source is publicly available at https://github.com/web-infra-dev/rslib, and it has 1,035 GitHub stars.