Ross ROSS = Recommend OSS · open-source software intelligence for agents

line/tsr

TypeScript Remove (tsr) is a utility that removes unused code from TypeScript projects – It's like tree shaking, but for source files observed · 2026-08-28

github.com/line/tsr · homepage · TypeScript · Apache-2.0 (permissive) · archived observed · 2026-08-28

Health v2 · maintenance only

10/100

  • Activity 48
  • Release rhythm 40
  • Longevity 77

Flags: archived

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 1
  • age_days: 1085
  • days_rel: 602
  • days_push: 315
  • n_releases_24m: 22

Full methodology

Adoption not part of the score

1285 stars · 21 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

TypeScript Remove (tsr) is an npm-installed CLI utility that statically analyzes TypeScript projects to find unused files, exports, and declarations, then can automatically rewrite source files to remove them. It works like tree shaking but at the source level, using only the TypeScript compiler and a valid tsconfig.json with no extra configuration.

Use cases

  • find unused exports in a TypeScript project
  • remove dead code from TypeScript codebase automatically
  • delete unused source files that nothing imports
  • detect unused code being added in CI
  • clean up unused imports after refactoring
  • tree shake source files instead of bundles

When to choose

  • You want automatic removal of unused code, not just detection, in a TypeScript project
  • You want a zero-config tool that only requires a valid tsconfig.json and an entrypoint pattern
  • You want to gate merges on unused-code checks in CI

When to avoid

  • The project has explicitly ended and is no longer maintained; the README recommends Knip for similar functionality
  • Your project is plain JavaScript without a tsconfig.json
  • You need runtime tree shaking of bundles rather than source-file cleanup

Facets

cli-tool · maturity abandoned

cli developer-tools linter developer-tools programming-languages cli cross-platform typescript static-analysis dead-code-elimination unused-exports code-cleanup tree-shaking tsconfig ci deprecated command-line nodejs

2 sources

Member repositories

RepositoryRoleHealth v2
line/tsrmain10

For agents

markdown · JSON · MCP: product_card(name="line/tsr")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem