TypeScript & JavaScript
ArchUnitTS
Test dependency direction, detect cycles, and enforce architectural boundaries in your existing test suite.
Open source. Built in Germany.
We build the ArchUnit library family: open-source tools that turn architecture decisions into tests. The same engineering mindset runs through everything we build at DragonSec.
Built in the open. Used in the real world.
package downloads in 30 days
October 15 – November 13, 2026.
Downloads across npm, PyPI, and crates.io.
Architecture as code
Dependencies grow. Boundaries drift. AI writes more code. ArchUnit gives teams a way to keep structural decisions explicit and enforce them as the codebase changes.
import { projectFiles } from 'archunit';
it('keeps the domain independent', async () => {
const rule = projectFiles()
.inFolder('src/domain/**')
.shouldNot()
.dependOnFiles()
.inFolder('src/infrastructure/**');
await expect(rule).toPassAsync();
});The ArchUnit family
Start with our established TypeScript and Python libraries, explore an active preview, or help shape the next ecosystem.
TypeScript & JavaScript
Test dependency direction, detect cycles, and enforce architectural boundaries in your existing test suite.
Python
Write architecture rules for Python projects with static analysis and no runtime dependencies.
.NET
Architecture policies for C# solutions, with adapters for major .NET testing frameworks.
Ruby
Language-native architecture rules for Ruby and Rails, with RSpec and Minitest integration.
Rust
Cargo-native architecture testing with structured violations backed by source evidence.
Zig
Architecture checks that respect allocators and compile as ordinary Zig tests.
Go
Express architecture policies as Go tests, using the language toolchain to understand your project.
Java
Architecture testing for compiled Java code, with JUnit integration and deterministic reports.
PHP
A planned architecture-testing library for Composer projects, PHPUnit, and Pest.
Public adoption data
A dated snapshot of public package registries and repositories, checked November 14, 2026.
Downloads count package downloads, not unique developers or companies. The total covers the three registries listed here; it excludes ecosystems without comparable download data. PyPI mirror traffic is excluded.
| Package | Registry | Downloads |
|---|---|---|
| ArchUnitTS | npm ↗ | 359,778 |
| ArchUnitPython | PyPI ↗ | 59,591 |
| ArchUnitRust | crates.io ↗ | 2,013 |
| Total | 421,382 | |
1,425 GitHub stars across the nine linked repositories as of November 14, 2026. Registry endpoints may show a newer rolling window when opened.
The people behind the projects
Meet the team connecting open-source architecture testing with enterprise security.