ArchSpec is a linter designed for Ruby and Rails projects that focuses on enforcing architectural conventions and boundaries within codebases. It enables teams to specify architecture rules, such as allowed and forbidden dependencies between components, method protocols, and boundaries between layers like controllers, models, and services. These specifications are written in a Ruby configuration file, allowing users to declare which components can or cannot interact, reference certain constants, or implement specific methods.
The tool integrates with continuous integration (CI) systems and can run checks automatically on every commit, as well as through git hooks. ArchSpec analyzes code using Prism, without requiring the application to boot or access a database, which makes the checks fast and suitable for frequent use during development. It supports executable architecture specifications, ensuring that both human developers and automated agents adhere to defined conventions.
ArchSpec comes with built-in support for several architectural patterns, including Rails, vanilla Rails, layered, hexagonal, clean, modular monolith, CQRS, and event-driven architectures. Users can start from these predefined architectures or compose custom rules in plain Ruby to fit their specific needs. The tool is intended for development teams working with Ruby or Rails who want to maintain clear component boundaries and enforce dependency directions within their projects.
ArchSpec sits in PulseGate's Code review & quality category. It focuses on ensuring Ruby and Rails codebases follow architectural conventions and maintain clear boundaries between components. It is built as an open-source project for ruby and rails developers. ArchSpec is open source under the MIT license. It runs on the web and the command line.
ArchSpec first shipped in 2026. Development happens publicly on GitHub with 12 stars and 36 commits in the last 90 days. Key capabilities include architecture linting, CI integration, and component boundaries.
Latest indexed changes and source events
Other apps tracked under the same category.