How MasonryKit is built
How I split MasonryKit, a TypeScript library for masonry layouts, into three packages: pure layout math, DOM helpers, and a React hook. Plus the patterns in each layer worth borrowing for your own libraries.
Index
Posts on React, Phoenix, components, and the bits in between. I write when I think something I learned might be useful to someone else.
How I split MasonryKit, a TypeScript library for masonry layouts, into three packages: pure layout math, DOM helpers, and a React hook. Plus the patterns in each layer worth borrowing for your own libraries.
How I think about building component systems. Six principles, plus the practical patterns that go with them.
How to build 404, 403, and 500 pages in Phoenix LiveView that do not feel like afterthoughts. Uses Ash exceptions and the built-in Phoenix conventions so the failure paths read like the rest of your product.
How Elixir protocols make polymorphism feel like design work. Less ceremony, more clarity, and a path away from giant conditionals.