Binh Nguyen

software engineer • web developer

@rbtnguyen

Changelog: November 2026

A still from Teenage Mutant Ninja Turtles II: The Secret of the Ooze. The four turtles crowd around a computer monitor at TGRI.

I made a bunch of changes to my site in November and haven’t blogged about any of it, so let’s fix that. I won’t go into as much depth on each change as I’d like, but I at least want to acknowledge all the new stuff.

• Animated avatar

I drew the avatar in my header a few years ago and, at this point, I’m pretty tired of looking at it. So instead of replacing it, I wanted to make it more interesting. Taking inspiration from that wacky Duolingo owl and his friends, I decided to try and animate my avatar. I read a post on the Duolingo blog a while back about how they bring those characters to life with Rive. I didn’t have the time to learn a whole new tool, so I used the ones I already know: SVG and GSAP. I drew a few more states of my face, vectorized everything (with the help of Figma), and made sure each part I wanted to move ended up as its own group in the SVG, so the code had something to grab onto.

Vectorized drawings of my face in Figma: the original grinning avatar, a squinting face with a closed mouth, a side-glancing face, and loose mouth and stubble pieces, with the layer list full of vectors
The avatar pulled apart into seven numbered layers, back to front: the head on a lilac circle, then the face details, mouth, eye whites, irises, lids and brows

It’s not perfect, and there are definitely things I’d like to fix about how the mouth morphs from open to closed and about my workflow in general, but I found both the process and the end result pretty amusing. You can check it out in detail and interact with it on my Motion page.

• Guestbook

I added a Guestbook. I posted about it on Bluesky, but haven’t written a dedicated post about it yet. Maybe it’s good to let it live for a bit before I write that one. The short version: every entry is a little postcard (a background, a stamp, a font, a message) stored in a Neon Postgres database. I picked Neon because I’m familiar with the API, Netlify hooks it up with basically one line, and, most importantly, because the free tier is generous and I am cheap. There are only a handful of tables (entries, stamps, stamp categories, postcard backgrounds), and submitting goes through an Astro Action (a Next.js server action until this month; more on that below), which is just a thin wrapper around plain TypeScript that does the actual work, so the form even works with JavaScript turned off.

Even though I’m not going too deep into this one yet, I do want to give credit where it’s due for the stamps: Katamari Damacy item renders by Andrew Boylan, and Stamps Forever for the real USPS ones. And before you forget, please sign it so I can feed my family.

The bottom half of my home page has needed some love for a while. Not much was going on down there, so I added a featured list (as promised) and a bigger footer. I am under no illusion that this is unique to me, but I really do love taking inspiration from the physical world and bringing that to the web. I’m also pathetically nostalgic despite my best efforts. So in this case, inspiration came in the form of old VHS tapes and the startup screen of Nintendo’s Game Boy Advance.

A stack of ten VHS tapes, spines out: Teenage Mutant Ninja Turtles, Can't Hardly Wait, When Harry Met Sally, a handwritten Maxell tape, Home Alone 2, NBA Guts & Glory, three Star Wars films and Grease
A stack of VHS tapes, and The Minish Cap booting on my Analogue Pocket.

Also, when in doubt, my possibly questionable instinct is to make things 3D, and it still amazes me what can be done with CSS and a little GSAP. Hover over a movie in the list and a little VHS tape follows your cursor, built from nothing but CSS 3D transforms. GSAP never touches the 3D directly; it just tweens a CSS variable (--swing) based on how fast you move, and the CSS does the rest:

.box {
  transform-style: preserve-3d;
  transform: rotateX(var(--pitch))
    rotateY(calc(var(--yaw) + var(--swing, 0) * var(--swing-range)));
}
const setSwing = gsap.quickTo(tape, "--swing", { duration: 0.6, ease: "power3.out" });
setSwing(lean / MAX_LEAN); // -1 … 1

The footer’s Game Boy boot is an SVG animated with a GSAP timeline. To pixelate it, each frame is copied into a canvas at the real Game Boy Advance resolution (240×160), and CSS scales it back up without smoothing:

frame.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(
  new XMLSerializer().serializeToString(svg)
)}`;
frame.decode().then(() => ctx.drawImage(frame, 0, 0));

You can find both on the Motion page too: the VHS tape and the Game Boy boot. The footer is still kind of bare-bones and not quite where I want it to be, so I plan on revisiting it at some point. Also maybe I’ll finally figure out what is supposed to go after the copyright symbol.

• Migrating from Next.js to Astro

I migrated my site from Next.js to Astro earlier this month. When my site was still on Next.js, I found that pages that weren’t already cached could take three to four seconds just to start loading, and it felt quite sluggish. I’m sure that, with some refactoring and hacking about, this latency could be mitigated while staying on Next.js, but I had been looking for a reason to migrate to Astro since my site is mostly static text and images and would be better served by shipping zero JavaScript by default and using Astro’s islands architecture. If you’re thinking about migrating, Astro’s migrating from Next.js guide is a good place to start, or you could point your favorite robot at it and go crazy if you prefer. I decided to keep React for now, which simplified things a bunch. Server actions had to become Astro Actions, and anything a post uses (like the carousels above) had to become an Astro component. I was pleased to see that JavaScript size and Largest Contentful Paint decreased, but most important to me was how much snappier page transitions feel. A success in my eyes! (And the last significant migration I plan on making for a long while 😮‍💨)