← Sat, Nov 21 digest

I'm quite pleased by the tech architecture of my art website

read article ↗ hn thread ↗

A developer built a hybrid static-dynamic art gallery using Cloudflare Workers and R2 storage, leveraging aggressive edge caching for zero-cost performance and a custom CRUD authoring interface.

summary is enough It is a quick, delightful architectural write-up showing a clever way to blend server-side rendering with aggressive edge caching for personal sites.

summary

The author wanted an easily updatable map-based gallery for their paintings without managing traditional static site generators and git builds. They used Astro and Cloudflare Workers to render pages on demand, caching them globally for 30 days. Uploading new art via a custom CRUD interface invalidates the entire cache, while images are downsampled client-side before being stored in Cloudflare R2. This design achieves near-zero hosting costs and instant edge delivery while keeping the author workflow frictionless.

key points

  1. Pages are server-rendered on the first visit and cached for 30 days at Cloudflare's edge, combining dynamic flexibility with static speed.
  2. Adding new paintings via a custom web UI triggers a full cache invalidation, bypassing the complexity of partial dependency tracking.
  3. Image downsampling and resizing happen client-side before assets are pushed to Cloudflare R2, eliminating server-side image processing costs.

who should read it

Web developers interested in lightweight, cost-effective architectural patterns for personal projects.

discussion warm

consensus

Commenters overwhelmingly praise both the artwork and the pragmatic architecture, with many sharing appreciation for the clean, low-cost design.

best comment by showcaseearth ↗

Lovely work!! On “Where did you paint this?”, I've gotten this myself as I've painted off and on over the years too, mostly landscapes. It's what drove me to start a side project years ago to put art on the map (consolidate specific viewpoints, photo comparisons, streetview, historic maps, etc). As those things go, I never got beyond a crude app while life competed for resources. Picked it back up this year, hoping to "launch" a first version soon. Mostly historical stuff because that's what's openly available, but maybe someday it could be a tool for placing my own and other artists' …

It outlines an alternative approach to the static-for-readers, dynamic-for-author problem using a self-hosted Grist instance.

Generated by an LLM from the article and thread. Check the sources before relying on it.