# tsup: 3.5 out of 10

Keep, but not for new work. 10th of 10 in [Build tools](https://elestia.ai/opensource/build-tools/index.md).

tsup is an esbuild-based, zero-config bundler for TypeScript libraries. Its README now says it is "not actively maintained" and points users to tsdown. It still works and many projects install it, but for new work tsdown, from the Rolldown/Vite team, is the better choice.

**Best for:** Existing library repos that already build with tsup and are not ready to migrate yet.

## Scores

- **Overall: 3.5** (likely 2.5 to 4.6)
  - Claude Opus 5.5 (3.0): tsup still builds libraries well and many projects use it. Its maintainer has officially stepped back and recommends tsdown, which does the same job with better ESM and type output and has an active team. Keep tsup where it already runs, but start new library projects with tsdown.
  - GPT-6.2 Sol (4.0): Keeping a working tsup build is reasonable, especially if it relies on esbuild plugins. For new TypeScript libraries, tsdown is the stronger choice given tsup's reduced maintenance and declaration build problems. Vite is the stronger choice for front-end apps that need a dev server. The October release and the existing user base leave room for tsup to remain useful in its niche.
- **Needed by many: 3.7** (likely 2.7 to 4.8)
  - Claude Opus 5.5 (3.5): tsup does not bundle or serve apps. It builds TypeScript libraries and CLIs for publishing. That job matters to package and monorepo authors, which is a clear niche within the build tools category.
  - GPT-6.2 Sol (3.9): Bundling published libraries and CLIs is a clear niche across frameworks. A tool such as Vite serves a wider audience by handling app development and production builds. The share of teams that need a separate library bundler is hard to pin down.
- **Helps a lot: 5.5** (likely 4.4 to 6.5)
  - Claude Opus 5.5 (4.5): JavaScript builds are fast and easy to set up. Type generation is the weak spot: it is slow, marked experimental, and it breaks with new TypeScript versions. ESM output also needs workarounds. tsdown does the same job with better ESM and dts support, and it offers a migration tool.
  - GPT-6.2 Sol (6.4): The simple CLI and typed config make routine ESM and CommonJS builds easy to set up, including with a coding agent. Version 9 fixed the TypeScript 6 baseUrl error, but native TypeScript 7.0 still complicates declaration builds and a v9 user reported running out of memory with dts.resolve. Independent timings cover specific v8 workloads, leaving v9 performance across larger builds uncertain.
- **Holds up over time: 2.5** (likely 1.4 to 3.5)
  - Claude Opus 5.5 (2.0): The README says the project is not actively maintained and directs users to tsdown. Last year saw 14 commits and one release, v9.0.0, which was mostly upkeep. The ecosystem is moving to tsdown, and tsdown's lead developer was a major tsup contributor. Occasional patch releases keep the score above zero.
  - GPT-6.2 Sol (2.9): The README sends users to tsdown, and tsup recorded 14 commits and one release in a year, far below the pace of the listed peers. October's v9 release shows fixes can still ship, though the TypeScript 6 fix took months and the upgrade raised the Node requirement. The pace of future releases and who will sustain them remain unclear.
- **Used widely: 5.8** (likely 4.8 to 6.9)
  - Claude Opus 5.5 (6.0): Downloads were about 51M over the last 4 weeks, against 9.8M a year earlier. That ratio of 5.2 is above the 4.1 median. 23k dependent packages and 9.5k dependent repos show wide real use. Most of it is installed codebases and templates rather than new choices, and projects are migrating away, so the trend will likely turn.
  - GPT-6.2 Sol (5.5): Ecosyste.ms found 9,462 dependent repositories and 23,096 dependent packages, a substantial base for a library bundler and well below Vite's tracked repo count. Four-week downloads rose from 9.8 million to 51.0 million, or 5.2× against the catalog median of 4.1×. Most installs in npm's version breakdown still went to v8, and repeated CI installs leave the pace of new adoption uncertain.
- **Vouched for: 5.0** (likely 4.0 to 6.4)
  - Claude Opus 5.5 (4.0): Many open-source libraries have used it for years, and the State of JS build tools survey lists it. Current independent write-ups mostly describe leaving it for tsdown, and its own maintainer recommends doing so. Endorsements are old and fading.
  - GPT-6.2 Sol (6.0): State of JavaScript 2025 reported 85% satisfaction, and shadcn still uses v8 to build its CLI. The data-cap maintainers report shipping with v9 and verifying their public API. Redux Toolkit has moved to tsdown, and most independent measurements cover v8, so endorsement of the current release is thinner.
- **Safe: 5.6** (likely 4.5 to 6.7)
  - Claude Opus 5.5 (5.5): Only one low-severity DOM clobbering advisory is on record, and it was fixed in 8.5.1. The license is MIT. The OpenSSF Scorecard is a weak 4.9, with no security policy and poor token permissions and code review. There are 17 dependencies and essentially one releaser. With no active maintenance, future issues may be fixed slowly. It is a dev dependency, which limits runtime exposure.
  - GPT-6.2 Sol (5.6): tsup has a permissive MIT license and 17 direct dependencies. Its only listed advisory is a low-severity DOM clobbering issue, and v8.5.1 shipped the fix about eight months after disclosure. Version 9 has a verified Git tag and a staged CI publish workflow that references a mutable branch. Weak Scorecard results for token permissions and review, a missing security policy, and uncertainty about who can approve releases leave meaningful supply-chain risk.

## Good

- You can build a library to ESM and CJS with almost no configuration.
- esbuild makes JavaScript output builds very fast.
- Many tutorials, templates and existing packages use it, so AI agents write correct configs for it.
- It is MIT-licensed and has only one low-severity advisory on record.

## Bad

- The README says it is not actively maintained and recommends migrating to tsdown.
- Type declaration output (dts / experimentalDts) is slow and fragile, and it breaks with newer TypeScript versions (baseUrl under TS 6, open questions about TS 7).
- ESM-first output has gaps, such as missing file extensions, that need plugins or workarounds.
- Releases are rare (one release and 14 commits in the last year), and 354 issues are open.

## The numbers

- Downloads, 4 weeks: 51M
- In a year: ×5.2
- GitHub stars: 11k
- Commits, 12 months: 14
- Last npm release: Oct 2026
- Advisories, 24 months: 1
- Licence: MIT
- GitHub: https://github.com/egoist/tsup
- npm: https://www.npmjs.com/package/tsup

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
