ALL TAGS

Tag: bun

Runtime

14 Test Files, Zero Flaky Tests: How I Test Every API Domain in Elysia.js Without Jest or Vitest

Why Bun's native test runner replaced my entire testing stack — and how 14 integration test files with real databases, mock modules, and Faker-powered factories give me the confidence to deploy solo.

February 12, 2026 10 min read
Read Story →
Runtime

From 1.2GB to 89MB: The Docker Multi-Stage Build That Changed How I Ship Bun Applications

How I reduced production Docker images by 93% using multi-stage builds, Alpine base images, non-root users, entrypoint migrations, and every optimization pattern I've developed running six services on one VPS.

February 11, 2026 9 min read
Read Story →
Runtime

We Run Cron Jobs Inside the Bun Server Process (And You Should Too)

How we replaced system cron and external job runners with an in-process scheduler in Bun — featuring drift correction, job deduplication, error isolation, and why fewer moving parts means fewer 3 AM pages.

February 7, 2026 18 min read
Read Story →
Runtime

We Built Our Own Hot Reload Because Bun Doesn't Have One (And It's Better)

How we built a custom file watcher for development hot-rebuild in Bun — with debouncing, selective bundle rebuilds, cache invalidation, and why rolling your own DX tooling is sometimes the right call.

February 3, 2026 18 min read
Read Story →
Runtime

I Processed 1.2 Billion Map Records on a $7/Month Server. The Lead Database Industry Doesn't Want You to Know This.

How I built a Bun-powered pipeline that downloads 13GB of OpenStreetMap data, extracts 7.4 million businesses, crawls their websites, and produces over one million qualified leads — all on a single Hetzner VPS.

January 26, 2026 9 min read
Read Story →
Runtime

I Deleted a 200MB Rust Binary From My Docker Image. My Deploys Have Never Been the Same.

How migrating from Prisma 5's Rust query engine to Prisma 7's pure-JavaScript driver adapter cut our Docker image by 42%, slashed cold starts by 68%, and gave us back control of our connection pool.

January 23, 2026 8 min read
Read Story →
Runtime

Your Users Download 1.5MB of JavaScript to See a Landing Page. We Fixed It With an If Statement.

How we split a React SPA into public (400KB), auth (150KB), and private (1.5MB) bundles — selected server-side by URL path, built with Bun, zero framework required.

January 21, 2026 9 min read
Read Story →
Runtime

We Built a 340-Line Static Site Generator That Made Next.js Irrelevant. It Renders 480 Pages in 650ms.

How mentoring.oakoliver.com generates 40 locales × 12 routes at server startup using React 19, hydrates with React Query, and why we'll never go back to a framework for this.

January 17, 2026 9 min read
Read Story →
Runtime

We Replaced Node.js With Bun Across Every Production Service. Here's What Nobody Tells You.

The real story of migrating three production services from Node.js to Bun on a single VPS — cold starts, memory savings, deleted dependencies, and every gotcha that bit us.

January 15, 2026 9 min read
Read Story →