# Knip: 7.6 out of 10

A strong pick. 7th of 13 in [Linters and formatters](https://elestia.ai/opensource/linters-formatters/index.md).

Knip is a project-wide checker that finds unused files, exports and dependencies in JavaScript and TypeScript projects. It is the best tool for that job, it is very actively maintained, and its use is growing. It works alongside a linter such as ESLint, Biome or Oxlint and does not replace one.

**Best for:** Teams with medium or large TypeScript codebases or monorepos that want CI to catch dead code and unused or unlisted dependencies.

## Scores

- **Overall: 7.6** (likely 6.6 to 8.6)
  - Claude Opus 5.5 (7.0): Knip is clearly the best pick for finding dead code and dependency hygiene. It is maintained very actively and adoption is growing fast. It does not do the category's core job of linting and formatting, so it ranks below ESLint, Biome or Oxlint as a primary tool. Within its job, faster tools like rev-dep do not yet match its plugin coverage.
  - GPT-6.2 Sol (8.2): Knip is a strong choice when a new project needs to catch abandoned files, exports, and dependencies in CI. Frequent releases and ongoing use in TanStack Query and Prettier support choosing it today. ESLint, Biome, and Prettier cover the broader checks most projects use daily. Knip’s value depends on how well it recognizes the project’s entry points.
- **Needed by many: 5.3** (likely 4.3 to 6.9)
  - Claude Opus 5.5 (5.0): Many TypeScript projects build up dead code and stale dependencies, but most teams treat this check as optional. It covers only one narrow part of the category's job. It does not check style or find bugs inside a file. The need grows with codebase size and monorepos.
  - GPT-6.2 Sol (5.6): Knip works across many JavaScript and TypeScript frameworks. Its dead-code checks are most valuable once a project has enough modules or dependencies for unused code to be hard to spot. State of JavaScript shows broad use of ESLint and Prettier, while the share of developers who need a separate cleanup tool is less clear.
- **Helps a lot: 8.4** (likely 7.3 to 9.3)
  - Claude Opus 5.5 (8.0): It is the most complete tool for finding unused files, exports and dependencies. It has a whole-project graph, about 150 plugins, monorepo support, an editor extension and an MCP server. v6 made it much faster. False positives in complex monorepos and the partial --fix keep it below the top score.
  - GPT-6.2 Sol (8.7): Knip 6.47.0 traces imports across workspaces and reports unused files, exports, and dependencies. Typed configuration, trace output, and an MCP server help developers and coding agents set it up and investigate findings. Missing entry points and dynamic imports can cause false positives. Rev-dep ran faster in its own large Next.js benchmark, and both speed and accuracy depend on the repository.
- **Holds up over time: 7.6** (likely 6.5 to 9.1)
  - Claude Opus 5.5 (7.0): Activity is very high: 1,829 commits and 119 releases in the last year, and few open issues. Vercel now sponsors the work, and 351 people have contributed. Most of the work still rests on one lead maintainer. v6 did make breaking changes, but they were moderate and well documented.
  - GPT-6.2 Sol (8.2): The repository logged 1,829 commits and 119 releases in a year, and the latest release includes fixes from several contributors. Mocha helps fund the project, and a reported Vite plugin gap was fixed the day it was filed. Releases still center on one lead maintainer, and the removal of the unused class-member check in v6 disrupted some users’ workflows.
- **Used widely: 5.8** (likely 4.5 to 6.9)
  - Claude Opus 5.5 (6.0): Downloads grew from 16.2M to 120M per 4 weeks. That is a ratio of about 7.4, well above the 4.1 median. CI runs inflate the totals. ecosyste.ms counts only 181 dependent repos, far below the main linters, though the maintainer reported over 4,000 public dependent repos in early 2025. Large projects are adopting it, so it is likely chosen by tens of thousands of projects and growing.
  - GPT-6.2 Sol (5.5): Four-week downloads grew from 16.2 million to 120.2 million year over year, a 7.4× increase against the catalog median of 4.1×. Repeated CI installs inflate those totals. Ecosyste.ms counts 181 repositories and 110 packages, far below ESLint and Prettier in that index, while Knip’s maintainer reported more than 10,000 projects in December 2025. The different counts leave direct adoption hard to pin down.
- **Vouched for: 7.8** (likely 6.7 to 8.7)
  - Claude Opus 5.5 (7.0): Vercel sponsors it. Well-known projects such as Astro, TanStack Query, Sentry, Nuxt CLI, Ghost and UI5 run it. Smashing Magazine, LogRocket and DEV have independent write-ups. No developer survey measures it, and most write-ups are tutorials, not benchmarks.
  - GPT-6.2 Sol (8.5): TanStack Query runs Knip in CI, and Prettier includes it in its lint checks. Sentry reported removing about 28,000 lines of dead code and continued updating Knip in 2026. Mocha uses it to reduce what it ships and sponsors the project. These examples show sustained use, though there is little survey evidence on satisfaction.
- **Safe: 7.2** (likely 6.0 to 8.8)
  - Claude Opus 5.5 (7.0): There are no known advisories, the ISC licence is permissive, and v6 cut its dependencies to 11 with help from the e18e community. It is a dev-only tool, but it reads and can import project config files. There is no Scorecard data, and releases probably depend on few publishers, so the range stays wide.
  - GPT-6.2 Sol (7.3): Knip has a permissive ISC license, and OSV lists zero advisories for the package itself. It has 11 direct dependencies and can execute project configuration files during scans. The latest Git release commit is signed, and recent npm metadata lists one maintainer. GitHub lists no security policy, and the available evidence leaves npm build provenance and OpenSSF checks unverified.

## Good

- It builds a module graph of the whole project, so it finds unused files and exports that single-file linters cannot see.
- Over 150 plugins read the configs of common tools, so it often works with little setup.
- Version 6 moved to oxc-parser and oxc-resolver and became 2-4x faster in the author's tests.
- Releases are very active and issues get handled fast: about 115 versions in the last year and only 17 open issues against 1,365 closed.

## Bad

- Monorepos, path aliases, barrel files and generated code can cause false positives that need entry or ignore settings.
- It does not lint code style or bugs inside files, so it is a second tool to run next to a real linter.
- One lead maintainer does most of the work, even with sponsorship and many contributors.
- The --fix option covers only part of what it reports, so cleanups still need manual review.

## The numbers

- Downloads, 4 weeks: 120M
- In a year: ×7.4
- GitHub stars: 13k
- Commits, 12 months: 1.8k
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: ISC
- GitHub: https://github.com/webpro-nl/knip
- npm: https://www.npmjs.com/package/knip

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.
