affected
affected is a free, MIT-licensed command-line tool that identifies monorepo packages touched by Git changes and can run tests or other commands on them.
What affected is
affected is a free, MIT-licensed command-line tool that identifies monorepo packages touched by Git changes and can run tests or other commands on them. It traces indirect dependencies and can show the chain linking a change to an affected package. The README says it detects project type and dependency graph automatically to get started without configuration. Supported ecosystems include Cargo, JavaScript package managers, Go, Python, Maven, Gradle, .NET, Swift, Dart/Flutter, Elixir, and Scala/sbt. Commands cover listing packages, testing, running commands, viewing graphs, CI, initialization, and watch mode. Execution can use parallel jobs, dry-run previews, timeouts, package filters, and skip patterns. Output options include JSON, JUnit XML, CI formats, shell completions, dependency trees, and DOT graphs. GitHub Actions support includes setup and dynamic job matrices; a companion action can post and update pull request comments with affected packages and reasons. Installation options include package managers, GitHub Actions, and release binaries. It runs on Linux, macOS, and Windows, and contributions and issue reports are welcomed through its repository.
Good
- Traces transitive dependencies and explains the chain.
- Runs commands in parallel across jobs.
- Supports multiple CI output formats.
- GitHub Actions can create dynamic job matrices.
- Available for Linux, macOS, and Windows.
Watch out
- It is a command-line tool.
- Its documented setup and support are repository-based.
Who it suits
It suits developers maintaining monorepos who want to target tests or commands to packages affected by Git changes. Teams using the listed CI systems and language ecosystems can use its corresponding integrations and outputs.
Verdict
affected offers monorepo change analysis with broad ecosystem and CI support, plus controls for targeted command execution. It is a fit for teams comfortable using a CLI and configuring their workflow around its outputs.
Plans and prices
From affected's own pricing page, checked 3 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| affected | Free | MIT-licensed software · standalone CLI |
The facts
Each one read from affected's own pages, with the date it was checked.
What it does
- CI integrations
- Its CI output supports GitHub Actions, GitLab, CircleCI, Azure Pipelines and generic key-value output.checked 3 Oct 2026
- Commands
- The CLI provides list, test, run, graph, ci, init and watch commands.checked 3 Oct 2026
- Dependency analysis
- It traces transitive dependencies to identify packages affected by a change and can explain the dependency chain.checked 3 Oct 2026
- Distribution
- The README documents installation through Homebrew, uv, pipx, pip, Cargo, GitHub Actions or a binary downloaded from Releases.checked 3 Oct 2026
- Ecosystems
- It lists support for Cargo, npm, pnpm, Yarn, Bun, Go, Python, Maven, Gradle, .NET, Swift, Dart/Flutter, Elixir and Scala/sbt.checked 3 Oct 2026
- Execution
- Commands can run in parallel across multiple jobs, and the CLI supports dry-run previews, timeouts, package filters and skip patterns.checked 3 Oct 2026
- GitHub Actions
- The README documents a setup action and dynamic CI job matrices for affected packages.checked 3 Oct 2026
- License
- The repository identifies the software as MIT licensed.checked 3 Oct 2026
- Outputs
- The CLI supports JSON output, JUnit XML, shell completions and a Unicode dependency tree, with DOT graph output also available.checked 3 Oct 2026
- PR comments
- A companion GitHub Action can post and update pull request comments showing affected packages and reasons.checked 3 Oct 2026
- Purpose
- affected detects which monorepo packages are affected by Git changes and runs tests or other commands on those packages.checked 3 Oct 2026
- Setup
- The README says it auto-detects project type and dependency graph with zero configuration to start.checked 3 Oct 2026
- Support
- The README welcomes contributions and directs users to the repository's GitHub issues.checked 3 Oct 2026
Alternatives to affected
- 1
npm
Free planLinuxmacOSWindows7.5From $7 a month - 2

Turborepo
Free planOpen sourceAPILinuxmacOSSelf-hosted7.3Free plan - 3

Nx
Free planWebLinuxmacOSSelf-hosted7.2From $29 a month - 4

Bazel
Free planLinuxmacOSWindows6.7Free plan - 5
Bit
Free planAndroidiOSWebAPI6.7Free plan - 6
Lerna
Free planWebSelf-hostedWindows6.7From $29 a month
