
Security News
/Company News
Securing the Financial Frontier: How Capital One Uses Socket for Open Source Security
Capital One is partnering with Socket to proactively secure its open source supply chain.
Codebase intelligence for TypeScript and JavaScript: health, complexity, duplication, architecture, styling drift, and unused code from one graph. CLI, LSP, and MCP server. Zero config for over 100 frameworks.
Codebase intelligence for TypeScript and JavaScript.
One binary finds unused code, circular dependencies, duplication, complexity hotspots, boundary violations, and design-system styling drift. An optional paid product, Fallow Cloud, adds production coverage: which functions run in production. No AI inside the analyzer, and no TypeScript compiler or Node.js runtime needed for static analysis: runs are deterministic, with typed output contracts and traceable explanations.
npm install --save-dev fallow # or: pnpm add -D fallow / yarn add -D fallow
This installs the fallow CLI plus the fallow-lsp and fallow-mcp launchers, so editor and agent integrations resolve the project-local binary instead of whatever happens to be on PATH. For one-off use, run npx fallow without installing. Other channels (cargo, Docker, prebuilt binaries) are covered in the installation guide.
npx fallow # Full pipeline: dead code + duplication + health
npx fallow audit # Gate only what a PR changed: verdict pass/warn/fail
npx fallow health --score # 0 to 100 health score with a letter grade
npx fallow dupes # Duplication; modes strict, mild (default), weak, semantic
npx fallow fix --dry-run # Preview automatic cleanup
Add --format json --quiet to any command for one typed JSON document on stdout. Exit code 1 means findings, not failure; 0 is clean (or an audit pass or warn verdict); 2 is a validation or runtime error, reported as a JSON error envelope rather than a stack trace. License, coverage setup, network, and security-gate workflows use additional documented codes; read fallow schema.exit_codes instead of suppressing the process status.
Parsing the output in TypeScript? Import the typed shapes, version-pinned to the CLI you install:
import type { CheckOutput, FallowJsonOutput } from "fallow/types";
Every issue carries an actions[] array with an auto_fixable flag, so scripts and agents know which findings they can hand to fallow fix. The full contract lives at docs.fallow.tools.
fallow audit)--type-aware)Default analysis stays Rust-native and syntactic. Use --type-aware when a
cleanup or refactor needs exact checker-backed identity across aliases,
re-exports, packages, or tests:
npx fallow dead-code --unused-class-members --type-aware --format json --quiet
npx fallow fix --type-aware --dry-run --format json --quiet
npx fallow dead-code --type-aware --symbol-impact src/api.ts:Client --format json --quiet
npx fallow health --type-aware --type-coupling --format json --quiet
This complements tsc --noEmit and Oxlint. It does not emit compiler
diagnostics or duplicate local typed lint rules. If the optional companion
cannot prove a result safely, fallow retains the finding and reports why.
Required interface, abstract, and override members are removed from the
findings. A class member is automatically fixable only with complete
closed-world evidence and a matching declaration guard.
Agents get structured repo truth instead of inferring everything from grep: who imports a symbol, why an export counts as used, what a PR changed, which cleanup action is safest.
The bundled fallow-mcp server lives in node_modules/.bin/ when installed as a devDependency, so launch it through your package manager's runner:
{
"mcpServers": {
"fallow": {
"command": "npx",
"args": ["fallow-mcp"]
}
}
}
Swap npx for pnpm exec or yarn to match your package manager; a globally installed fallow-mcp works as "command": "fallow-mcp" directly. See the MCP integration guide. npx fallow agent install writes this registration for you, together with the skill, an AGENTS.md task map, and the commit/push gate, for every harness it detects (Claude Code, Codex, Cursor); --dry-run shows the plan first.
The package also ships a version-matched agent skill under skills/fallow, and fallow/capabilities.json mirrors fallow schema for tools that need CLI and issue-surface metadata without spawning the binary. TanStack Intent discovers both from node_modules:
npx @tanstack/intent list
npx @tanstack/intent load fallow#fallow
Over 100 built-in framework plugins covering Next.js, Nuxt, Remix, Qwik, SvelteKit, Gatsby, Astro, Angular, NestJS, AdonisJS, Ember, Expo Router, Vite, Webpack, Vitest, Jest, Playwright, Cypress, Storybook, ESLint, TypeScript, Tailwind, UnoCSS, Prisma, Drizzle, Convex, Turborepo, Hardhat, and more. Entry points are auto-detected from package.json, so the first run needs no configuration.
Works out of the box. To customize, let fallow recommend propose a config from the detected stack (read-only; --format json returns the full decision set for agents and points TypeScript projects to the optional --type-aware pass without enabling it), run fallow init, or create a config file in your project root:
// .fallowrc.json
{
"$schema": "./node_modules/fallow/schema.json",
"entry": ["src/workers/*.ts", "scripts/*.ts"],
"ignorePatterns": ["**/*.generated.ts"],
"rules": {
"unused-files": "error",
"unused-exports": "warn",
"unused-types": "off"
}
}
$schema gives editors autocomplete and validation and has no effect on analysis. The npm package ships a version-aligned schema at ./node_modules/fallow/schema.json, so validation works offline with no editor trust prompt. TOML works too: fallow init --toml creates fallow.toml. Full reference: configuration overview.
MIT
FAQs
Codebase intelligence for TypeScript and JavaScript: health, complexity, duplication, architecture, styling drift, and unused code from one graph. CLI, LSP, and MCP server. Zero config for over 100 frameworks.
The npm package fallow receives a total of 1,085,352 weekly downloads. As such, fallow popularity was classified as popular.
We found that fallow demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
/Company News
Capital One is partnering with Socket to proactively secure its open source supply chain.

Security News
Socket CTO Ahmad Nassri discusses how to keep AI agents from bypassing package blocks, limit credential access, and monitor their actions.

Security News
GPT-6 Astra tried to plant malicious code in simulated open source projects using fake GitHub accounts and deceptive PRs during an assigned CTF challenge.