Terser
JavaScript parser and ES6+ minifier/beautifier toolkit for production optimization.
Build tools and bundlers npm BSD-2-Clause
Used in agent projects
70
0.6% of 12,697 public repos built with AI coding agents
Rank in build tools and bundlers
#29 of 81
by use in those projects
Downloads
66M
npm, last 7 days, terser
GitHub stars
9,347
last push Oct 5, 2026
How Terser is used
Terser is a dependency in 70 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.6%), #29 of 81 in build tools and bundlers. The most used alternative there is Vite. Projects that use it most often also use Vite (92.9%), Phaser (34.3%), React Router (30.0%).
Often used with Terser
| Vite | 92.9% of Terser projects · 4.1× more than average |
|---|---|
| Phaser | 34.3% of Terser projects · 8.4× more than average |
| React Router | 30.0% of Terser projects · 3.9× more than average |
| Tailwind CSS | 54.3% of Terser projects · 1.6× more than average |
| ESLint | 55.7% of Terser projects · 1.5× more than average |
| TypeScript | 68.6% of Terser projects |
| concurrently | 20.0% of Terser projects · 4.4× more than average |
| jsdom | 20.0% of Terser projects · 3.7× more than average |
By coding agent
| Claude Code | 0.8% of projects set up for it |
|---|---|
| Cursor | 0.6% of projects set up for it |
| GitHub Copilot | 0.4% of projects set up for it |
| Gemini CLI | 1.1% of projects set up for it |
| OpenAI Codex | 1.1% of projects set up for it |
Share of public repos configured for each agent that list Terser as a dependency.
Install
| Package | npm install terser |
|---|---|
| Main stacks | TypeScript / JavaScript (63), Python (4), PHP (2), React Native / Expo (1) |
| Example projects | NG-ZORRO/ng-zorro-antd, 1600822305/AetherLink, linuxscreen/duo-translator, bobmatnyc/claude-mpm, talk2MeGooseman/twitch-interactive-overlay |
Alternatives to Terser
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Vite npm Fast native-ESM powered web development build tool and dev server. |
2,897 (22.8%) | 194M | 83.3K | MIT |
| Babel (JavaScript) npm JavaScript compiler for transforming modern JavaScript to compatible code. |
484 (3.8%) | 187M | 44.1K | MIT |
| Turborepo npm High-performance build system for monorepos with task parallelization. |
399 (3.1%) | 29.5M | 31.2K | MIT |
| esbuild npm Extremely fast JavaScript and CSS bundler and minifier written in Go. |
342 (2.7%) | 3M | 40.1K | MIT |
| webpack npm Module bundler that packages JavaScript, assets and dependencies for browser deployment. |
255 (2.0%) | 54.9M | 66.1K | MIT |
| react-scripts npm Build configuration and scripts for Create React App zero-configuration setup. |
231 (1.8%) | 2.4M | 103K | MIT |
| React Compiler Babel Plugin npm Babel plugin for React Compiler that optimizes React component rendering. |
202 (1.6%) | 17.8M | 251K | MIT |
| webpack CLI npm Command-line interface for webpack bundler and related build tools. |
201 (1.6%) | 10.4M | 2,617 | MIT |