Hey, I'm Ian and I make websites
This is my digital garden, where I write about making websites, creating games and other creative adventures.
Latest posts
All 41 posts-
GRD041
#159Filed
I use AI at work, why not in my game
Players review bomb games made with AI and the stores label them. I build software with AI at work, so I find it odd that my own game should be any different.
-
GRD040
#74AFiled
Stati 2 started as four bug reports
I filed four bug reports about Stati's templates in one afternoon, each with a fix. Two hours later I threw the fixes away and broke the template API instead.
-
GRD039
#319Filed
@stati/images: responsive images and link preview cards for Stati
AVIF and WebP at several widths, and an Open Graph card for every page drawn without a browser. It ships as a separate package, and I had my reasons.
-
GRD038
#238Filed
The dev server got slower with every save
Windows eating file writes, a watcher that watched too much, and the instruments I built into Stati so the next slowdown shows up on a pull request instead of in my hands.
-
GRD037
#6B1Filed
What Stati is, and what it isn't
Where a small, TypeScript-first static site generator fits next to Astro, Eleventy and Hugo, and when you should pick one of those instead.
Fig. 2
- Link to or from the latest 5 · 5
- Link between older posts · 16
Random snippets
-
SNP103
Scale pixel art video without blur in ffmpeg
Recording a 320 × 180 game and uploading it at 1080p without the smear.
2 lines of sh in 2 blocks, 5 lines of explanation.
#359 -
SNP029
Follow a log file live
Watch a log as it is being written, with and without systemd.
2 lines of sh in 2 blocks, 5 lines of explanation.
#269 -
SNP122
Load .env files in Node without a package
dotenv is built into Node now.
2 lines of sh in 2 blocks, 7 lines of explanation.
#42A -
SNP084
__dirname in ES modules
It's gone in ESM. Here is the replacement, and the newer, nicer one.
9 lines of js in 3 blocks, 4 lines of explanation.
#45A -
SNP147
Paginate a listing in Stati
One line of front matter for numbered pages, and a pager built from stati.pagination.
31 lines of yaml and eta in 2 blocks, 15 lines of explanation with 5 notes.
#693
Fig. 3
- Code · 46 lines in 11 blocks
- Explanation · 36 lines
- Notes · 5