Posts
-
Building Custom Node.js Streams: Splitting a 1GB File Without Running Out of Memory
January 13, 2026
What started as generating prime numbers for Project Euler problems evolved into a ~1GB file that broke my development tools. Follow along as I build custom Node.js Writable and Transform streams to efficiently split large files, learning about backpressure, memory management, and the pitfalls of garbage collection along the way.
-
Injecting HTML into a Fastify Static File Server
June 3, 2024
Learn how to use a Node.js Buffers and Transform stream to automatically inject HTML content into a Fastify static file server responses.