# dependency\-cruiser

[BASE product page](<https://base.akulich.dev/en/library/dependency-cruiser/>) · [Resource](<https://github.com/sverweij/dependency-cruiser>)

ID: dependency\-cruiser · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

Analyzes import graphs and checks architectural rules: detects cycles and forbidden dependencies between project areas\.

## Type

Build / code quality tool

## Entry type

tool

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/dependency-cruiser/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/dependency-cruiser/#resource-access>)

Code and local use under MIT\.

## [Paid features and costs](<https://base.akulich.dev/en/library/dependency-cruiser/#resource-access>)

Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Access and limitations](<https://base.akulich.dev/en/library/dependency-cruiser/#resource-access>)

Code and local use under MIT\. Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Use cases](<https://base.akulich.dev/en/library/dependency-cruiser/#resource-tasks>)

- Check architectural import boundaries
- Build the import graph and find cycles/forbidden relationships

## Category IDs

- infrastructure
- quality

## Subcategory IDs

- infrastructure\.developer
- quality\.review

## Tags

- dependency\-cruiser
- build
- Development

## Also known as

- sverweij/dependency\-cruiser
- dependency\-cruiser
- dependency\-cruiser\-tool

## [Selection purpose](<https://base.akulich.dev/en/library/dependency-cruiser/#resource-selection>)

Check architectural import boundaries

## [Choose this when](<https://base.akulich.dev/en/library/dependency-cruiser/#resource-selection>)

- Check architectural import boundaries
- Build the import graph and find cycles/forbidden relationships

## [Requirements](<https://base.akulich.dev/en/library/dependency-cruiser/#resource-selection>)

- Graphviz is needed only for the chosen DOT → SVG route, not for every dependency\-cruiser check\.

## [Limitations](<https://base.akulich.dev/en/library/dependency-cruiser/#resource-selection>)

- Costs and limits of free use: Computing resources, self\-hosting, and external services are paid for separately if used\.
- Terms of use: MIT for the code; dependencies have separate licenses\.

## [Questions before use](<https://base.akulich.dev/en/library/dependency-cruiser/#resource-faq>)

### What can you use for free in dependency\-cruiser?

Code and local use under MIT\.

### What additional costs might arise with dependency\-cruiser?

Computing resources, self\-hosting, and external services are paid for separately if used\.

### What terms of use matter for dependency\-cruiser?

MIT for the code; dependencies have separate licenses\.

### How do you get started with dependency\-cruiser?

Describe allowed dependencies between project modules\. Build the import graph and find cycles/forbidden relationships\. Add the workflow to scripts or CI with a clear report\.

### Do you need Graphviz to check dependencies in CI?

Graphviz is not required for text/JSON reports or rule checking\. Converting a DOT graph into SVG uses the separate dot utility\. Initialization suggests rules for cycles, orphan modules, and missing package\.json dependencies; configuration lets you define your own import boundaries\.

## Sources for the selection guide

- [https://github\.com/sverweij/dependency\-cruiser](<https://github.com/sverweij/dependency-cruiser>)
- [https://raw\.githubusercontent\.com/sverweij/dependency\-cruiser/HEAD/README\.md](<https://raw.githubusercontent.com/sverweij/dependency-cruiser/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/sverweij/dependency\-cruiser/HEAD/LICENSE](<https://raw.githubusercontent.com/sverweij/dependency-cruiser/HEAD/LICENSE>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)

## [Possible workflow](<https://base.akulich.dev/en/library/dependency-cruiser/#resource-scenario>)

Check architectural import boundaries\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- A repository, package manifests, and configuration\.
- A compatible runtime and the target build command\.

## Steps

1. Describe allowed dependencies between project modules\.
2. Build the import graph and find cycles/forbidden relationships\.
3. Add the workflow to scripts or CI with a clear report\.

## Check your result

- A clean copy of the project reproduces the result\.
- Errors produce a nonzero exit code and clear diagnostics\.

## [License](<https://base.akulich.dev/en/library/dependency-cruiser/#resource-license>)

MIT for the code; dependencies have separate licenses\.

## License explanations for the specified scope

### MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed\-source commercial product\. When sharing copies or substantial portions of the code, retain the license text and copyright notice\. You do not need to open\-source your entire project; the author provides no warranties\.

[License terms](<https://opensource.org/license/mit>)

## [Sources](<https://base.akulich.dev/en/library/dependency-cruiser/#resource-sources>)

- [Official source](<https://github.com/sverweij/dependency-cruiser>)
- [Official source](<https://raw.githubusercontent.com/sverweij/dependency-cruiser/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/sverweij/dependency-cruiser/HEAD/LICENSE>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)

## Editorial review date

2026\-10\-06

## Editorial review scope

The purpose, current repository license, and separate terms for code, services, and models have been reviewed\. The product was not run, and no security audit was performed\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
