NewsCrawler.org

Artist's website serves static pages but lets the owner edit content through a web UI

Artist's website serves static pages but lets the owner edit content through a web UI
Image: news.hada.io

The author built a website for a personal collection of paintings and sketchbook pages. Visitors get static pages, while the owner works with a dynamic web app. Every HTML page is rendered on the server with a cache header that keeps it in the Cloudflare CDN[1] for 30 days. When a new piece is uploaded or tags change, the write handler performs cache invalidation[2] and clears all cached pages. The author chose to clear every page rather than only the affected ones, because tracking dependencies between pages was too easy to get wrong.

Images are downsampled in the uploader's browser at upload time, and the smaller sizes are stored in Cloudflare R2[3] next to the originals. All metadata lives in one JSON file in R2. A Cloudflare Worker[4] reads that file, generates a page when it is requested, and caches the result. Maps and timelines are client-side JavaScript that reads the same JSON and writes nothing back, so there is no database.

The site is built with Astro, which Cloudflare acquired. The author pays nothing for compute and bandwidth, and storage is free up to 10 GB, beyond which it would cost a couple of cents per month.

Read the original klauria.techDiscussion on GeekNews

Discussion

Commenters mostly praised the design, the typography and the artwork. Several pointed out that the site is actually server-rendered rather than static, and one remarked that an artist working in physical media uses LLMs to build the site. One user said the site was down for them, and another suggested bunny.net as a similar option.

Sources

  • KRGeekNews KO

    내 미술 작품 웹사이트의 기술 아키텍처가 꽤 마음에 든다

    12 points1 comment

  • Kshitij Lauria

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

    33 comments

Published: First seen: Читать по-русски

Open as a page