# web-infra-dev/rslib

Create JavaScript libraries in a simple and intuitive way.

Repository: https://github.com/web-infra-dev/rslib
Canonical: https://ross.abutalabs.com/products/rslib
Homepage: https://rslib.rs
Language: TypeScript
License: MIT
License Family: permissive
Topics: build-tool, library, rsbuild, rspack, rslib, typescript, rstack, bundler, frontend, javascript, webpack
Last push: 2026-09-02T13:34:54+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 100, release rhythm 79, longevity 65
- inputs: {"age_days": 912, "days_push": 0, "days_rel": 61, "gap_med": 6, "n_releases_24m": 106}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1002, forks 67 (observed 2026-09-03T02:15:20.473298+00:00)

## What it is
Rslib is a library development tool built on Rsbuild and Rspack for creating JavaScript libraries and UI component libraries. It provides zero-config setup, Rust-based build performance, and flexible output formats for publishing packages.

## Use cases
- build a javascript library with zero configuration
- create and publish a ui component library to npm
- bundle a typescript library into multiple output formats
- migrate a webpack-based library build to a faster rust bundler
- generate esm and cjs outputs for different downstream consumers

## When to choose
- you are developing a JavaScript or TypeScript library or component library and want fast, out-of-the-box builds
- you want webpack/Rspack plugin compatibility and flexible output formats
- build speed is a priority and you prefer Rust-based tooling

## When to avoid
- you are building an application rather than a publishable library
- you need a bundler ecosystem outside the webpack/Rspack family
- you require a fully stable 1.0 release and cannot accept 0.x or pre-1.0 tooling

## Facets
- artifact type: cli-tool
- maturity: active
- function: build-tool, developer-tools, cli
- domain: frontend, web-development, developer-tools
- platform: cli, cross-platform
- tags: rspack, rsbuild, javascript-library-development, ui-component-library, typescript, bundler, npm-package-publishing, build-tool, nodejs

## Member repositories
- web-infra-dev/rslib (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:20.473298+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:25:21.835775+00:00, confidence not recorded.
  - readme: https://github.com/web-infra-dev/rslib (fetched 2026-09-03T02:15:20.473298+00:00, sha 144a664a7877)
  - homepage: https://rslib.rs (fetched 2026-08-29T13:14:09.994247+00:00, sha 1e593070b50b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
