{"schemaVersion":1,"id":"dependency-cruiser","name":"dependency-cruiser","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/dependency-cruiser/","officialUrl":"https://github.com/sverweij/dependency-cruiser","isCatalog":false,"description":"Analyzes import graphs and checks architectural rules: detects cycles and forbidden dependencies between project areas.","tasks":["Check architectural import boundaries","Build the import graph and find cycles/forbidden relationships"],"categoryIds":["infrastructure","quality"],"subcategoryIds":["infrastructure.developer","quality.review"],"tags":["dependency-cruiser","build","Development"],"aliases":["sverweij/dependency-cruiser","dependency-cruiser","dependency-cruiser-tool"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"MIT for the code; dependencies have separate licenses.","selectionGuide":{"purpose":"Check architectural import boundaries","chooseWhen":["Check architectural import boundaries","Build the import graph and find cycles/forbidden relationships"],"considerInstead":[],"requirements":["Graphviz is needed only for the chosen DOT → SVG route, not for every dependency-cruiser check."],"limitations":["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."],"faq":[{"question":"What can you use for free in dependency-cruiser?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with dependency-cruiser?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for dependency-cruiser?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with dependency-cruiser?","answer":"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."},{"question":"Do you need Graphviz to check dependencies in CI?","answer":"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."}],"related":[],"sources":["https://github.com/sverweij/dependency-cruiser","https://raw.githubusercontent.com/sverweij/dependency-cruiser/HEAD/README.md","https://raw.githubusercontent.com/sverweij/dependency-cruiser/HEAD/LICENSE","https://www.open-source-tools.com/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Check architectural import boundaries.","inputs":["A repository, package manifests, and configuration.","A compatible runtime and the target build command."],"steps":["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."],"checks":["A clean copy of the project reproduces the result.","Errors produce a nonzero exit code and clear diagnostics."]},"sources":["https://github.com/sverweij/dependency-cruiser","https://raw.githubusercontent.com/sverweij/dependency-cruiser/HEAD/README.md","https://raw.githubusercontent.com/sverweij/dependency-cruiser/HEAD/LICENSE","https://www.open-source-tools.com/"],"checkedAt":"2026-10-06","reviewScope":"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.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Build / code quality tool","kind":"tool","pricingNote":"Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/sverweij/dependency-cruiser","label":"Official source"},{"url":"https://raw.githubusercontent.com/sverweij/dependency-cruiser/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/sverweij/dependency-cruiser/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"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.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}