Skip to content

mille

Your architecture, one clean layer at a time. One TOML config. Rust-powered. CI-ready.

mille is a static analysis CLI that enforces dependency rules for layered architectures — Clean Architecture, Onion Architecture, Hexagonal Architecture, and more.

What it checks

Languages: Rust, Go, TypeScript, JavaScript, Python, Java, Kotlin, PHP, C, YAML

CheckDescription
dependency_modeLayer dependency rules — control which layers can import from which
external_modeExternal library rules — restrict third-party package usage per layer
allow_call_patternsDI method call rules — limit which methods may be called on injected types
name_denyNaming convention rules — forbid infrastructure keywords in domain/usecase

Install

Available via cargo, npm, pip, go install, or binary download. Installation Guide

Quick Start

mille init auto-detects your architecture. CI-ready in 5 minutes. Quick Start Guide

CI Integration

GitHub Actions annotations show violations directly in PRs. CI Guide