Preview of CartonOpen carton.dtcristo.com

carton.dtcristo.com

Carton

Enforces runtime boundaries in large Ruby applications by isolating constants, gems, and monkey patches per module, using Ruby 4's experimental Ruby::Box.

Visit project

Show me a random project

First shared
Oct 23, 2026
HN activity
10

Show HN@dtcristoOct 23, 2026

Show HN: Carton – Real Boundaries for Ruby

Carton is my take on enforcing boundaries in large Ruby applications. It's similar to Packwerk, but it takes a more Ruby-like approach, with no manifest files. Constants, gems and monkey patches are isolated using Ruby 4's new Ruby::Box. It's not production ready yet, since Box itself is still experimental, but I'd love feedback on the approach.

Community

Hacker News discussion

Loading the thread…