# huozhi/bunchee

Zero config bundler for npm packages

Repository: https://github.com/huozhi/bunchee
Canonical: https://ross.abutalabs.com/products/bunchee
Homepage: https://bunchee-it.vercel.app
Language: TypeScript
License Family: other
Topics: bundler, esmodule, commonjs, javascript, typescript, jsx, react, minify, rsc, server-components
Last push: 2026-08-18T00:17:22+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 96, longevity 100
- inputs: {"age_days": 2873, "days_push": 16, "days_rel": 25, "gap_med": 8.5, "n_releases_24m": 37}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1405, forks 38 (observed 2026-08-28T04:04:38.097131+00:00)

## What it is
bunchee is a zero-configuration bundler for JavaScript/TypeScript npm packages, powered by Rollup and SWC. It uses the package.json `exports` field as the single source of truth to build ESM, CJS, or dual-format output with auto-generated TypeScript declarations.

## Use cases
- bundle an npm package with zero config
- build a TypeScript library with ESM and CJS output
- generate TypeScript declaration files automatically
- build a React component library
- package a monorepo shared library
- build a Node.js CLI tool package
- handle use client and use server directives in React Server Components

## When to choose
- you want package.json exports to drive the build with no bundler config
- you need dual ESM/CJS output or wildcard subpath exports
- you're building npm packages, component libraries, or monorepo workspaces
- you need RSC directive handling and native .node addon support

## When to avoid
- you need highly customized bundler pipelines or exotic plugins
- you're bundling a full web application rather than a library package
- you need output targets older than ES2022 without extra configuration

## Facets
- artifact type: cli-tool
- maturity: active
- function: build-tool, cli, developer-tools
- domain: developer-tools, web-development, frontend
- platform: cli, cross-platform
- tags: bundler, npm-packages, esm, commonjs, typescript, rollup, swc, zero-config, monorepo, react-server-components, tree-shaking, dts-generation, javascript-packages, nodejs

## Member repositories
- huozhi/bunchee (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:38.097131+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-30T04:38:47.090525+00:00, confidence not recorded.
  - readme: https://github.com/huozhi/bunchee (fetched 2026-08-28T04:04:38.097131+00:00, sha 59e5ce1896bc)
  - homepage: https://bunchee-it.vercel.app (fetched 2026-08-29T11:52:39.077043+00:00, sha 559f91d11ead)
- Data as of 2026-08-30T08:39:29.467469+00:00.
