Thursday, August 21, 2025
All the Bits Fit to Print
Serving a static website entirely from Neovim buffers on an old ThinkPad using a Lua plugin.
A developer created a Neovim plugin that serves HTTP requests directly from open buffers using Lua, achieving speeds faster than Nginx on an old ThinkPad. This approach requires no external dependencies and leverages Neovim’s asynchronous IO capabilities for efficient static content delivery.
Why it matters: It demonstrates that text editors like Neovim can be repurposed as lightweight, high-performance web servers with minimal setup.
Stunning stat: nvim-web-server handles 15,284 requests per second at 50 concurrent connections, outperforming Nginx’s 11,305 requests in the same test.
The stakes: Despite its speed, security concerns arise since Neovim and LuaJIT rely on C and assembly code not typically audited for web server use, necessitating container confinement.
Commenters say: Many appreciate the creativity and deep technical analysis, while some caution about security and question the practical use beyond a hobbyist or experimental context.