I automated my Gumroad product screenshots with Playwright

I recently started packaging a few small frontend projects as digital products, and one surprisingly annoying part was preparing product screenshots.

Manual screenshots quickly became messy:

different browser sizes

inconsistent cropping