# webpro-nl/knip

✂️  Find unused files, dependencies and exports in your JavaScript and TypeScript projects. Knip it before you ship it!

Repository: https://github.com/webpro-nl/knip
Canonical: https://ross.abutalabs.com/products/knip
Homepage: https://knip.dev
Language: TypeScript
License: ISC
License Family: permissive
Topics: dependency-analysis, lint, maintenance, typescript, unused-code, unused-exports, deadcode, dependency-management, javascript, linter
Last push: 2026-08-26T15:44:47+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 1429, "days_push": 7, "days_rel": 7, "gap_med": 1.0, "n_releases_24m": 215}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12117, forks 477 (observed 2026-08-28T04:10:51.789501+00:00)

## What it is
Knip is a CLI linter that finds unused files, dependencies, and exports in JavaScript and TypeScript projects, including monorepos. It uses framework-aware entry point analysis with 150+ plugins for tools like Next.js, Vite, Jest, and Storybook.

## Use cases
- find unused dependencies in package.json
- detect dead code and unused exports in a TypeScript project
- clean up unused files in a monorepo
- prune package.json before shipping
- find which exports are never imported
- integrate dead code detection into CI

## When to choose
- you maintain a JavaScript or TypeScript codebase and want to remove dead code
- you want framework-aware analysis with plugins for your build tools and test runners
- you work in a monorepo and need accurate entry point detection
- you want to keep package.json free of unused dependencies

## When to avoid
- your project is not JavaScript or TypeScript
- you need general-purpose linting of code style or bugs (use ESLint instead)
- you need runtime dependency vulnerability scanning (use a security auditor instead)

## Facets
- artifact type: cli-tool
- maturity: active
- function: linter, static-site-generator, developer-tools, dependency-audit, code-review
- domain: developer-tools, frontend, web-development
- platform: cli, cross-platform
- tags: unused-code, dead-code-detection, dependency-analysis, typescript, monorepo, code-hygiene, mcp-server, javascript, code-quality, nodejs

## Member repositories
- webpro-nl/knip (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:51.789501+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:14:55.470189+00:00, confidence not recorded.
  - readme: https://github.com/webpro-nl/knip (fetched 2026-08-28T04:10:51.789501+00:00, sha b0443f4bc708)
  - homepage: https://knip.dev (fetched 2026-08-29T08:12:36.471735+00:00, sha 2cc9166d3ffc)
  - site_page: https://knip.dev/overview/getting-started (fetched 2026-08-29T08:12:36.481558+00:00, sha 683e20d505c9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
