Operating note2 min read
Moving my site from Astro to Void and Vue (and adding subtle sound)
Laravel to Astro to Void on Cloudflare Workers, keeping pages static with one small Vue island, and why my first Web Audio attempt sounded terrible.
My personal site has been through three lives now: Laravel, then Astro, and as of October 2026, Void with Vue on Cloudflare Workers.
Astro was fine, honestly. The move to Void was mostly because I like Vue, wanted static prerendered HTML without carrying a separate Nixpacks and serve.json setup, and liked having redirects, RSS, and the sitemap live cleanly alongside the app on Cloudflare.
One small island, static everywhere else
Almost every page on this site is still plain prerendered HTML with zero framework JavaScript. Void’s .island.vue pages only ship client code when you explicitly mark a component to hydrate:
import CraftStage from '../components/CraftStage.vue' with { island: 'load' };
That keeps the text pages instant while giving the homepage one small interactive canvas (~4.8 kB gzipped) for the Petal sunburst, the OpenCharm face, and the timeline dial. If JavaScript never loads, the rest of the page still reads normally.
Getting Web Audio to stop sounding like a 2004 Flash game
I wanted the interactive bits on the homepage to have a tiny bit of tactile feedback — closer to turning a camera aperture ring or an Apple Watch crown than clicking a web page.
My first pass sounded awful. Even with a compressor and a bit of reverb, playing sine and triangle oscillators on clicks immediately screams "cheap sci-fi UI". Real switches and rotary detents don’t play musical notes; they make short, damped physical noises when two bits of material tap each other.
What actually worked was dropping musical oscillators altogether and pre-rendering tiny 14–44 ms impulse buffers at init time:
- Detent ticks — a short filtered noise transient layered with two fast-decaying high resonances (around 3.1 kHz and 5.6 kHz) that die out in a couple of milliseconds.
- Switches and presses — a low damped body thump (~200 Hz) plus a softer contact tap, with a second stage ~11 ms later for toggles.
- Micro-variation — shifting playback rate by roughly ±3% on every click so two consecutive ticks never sound identical.
Keeping the gain way lower than you think you need matters most. If you consciously notice the sound effect, it’s already too loud. It should just make dragging a dial or sweeping across a sunburst feel a little bit more physical — and there’s a quiet mute toggle right next to it in case you’d rather have silence.