Main Menu
  • Tools
  • Developers
  • Topics
  • Discussions
  • Communities
  • News
  • Blogs
  • Builds
  • Contests
  • Compare
  • Arena
Create
    EveryDev.ai
    Sign inSubscribe
    Home
    Tools

    2,161+ AI tools

    • New
    • Trending
    • Featured
    • Compare
    • Arena
    Categories
    • Agents1228
    • Coding1045
    • Infrastructure455
    • Marketing414
    • Design374
    • Projects340
    • Analytics319
    • Research306
    • Testing200
    • Data171
    • Integration169
    • Security169
    • MCP164
    • Learning146
    • Communication131
    • Prompts122
    • Extensions120
    • Commerce116
    • Voice107
    • DevOps92
    • Web73
    • Finance19
    1. Home
    2. Tools
    3. Knip
    Knip icon

    Knip

    Linters & Formatters
    Featured

    Knip finds and fixes unused dependencies, exports, and files in JavaScript and TypeScript projects.

    Visit Website

    At a Glance

    Pricing
    Open Source

    Engagement

    Available On

    CLI
    macOS
    Windows
    Linux
    VS Code

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    Linters & FormattersCode IntelligenceBug Detection

    Alternatives

    RuffUltracitecomplexipy
    Developer
    Lars KappertRandstad / Utrecht area, NetherlandsEst. 2011

    Listed May 2026

    About Knip

    Knip is an open-source static analysis tool that declutters JavaScript and TypeScript projects by finding unused dependencies, unused exports, and unused files. Less code and fewer dependencies lead to improved performance, less maintenance, and easier refactorings.

    Knip works by building a dependency graph of your codebase starting from fine-grained entry points based on the actual frameworks and tooling in use. This results in accurate, actionable findings rather than the false positives common in older dead-code tools.

    What it detects

    • Unused files
    • Unused dependencies and devDependencies in package.json
    • Unlisted dependencies (used but not declared)
    • Unused exports and exported types
    • Unused enum members and class members
    • Duplicate exports
    • Configuration hints to tighten your setup

    Plugins for the ecosystem

    Knip ships with around 150 plugins covering tools and frameworks like Astro, Cypress, ESLint, Jest, GitHub Actions, Next.js, Nx, Remix, Storybook, Svelte, Vite, Vitest, Webpack, and many more. Plugins teach Knip about each tool's entry points and config files so detection stays accurate in real-world projects, including monorepos.

    Editor and agent support

    Knip publishes a VS Code extension (also on Open VSX) and an MCP server (@knip/mcp) so coding agents can run Knip, retrieve documentation, and generate a knip.json configuration through guided workflows. A language server package (@knip/language-server) is also available.

    Installation

    Knip v6 requires Node.js v20.19.0 or newer (or Bun). The recommended install uses the create-config script:

    npm init @knip/config
    

    Then run:

    npm run knip
    

    It can also be run without installation via npx knip, pnpm dlx knip, or bunx knip.

    Pricing

    Knip is free and open-source under the ISC License. The project is funded through GitHub Sponsors and Open Collective.

    Why teams use it

    Knip is used by teams at Vercel, Shopify, TanStack, Backstage, Sentry, and thousands of other projects. It's commonly run locally and in CI to keep codebases clean as they evolve.

    Knip - 1

    Community Discussions

    Be the first to start a conversation about Knip

    Share your experience with Knip, ask questions, or help others learn from your insights.

    Pricing

    Open Source

    Capabilities

    Key Features

    • Finds unused files in JavaScript and TypeScript projects
    • Detects unused dependencies and devDependencies in package.json
    • Flags unlisted dependencies that are imported but not declared
    • Identifies unused exports, exported types, enum members, and class members
    • Around 150 plugins for frameworks and tools (Next.js, Vite, Jest, ESLint, Astro, Storybook, and more)
    • Native monorepo and workspace support
    • Production mode for stricter checks against shipped code
    • Auto-fix to remove unused exports and dependencies
    • Configurable rules and filters per issue type
    • Multiple reporters (default, JSON, Markdown, JUnit, custom)
    • Compiler support for non-standard files (Astro, MDX, Svelte, Vue)
    • VS Code extension and Open VSX extension
    • MCP server (@knip/mcp) for AI coding agents
    • Language server (@knip/language-server) for editor integrations
    • CI-friendly exit codes for blocking on unused code
    • Browser-based playground to try without install

    Integrations

    Next.js
    Vite
    Vitest
    Webpack
    Astro
    Remix
    Svelte
    Nx
    Storybook
    Jest
    Cypress
    ESLint
    GitHub Actions
    TypeScript
    VS Code
    Open VSX
    Bun
    pnpm
    Yarn
    MCP (Model Context Protocol)

    Demo Video

    Knip Demo Video
    Watch on YouTube

    Reviews & Ratings

    No ratings yet

    Be the first to rate Knip and help others make informed decisions.

    Developer

    Lars Kappert

    Lars Kappert is an independent frontend developer, architect, and automation engineer based in the Netherlands. He has worked with companies including Bol, Eneco, RTL Nederland (Videoland), Rabobank, PLUS Retail, and Schiphol, and is the creator of open-source projects Knip and Release It!.

    Founded 2011
    Randstad / Utrecht area, Netherlands
    1 employees

    Used by

    Microsoft
    Grafana
    SourceGraph
    KPN
    +1 more
    Read more about Lars Kappert
    WebsiteGitHubLinkedIn
    1 tool in directory

    Similar Tools

    Ruff icon

    Ruff

    An extremely fast Python linter and code formatter written in Rust, designed as a drop-in replacement for Flake8, isort, and Black.

    Ultracite icon

    Ultracite

    An AI-ready, zero-configuration Biome preset that formats and lints JavaScript/TypeScript to enforce consistent, type-safe code and integrates with editors and AI agents.

    complexipy icon

    complexipy

    A Python library and CLI tool to calculate cognitive complexity of Python files and analyze code maintainability.

    Browse all tools

    Related Topics

    Linters & Formatters

    Automated code quality tools that check style, detect errors, and format code consistently across projects.

    6 tools

    Code Intelligence

    AI tools that analyze, generate, and transform code through natural language understanding and programming language comprehension.

    55 tools

    Bug Detection

    Intelligent tools that leverage AI to identify, classify, and prioritize software defects and vulnerabilities before they reach production environments.

    34 tools
    Browse all topics
    Back to all tools
    Explore AI Tools
    • AI Coding Assistants
    • Agent Frameworks
    • MCP Servers
    • AI Prompt Tools
    • Vibe Coding Tools
    • AI Design Tools
    • AI Database Tools
    • AI Website Builders
    • AI Testing Tools
    • LLM Evaluations
    Follow Us
    • X / Twitter
    • LinkedIn
    • Reddit
    • Discord
    • Threads
    • Bluesky
    • Mastodon
    • YouTube
    • GitHub
    • Instagram
    Get Started
    • About
    • Editorial Standards
    • Corrections & Disclosures
    • Community Guidelines
    • Advertise
    • Contact Us
    • Newsletter
    • Submit a Tool
    • Start a Discussion
    • Write A Blog
    • Share A Build
    • Terms of Service
    • Privacy Policy
    Explore with AI
    • ChatGPT
    • Gemini
    • Claude
    • Grok
    • Perplexity
    Agent Experience
    • llms.txt
    Theme
    With AI, Everyone is a Dev. EveryDev.ai © 2026
    Discussions