Two incompatible (?) ways of using packwerk

My book Gradual Modularization for Ruby and Rails is about using Packwerk for, well, gradual modularization. While I wrapped up the manuscript about six months ago, the bulk of the innovation over the things I thought about in Component-based Rails Applications happened in 2021 and 2022. It has been a while since I took a long look at the merits of the underlying tool. This year, I’ve realized there are two very different ways to use Packwerk.

https://fed.brid.gy/r/https://stephanhagemann.com/posts/2025-08-23-07-15-10-packwerk-two-modes

👋 Just a heads up that I re-released Chapter 8 with updated content on measuring modularization progress!

In addition to general improvements, this release fixes outdated references to how things work with the various open-source tools.

Get it here:
https://leanpub.com/package-based-rails-applications
https://stephanhagemann.com/books/gradual-modularization/

If you already bought the book, log into @leanpub to get the latest version!

#gradualmodularization #ruby #rails #architecture

Gradual Modularization for Ruby and Rails

Better Rails apps with packages! Manage the complexities of your domain by elevating your ability to discuss boundaries and isolate subsystem with no overhead

Leanpub

Update on #gradualmodularization progress. #ruby #rails

https://stephanhagemann.com/books/gradual-modularization/

Today I am releasing Chapter 4 in full. This includes all the protections that you can apply using packwerk and RubyAtScale tools:

* privacy
* architecture
* visibility
* folder visibility
* API documentation
* API typing
* Namespacing
* API Structure

Gradual Modularization for Ruby and Rails

The next section of the Gradual Modularization book is rolling of the press right now: Visibility enforcement.

#ruby #rails #gradualmodularization

Gradual Modularization for Ruby and Rails

Second drop of Chapter 4... in which I discuss the usage of the architectural layers extension to #packwerk.

https://stephanhagemann.com/books/gradual-modularization/

#ruby #rails #gradualmodularization

Gradual Modularization for Ruby and Rails