MCPcopy Index your code
hub / github.com/webpro-nl/knip

github.com/webpro-nl/knip @6.24.0

repository ↗ · DeepWiki ↗ · release 6.24.0 ↗ · + Follow
2,508 symbols 8,605 edges 2,847 files 88 documented · 4% 64 cross-repo links updated 1d agoknip@6.24.0 · 2026-07-02★ 11,6697 open issues
README

Knip

NPM Version NPM Downloads GitHub Repo stars

Knip finds and fixes unused dependencies, exports and files in your JavaScript and TypeScript projects. Less code and dependencies lead to improved performance, less maintenance and easier refactorings.

Contributors

Special thanks to the wonderful people who have contributed to Knip!

Knip

/'knɪp/ means "(to) cut" and is pronounced with a hard "K" 🇳🇱

License

Knip is free and open-source software licensed under the ISC License.

Parts of Knip have been inspired by and/or partially copy code from the following projects:

Extension points exported contracts — how you extend this code

AngularApplicationOptionsSchema (Interface)
* Generates a new basic application definition in the "projects" subfolder of the workspace.
packages/knip/src/plugins/angular/types.ts
DirectiveNode (Interface)
(no doc)
packages/docs/remark/transformDirectives.ts
AngularClassOptionsSchema (Interface)
* Creates a new, generic class definition in the given project.
packages/knip/src/plugins/angular/types.ts
LinkNode (Interface)
(no doc)
packages/docs/remark/fixInternalLinks.ts
AngularComponentOptionsSchema (Interface)
* Creates a new, generic component definition in the given project.
packages/knip/src/plugins/angular/types.ts
ChartData (Interface)
(no doc)
packages/docs/src/components/SponsorsChart.params.ts
AngularDirectiveOptionsSchema (Interface)
* Creates a new, generic directive definition in the given project.
packages/knip/src/plugins/angular/types.ts
Page (Interface)
(no doc)
packages/docs/src/pages/sitemap.txt.ts

Core symbols most depended-on inside this repo

createOptions
called by 625
packages/knip/src/util/create-options.ts
resolve
called by 617
packages/knip/test/helpers/resolve.ts
main
called by 617
packages/knip/src/cli.ts
toBinary
called by 293
packages/knip/src/util/input.ts
set
called by 229
packages/knip/src/plugins/karma/helpers.ts
hasDependency
called by 158
packages/knip/src/util/plugin.ts
toDependency
called by 116
packages/knip/src/util/input.ts
toDeferResolve
called by 96
packages/knip/src/util/input.ts

Shape

Function 1,650
Method 376
Interface 239
Class 212
Enum 31

Languages

TypeScript100%

Modules by API surface

packages/knip/src/plugins/eleventy/helpers.ts86 symbols
packages/knip/src/typescript/visitors/walk.ts77 symbols
packages/knip/src/plugins/angular/types.ts37 symbols
packages/vscode-knip/src/index.js35 symbols
packages/knip/src/ConfigurationChief.ts34 symbols
packages/knip/src/WorkspaceWorker.ts31 symbols
packages/knip/src/util/input.ts29 symbols
packages/knip/src/DependencyDeputy.ts29 symbols
packages/knip/fixtures/types/type-visibility/src/lib.ts25 symbols
packages/knip/src/ProjectPrincipal.ts22 symbols
packages/knip/src/IssueCollector.ts22 symbols
packages/knip/src/util/Performance.ts19 symbols

Dependencies from manifests, versioned

@11ty/eleventy* · 1×
@11ty/eleventy-navigation* · 1×
@11ty/eleventy-plugin-syntaxhighlight* · 1×
@acmecorp/tailwind-base* · 1×
@actions/core* · 1×
@angular-builders/custom-esbuild* · 1×
@angular-devkit/build-angular* · 1×
@angular/build* · 1×
@angular/cli* · 1×
@angular/ssr* · 1×

For agents

$ claude mcp add knip \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact