Website migrated to Bun

I migrated calvinf.com from Ruby on Rails to Bun and Elysia.

In December 2025, I migrated this site off WordPress onto Ruby on Rails 8. My posts became Markdown, and I switched the site to a Docker container running on Fly.io.

Rails worked well and the redesign this summer stayed on it. However, the technology and front-end stacks I know best are still TypeScript and JavaScript, and I've been migrating more and more of my sites and tooling to Bun.

In addition to Bun, Mise has become a core component of my website stacks and repos for personal and professional projects. It makes it easy to define and install the runtimes I need on a per-project basis and have it consistent with other collaborators and teammates.

My migration path:

  1. Set up QA and comparison tooling.
  2. Define the technology stack for the new version of the site.
  3. Initiate implementation of the new Bun + Elysia stack. In this case, I used Cursor (now called Grok Build) and the Grok models current at the time.
  4. Set up deployment of the new site to Vercel.
  5. Validate that the new site renders the same content as the old site. Use the sitemap to compare everything.
  6. Cut over the DNS from Fly.io to Vercel and the Bun site goes live.
  7. Clean up the Rails code and the Fly servers.

How to know it was a success

  • Keep the site simple and fast.
  • Get onto a TypeScript stack.
  • Leave the content alone and keep it easy to edit in Markdown.
  • Preserve the date-based blog URLs (/blog/YYYY/MM/DD/${slug}), the archives, and the topic pages.
  • Keep the canonical URLs including the sitemap and Open Graph.
  • Host it on Vercel.

In addition to these, I've also got a reusable QA framework that I can run when I want to try out other tooling, frameworks, or libraries. It's a lot cheaper to experiment that way.

The stack

Here's what I'm using now:

  • Bun (currently 1.4.5) for the runtime, the package manager, the tests, and the build.
  • Elysia for the server
  • Kita for JSX templates
  • @pierre/words for Markdown rendering
  • Tailwind CSS 4
  • Vercel for hosting
  • Playwright for the site contract, QA, and browser checks

What's next

I'm happy to get the site onto Bun. Now I'm going to work on tuning it for even more speed.