dettmer.dev
← works
Void Tales logo, a violet V on a dark disc
Web · Static site + Discord automation

Void Tales Gallery

Self-hosted screenshot gallery for the Void Tales community. Players post in Discord, an n8n workflow does the rest, and a static site shows it within minutes.

active

Players of Void Tales wanted one place for their screenshots, builds and best moments, without depending on an image host that might shut down or start limiting uploads. The gallery is the sister site of the Void Tales Portal and shares its design tokens.

There is no upload form. Players post in a Discord channel the way they always do, and the image appears in the gallery a few minutes later, credited to the person who posted it.

How it works

The site is deliberately simple: a static Astro site with no database and no backend, everything pre-rendered at build time. The work happens around it, in an n8n workflow:

  1. Listen. A Discord webhook picks up new images in the gallery channel.
  2. Check. Format, size and content are validated before anything is processed.
  3. Process. The image is downloaded and turned into WebP thumbnails at several sizes.
  4. Describe. A markdown file records author, timestamp and caption.
  5. Publish. The files land where the build expects them, and the site is rebuilt and deployed.

Watermarks, moderation or different image processing are a change to the workflow; the site stays the same.

On the page

  • Masonry grid from phone to ultrawide, with lazy loading and infinite scroll
  • Lightbox (GLightbox) with author attribution, share buttons and a link to the original
  • Sorting by date, name or at random, and a unique ID per image for direct links
  • Staff badges in the grid and a refresh button that bypasses the cache
  • Light and dark mode without a flash on load
  • A few Preact islands for the interactive parts; everything else ships as plain HTML

Self-hosted means the community keeps its pictures, whatever happens to the next image host.

platform
Web · Static site + Discord automation
stack
Astro 7, TypeScript, Preact, Sharp, GLightbox, n8n, Discord API, Node.js