{"id":14054172,"url":"https://github.com/web-infra-dev/rslib","last_synced_at":"2025-12-29T08:28:53.556Z","repository":{"id":251691243,"uuid":"766839449","full_name":"web-infra-dev/rslib","owner":"web-infra-dev","description":"Create JavaScript libraries in a simple and intuitive way.","archived":false,"fork":false,"pushed_at":"2025-05-07T06:26:00.000Z","size":4102,"stargazers_count":741,"open_issues_count":45,"forks_count":41,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-05-07T07:35:14.280Z","etag":null,"topics":["build-tool","hacktoberfest","library","rsbuild","rslib","rspack","rstack","typescript"],"latest_commit_sha":null,"homepage":"https://lib.rsbuild.dev/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/web-infra-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-04T08:18:53.000Z","updated_at":"2025-05-06T10:44:25.000Z","dependencies_parsed_at":"2025-01-23T09:23:23.424Z","dependency_job_id":"012ca2d0-c12a-4985-b1ee-73b37ef7ec3f","html_url":"https://github.com/web-infra-dev/rslib","commit_stats":{"total_commits":432,"total_committers":12,"mean_commits":36.0,"dds":0.6134259259259259,"last_synced_commit":"e1f92df30265c5e56993e41bca1ecc67e24f2dec"},"previous_names":["web-infra-dev/rslib"],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-infra-dev%2Frslib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-infra-dev%2Frslib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-infra-dev%2Frslib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-infra-dev%2Frslib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web-infra-dev","download_url":"https://codeload.github.com/web-infra-dev/rslib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254069217,"owners_count":22009511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build-tool","hacktoberfest","library","rsbuild","rslib","rspack","rstack","typescript"],"created_at":"2024-08-12T21:00:54.636Z","updated_at":"2025-12-24T14:51:08.299Z","avatar_url":"https://github.com/web-infra-dev.png","language":"TypeScript","readme":"\u003cpicture\u003e\n  \u003cimg alt=\"Rslib Banner\" src=\"https://assets.rspack.rs/rslib/rslib-banner.png\"\u003e\n\u003c/picture\u003e\n\n# Rslib\n\n\u003cp\u003e\n  \u003ca href=\"https://discord.gg/FQfm7VqU\"\u003e\u003cimg src=\"https://img.shields.io/badge/chat-discord-blue?style=flat-square\u0026logo=discord\u0026colorA=564341\u0026colorB=F8F5FF\" alt=\"Discord channel\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://npmjs.com/package/@rslib/core?activeTab=readme\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@rslib/core?style=flat-square\u0026colorA=564341\u0026colorB=F8F5FF\" alt=\"npm version\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://npmcharts.com/compare/@rslib/core?minimal=true\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/@rslib/core.svg?style=flat-square\u0026colorA=564341\u0026colorB=F8F5FF\" alt=\"downloads\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://nodejs.org/en/about/previous-releases\"\u003e\u003cimg src=\"https://img.shields.io/node/v/@rslib/core.svg?style=flat-square\u0026colorA=564341\u0026colorB=F8F5FF\" alt=\"node version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/web-infra-dev/rslib/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square\u0026colorA=564341\u0026colorB=F8F5FF\" alt=\"license\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://deepwiki.com/web-infra-dev/rslib\"\u003e\u003cimg src=\"https://deepwiki.com/badge.svg\" alt=\"Ask DeepWiki\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nEnglish | [简体中文](./README.zh-CN.md)\n\nRslib is a library development tool that leverages the well-designed configurations and plugins of [Rsbuild](https://rsbuild.rs), empowering library developers to take advantage of the extensive knowledge and ecosystem of webpack and Rspack.\n\nRslib aims to provide library developers with:\n\n- **Easy Library Creation**: Easily create high-quality JavaScript and TypeScript libraries in a simple and intuitive way.\n- **Simple Build Configuration**: Provides out-of-the-box build capabilities to meet the diverse needs of library development scenarios with simple configurations.\n- **Comprehensive Development Workflow**: Contains best practices for building, debugging, documentation, and testing during library development to help improve development efficiency and experience.\n\n## 🔥 Features\n\nRslib has the following features:\n\n- **Compilation of diverse languages**: TypeScript, JSX, Sass, Less, CSS Modules, Wasm, and more.\n- **Flexible build modes**: Bundle and bundleless options to meet varying needs.\n- **Multiple output formats**: ESM, CJS, and UMD for maximum compatibility.\n- **Declaration file generation**: Including isolated declarations.\n- **Advanced features**: Module Federation, asset compression, PostCSS, Lightning CSS, and more.\n\n## 🎯 Ecosystem\n\nRslib is implemented based on Rsbuild and fully reuses the capabilities and ecosystem of Rsbuild.\n\nThe following diagram illustrates the relationship between Rslib and other tools in the ecosystem:\n\n\u003cimg src=\"https://assets.rspack.rs/rsbuild/assets/rspack-stack-layers.png\" alt=\"Rspack stack layers\" width=\"760\" /\u003e\n\n## 📚 Getting started\n\nTo get started with Rslib, see the [Quick start](https://rslib.rs/guide/start/quick-start).\n\n## 🦀 Rstack\n\nRstack is a unified JavaScript toolchain built around Rspack, with high performance and consistent architecture.\n\n| Name                                                  | Description              | Version                                                                                                                                                                          |\n| ----------------------------------------------------- | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| [Rspack](https://github.com/web-infra-dev/rspack)     | Bundler                  | \u003ca href=\"https://npmjs.com/package/@rspack/core\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@rspack/core?style=flat-square\u0026colorA=564341\u0026colorB=EDED91\" alt=\"npm version\" /\u003e\u003c/a\u003e     |\n| [Rsbuild](https://github.com/web-infra-dev/rsbuild)   | Build tool               | \u003ca href=\"https://npmjs.com/package/@rsbuild/core\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@rsbuild/core?style=flat-square\u0026colorA=564341\u0026colorB=EDED91\" alt=\"npm version\" /\u003e\u003c/a\u003e   |\n| [Rslib](https://github.com/web-infra-dev/rslib)       | Library development tool | \u003ca href=\"https://npmjs.com/package/@rslib/core\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@rslib/core?style=flat-square\u0026colorA=564341\u0026colorB=EDED91\" alt=\"npm version\" /\u003e\u003c/a\u003e       |\n| [Rspress](https://github.com/web-infra-dev/rspress)   | Static site generator    | \u003ca href=\"https://npmjs.com/package/@rspress/core\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@rspress/core?style=flat-square\u0026colorA=564341\u0026colorB=EDED91\" alt=\"npm version\" /\u003e\u003c/a\u003e   |\n| [Rsdoctor](https://github.com/web-infra-dev/rsdoctor) | Build analyzer           | \u003ca href=\"https://npmjs.com/package/@rsdoctor/core\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@rsdoctor/core?style=flat-square\u0026colorA=564341\u0026colorB=EDED91\" alt=\"npm version\" /\u003e\u003c/a\u003e |\n| [Rstest](https://github.com/web-infra-dev/rstest)     | Testing framework        | \u003ca href=\"https://npmjs.com/package/@rstest/core\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@rstest/core?style=flat-square\u0026colorA=564341\u0026colorB=EDED91\" alt=\"npm version\" /\u003e\u003c/a\u003e     |\n| [Rslint](https://github.com/web-infra-dev/rslint)     | Linter                   | \u003ca href=\"https://npmjs.com/package/@rslint/core\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@rslint/core?style=flat-square\u0026colorA=564341\u0026colorB=EDED91\" alt=\"npm version\" /\u003e\u003c/a\u003e     |\n\n## 🔗 Links\n\n- [awesome-rspack](https://github.com/web-infra-dev/awesome-rspack): A curated list of awesome things related to Rstack.\n- [rstack-examples](https://github.com/rspack-contrib/rstack-examples): Examples for Rstack.\n- [storybook-rsbuild](https://github.com/rspack-contrib/storybook-rsbuild): Storybook builder powered by Rsbuild.\n- [rsbuild-plugin-template](https://github.com/rspack-contrib/rsbuild-plugin-template): Use this template to create your own Rsbuild plugin.\n- [rstack-design-resources](https://github.com/rspack-contrib/rstack-design-resources): Design resources for Rstack.\n\n## 🤝 Contribution\n\n\u003e [!NOTE]\n\u003e We highly value any contributions to Rslib!\n\nPlease read the [Contributing Guide](https://github.com/web-infra-dev/rslib/blob/main/CONTRIBUTING.md).\n\n### Contributors\n\n\u003ca href=\"https://github.com/web-infra-dev/rslib/graphs/contributors\" target=\"_blank\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=web-infra-dev/rslib\u0026columns=24\"\u003e\n\u003c/a\u003e\n\n### Code of conduct\n\nThis repo has adopted the ByteDance Open Source Code of Conduct. Please check [Code of Conduct](./CODE_OF_CONDUCT.md) for more details.\n\n## 🧑‍💻 Community\n\nCome and chat with us on [Discord](https://discord.gg/7uHaPXcVyV)! The Rstack team and users are active there, and we're always looking for contributions.\n\n## 🌟 Quality\n\nRslib uses [Web Infra QoS](https://web-infra-qos.netlify.app?product=rslib\u0026metrics=bundle-size) to observe the trend of key metrics, such as bundle size, compile speed and install size.\n\n## 🙏 Credits\n\nSome of the implementations of Rslib have drawn inspiration from outstanding projects in the community. We would like to express our gratitude to them:\n\n- [esbuild](https://github.com/evanw/esbuild), created by [Evan Wallace](https://github.com/evanw).\n- [tsup](https://github.com/egoist/tsup), created by [EGOIST](https://github.com/egoist).\n\nThis Rslib website is powered by [Netlify](https://www.netlify.com/).\n\n## 📖 License\n\nRslib is licensed under the [MIT License](https://github.com/web-infra-dev/rslib/blob/main/LICENSE).\n","funding_links":[],"categories":["Resources","TypeScript"],"sub_categories":["Rstack"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-infra-dev%2Frslib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb-infra-dev%2Frslib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-infra-dev%2Frslib/lists"}