Unused-code check (Knip)
A tool that finds files, exports and dependencies nothing uses any more, so dead code gets removed.
Knip is a tool for JavaScript and TypeScript projects that finds what nothing uses any more: files, exports, types, and dependencies listed in package.json but never imported. Teams run it in CI, in a git hook or by hand before a release, so that dead code and unused packages get removed rather than pile up. It reads the project's entry points and follows the imports from there. The site counts a repo when it holds a Knip config file, or lists knip in its root package.json.
- Pro scene today: 12%, 27 of 221 pro repos
- In three months: +1 pt (4 pro repos added it, 1 removed it)
- Kept: 96%, 23 of 24 that had it 3 months ago or before
Pro 12% · Ladder 3%
In the pro repos
The 6 most starred of the 27 pro repos that have it today.
- firecrawl/firecrawl/apps/api/knip.config.ts
- n8n-io/n8n/knip.ts
- langgenius/dify/knip.config.ts
- supabase/supabase/knip.jsonc
- lobehub/lobehub/knip.ts
- withastro/astro/knip.js
By month
| Month | Pro scene |
|---|---|
| June 2025 | 3% |
| July 2025 | 4% |
| August 2025 | 4% |
| September 2025 | 4% |
| October 2025 | 5% |
| November 2025 | 5% |
| December 2025 | 6% |
| January 2026 | 6% |
| February 2026 | 6% |
| March 2026 | 6% |
| April 2026 | 9% |
| May 2026 | 9% |
| June 2026 | 10% |
| July 2026 | 10% |
| August 2026 | 11% |
| September 2026 | 11% |
| October 2026 | 13% |
| November 2026 | 12% |
| today | 12% |
Evidence
Observed in the repos only: no published study is quoted for it yet.
How it is detected
Looks for a Knip config, or knip in the root package.json. Read in repo files. How the method counts
Related practices
More in Test, the most adopted first.