aicoolies logo
Knip logo

Knip

Find unused files, dependencies, and exports in JavaScript and TypeScript projects

Share
open-sourceOpen Source
Visit Website →

Knip is an open-source CLI tool that detects unused files, dependencies, devDependencies, and exports in JavaScript and TypeScript codebases. It analyzes the full dependency graph to identify dead code that accumulates over time — especially relevant for AI-generated codebases where unused artifacts pile up faster than manual cleanup can handle. With over 10,800 GitHub stars, it has become a standard code hygiene tool in the JS/TS ecosystem.

Knip is a dead code detection tool built specifically for the JavaScript and TypeScript ecosystem. It performs whole-project analysis to find files that no other file imports, dependencies listed in package.json that no code actually uses, devDependencies that build scripts and test configs never reference, and named exports that nothing consumes. Unlike linters that check individual files in isolation, Knip builds a complete dependency graph of the entire project to make globally informed decisions about what is truly unused.

The tool understands the configuration formats of major frameworks and build tools including Next.js, Vite, Jest, ESLint, TypeScript, Storybook, and dozens of others. This means it recognizes that a dependency referenced only in a jest.config.ts is a used devDependency, not an unused one. The plugin system can be extended for custom configuration formats. Output formats include human-readable summaries, JSON for CI integration, and fix mode that can automatically remove identified dead code.

Knip has gained particular relevance in the era of AI-assisted development where coding agents generate code rapidly but rarely clean up after themselves. The accumulation of unused files, orphaned exports, and phantom dependencies degrades build times, increases bundle sizes, and creates confusion for both human and AI developers navigating the codebase. With over 10,800 GitHub stars and 100+ contributors, Knip is MIT licensed and has become an essential part of modern JavaScript project maintenance.

Pricing

Free and open-source under MIT license

Platforms

Any platform with Node.js (CLI tool)

Categories

Tags

Use Cases

Alternatives

Related Tools

Safari MCP Server

Apple's Safari-native MCP server for web debugging agents

Safari MCP Server is Apple's safaridriver-based MCP server in Safari Technology Preview, giving compatible coding agents local access to Safari page content, console logs, network requests, screenshots, JavaScript evaluation, interactions, viewport controls, and accessibility/performance checks.

freeTelemetry
rampart

Rampart

Microsoft’s pytest-native red teaming framework for turning AI agent safety findings into CI tests.

RAMPART is an open-source Microsoft framework for safety and security testing of agentic AI applications. It brings red-team findings into a pytest-native workflow so teams can turn prompt injection, unsafe tool use, and behavioral boundary failures into repeatable regression tests. The strongest aicoolies angle is developer workflow: RAMPART makes agent safety part of CI/CD instead of a one-off security review.

open-sourceOpen Source
Requestly logo

Requestly

One tool for intercepting, mocking, and replaying HTTP — acquired by BrowserStack

Requestly is a BrowserStack-backed API client, HTTP interceptor, mock server, and session replay tool for frontend and QA teams. Its current product is commercial/API-client led, while the legacy interceptor/open-source code is AGPLv3. The free plan covers individual workflows, and Pro lists at $12/user/month monthly or $9/user/month annually for collaborative QA and frontend debugging teams.

freemium
Browserbase logo

Browserbase

Headless browser cloud built for AI agents

Browserbase is cloud infrastructure that runs headless Chromium browsers on demand for AI agents and automation workflows, exposing Playwright, Puppeteer, and Selenium endpoints with built-in session replay, residential proxies, CAPTCHA solving, and stealth fingerprints. It also hosts Stagehand and a Model Gateway, letting teams build browser-using agents without maintaining their own fleet of Kubernetes-managed Chromium instances.

freemium
Anchor Browser logo

Anchor Browser

Cloud browser infrastructure for AI agents

Anchor Browser provides secure cloud-managed browser infrastructure for computer-use agents. Deploy humanized Chromium instances that access any website while maintaining bot-detection evasion and authentication support. Features OmniConnect for authentication lifecycle management, Web Action Cache for deterministic workflows, and built-in VPN infrastructure. Includes free tier and paid plans supporting millions of concurrent browser sessions for scalable agent automation.

freemium
RagaAI Catalyst logo

RagaAI Catalyst

AI testing and evaluation for agents and LLM apps

RagaAI Catalyst is a comprehensive Python SDK for observability, monitoring, and evaluation of LLM and agentic applications. Provides agent tracing with execution graph visualization, self-hosted dashboard with analytics, synthetic data generation, multi-metric evaluation framework, and guardrail management. Built for teams running production RAG systems and AI agents who need systematic testing, debugging, and performance optimization workflows.

open-sourceOpen Source