Elestia Open Source Ratings
7.6

Knip

A strong pick. 7th of 13 linters and formatters.

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.

WebsiteGitHubnpm

Scores

Overall7.6

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 7.0, likely 6.0 to 8.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, likely 7.1 to 9.1

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 many5.3

How many developers need a tool for this job?

Claude Opus 5.5: 5.0, likely 4.0 to 7.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, likely 4.5 to 6.7

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 lot8.4

How well does it do the job for those who need it?

Claude Opus 5.5: 8.0, likely 7.0 to 9.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, likely 7.5 to 9.5

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 time7.6

Will it still be a good choice in two years?

Claude Opus 5.5: 7.0, likely 6.0 to 9.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, likely 7.0 to 9.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 widely5.8

How many use it, and is that growing?

Claude Opus 5.5: 6.0, likely 5.0 to 7.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.

  • npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 120M vs 16.2M, ratio about 7.4
  • dependents: 181 repos, 110 packages; likely undercounted
  • github stars: 12.7k stars
  • bsky.app/profile/webpro.nl/post/3lfc4psnxws2i: 4,000 public repos depended on it in Jan 2025

GPT-6.2 Sol: 5.5, likely 3.9 to 6.8

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.

  • npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, and medianDownloadsRatio: 7.4× year-over-year download ratio versus a 4.1× catalog median.
  • dependents and peers dependentRepos: 181 indexed repos versus more than 1.5 million each for ESLint and Prettier.
  • github stars, bluesky posts, and peers blueskyPosts: 12,701 stars and 93 Bluesky posts, near Biome’s 98 posts. Maintainer announcements dominate the top posts.
  • knip.dev/blog/for-editors-and-agents: Maintainer reported more than 10,000 projects in December 2025.
Vouched for7.8

Who stands behind it being good?

Claude Opus 5.5: 7.0, likely 6.0 to 8.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, likely 7.3 to 9.4

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.

Safe7.2

How safe is it to depend on?

Claude Opus 5.5: 7.0, likely 6.0 to 9.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, likely 6.0 to 8.5

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

npm downloads, 4 weeks
120M ×7.4 in a year
GitHub stars
13k
Commits, 12 months
1.8k
npm version
6.47.0 Nov 2026
Versions, 12 months
115
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
None
Licence
ISC

Read on 21 November 2026 from GitHub (webpro-nl/knip), npm (knip), OSV and the OpenSSF Scorecard.

Linters and formatters

  1. 8.4Prettier
  2. 8.3ESLint
  3. 8.3Oxlint
  4. 8.2Stylelint
  5. 8.2typescript-eslint
  6. 8.0Biome
  7. 7.6Knip
  8. 7.5Oxfmt
  9. 6.5dprint
  10. 6.4bun fmt
  11. 5.7XO
  12. 5.4bun lint
  13. 3.2JavaScript Standard Style
Compare all 13 on six scores