# google/closure-compiler

A JavaScript checker and optimizer.

Repository: https://github.com/google/closure-compiler
Canonical: https://ross.abutalabs.com/products/closure-compiler
Homepage: https://developers.google.com/closure/compiler/
Language: JavaScript
License: Apache-2.0
License Family: permissive
Topics: closure-compiler, javascript, optimization, typechecking
Last push: 2026-08-26T20:49:55+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 4522, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7676, forks 1181 (observed 2026-08-28T04:10:02.347071+00:00)

## What it is
Google Closure Compiler is a JavaScript-to-JavaScript compiler that parses, analyzes, and optimizes code by removing dead code, rewriting, and minimizing it. It also performs syntax, variable reference, and type checking, warning about common JavaScript pitfalls.

## Use cases
- minify and optimize javascript bundles
- type check javascript with jsdoc annotations
- remove dead code from large javascript codebases
- make javascript download and run faster
- statically analyze javascript for common pitfalls
- compile javascript in advanced optimization mode

## When to choose
- your codebase is written specifically for closure-compiler's advanced mode
- you need the most aggressive whole-program minification and dead code elimination
- you want JSDoc-based type checking of JavaScript
- you maintain a legacy Closure Tools-based project

## When to avoid
- you have arbitrary third-party JavaScript not written for closure-compiler
- you want a modern bundler integrated with the broader JS ecosystem
- you rely on dynamic property access or hidden globals that the optimizer cannot see
- you only need simple minification - other tools are comparable and easier to use

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: compiler, linter, type-system, build-tool
- domain: web-development, frontend, developer-tools
- platform: jvm, cli, cross-platform
- tags: javascript-optimizer, minification, dead-code-elimination, static-analysis, closure-compiler, advanced-optimization, javascript, nodejs

## Member repositories
- google/closure-compiler (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:02.347071+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-29T17:36:02.914883+00:00, confidence not recorded.
  - readme: https://github.com/google/closure-compiler (fetched 2026-08-28T04:10:02.347071+00:00, sha ed8c9a08b786)
  - homepage: https://developers.google.com/closure/compiler/ (fetched 2026-08-29T08:31:53.400342+00:00, sha 32a480c078a5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
