Skip to content

Sadrazam

Declutter your JavaScript & TypeScript projects

Sadrazam

Dependency and code-hygiene analysis with deterministic output, low false positives, and agent-friendly reports.

npm version npm downloads MIT license
$ npx sadrazam . --reporter toon

workspaces[1]:
  workspace:
    name=sadrazam
  summary:
    activePlugins=[github-actions, gitlab-ci, circleci, azure-pipelines, bitbucket-pipelines]
    findings=0

No dependency issues found.

Why use it?

Clean package.json and source graphs without guessing.

Sadrazam scans source files, scripts, package manifests, aliases, framework conventions, and CI workflows to report findings that are useful locally and strict enough for automation.

Dependency hygiene

Find unused dependencies, missing packages, and misplaced devDependencies across package workspaces, tool configs, CI, and containers.

Reachability analysis

Trace unused files, unused exports, duplicate aliases, and unresolved local imports through real source graphs.

CI-aware usage

Read CI, Dockerfile, and Docker Compose commands so environment-only tools are counted as used.

Agent output

Use JSON, TOON, markdown, or SARIF when humans, CI jobs, and agents need stable contracts.

Built for real repos

Modern project support is part of the scanner.

Frontend Astro, Next, SvelteKit, Vite, webpack, Rollup
Testing Vitest, Jest, Playwright, Cypress, Storybook
Quality ESLint, Prettier, Tailwind, TypeScript, Babel, PostCSS, Commitlint, lint-staged, Husky
Monorepo pnpm workspace, Turbo, Nx, Lerna, Rush
CI GitHub Actions, GitLab CI, CircleCI, Azure Pipelines, Bitbucket Pipelines
Containers Dockerfile, Docker Compose

Start with one scan.

Run Sadrazam locally, then choose text, JSON, TOON, markdown, or SARIF output based on your workflow.

Read CLI Usage
MIT License © 2026 Sadrazam