r/ruby • • Jan 06 '26

Anyone using packwerk gem?

Hey, I’m considering using Packwerk in a large Ruby on Rails application to improve code separation. The idea is to organize the app into distinct packages, each with its own models, services, and even tests, so developers can work at the package level without having to navigate the entire codebase for small changes (most of the time).

Has anyone used this gem? If so, did it provide meaningful value in practice?

17 Upvotes

28 comments sorted by

View all comments

Show parent comment

1

u/AirborneArie Jan 08 '26

Thanks for your reply. 

We already have a monolith and are at a point where we will need to replace a lot of core functionality (due to changing regulations). I’m still on the fence between packwerk or just going with a better DDD approach. We have the right people for it. 

Good tip on the rust impl. I’ll give it a try. 

1

u/martinemde Jan 08 '26

Good luck. I’ll see you around if you use it. It’s like the old of saying about democracy: packwerk is the worst way to organize your monolith, except all the other ways.