Skip to content
Artwork for The Node (and more) Banter
The Node (and more) Banter · Wednesday · 30 min

SQLite Is Just a File: Porting Litestream to Node.js

SQLite is everywhere, but most teams still avoid it in production for one reason: it’s a single file on a single machine, and when that machine dies, the data goes with it. Litestream solved this by streaming the write-ahead log to object storage, but it’s a separate Go binary you have to deploy alongside your app. Matteo and Luca talk about sqlite-js-stream, Platformatic’s TypeScript port of Litestream, which runs inside your Node.js process with no sidecar and no build step. They cover how it works under the hood, where its limits are (this is disaster recovery, not a distributed database), and how it was built: an AI coding agent wrote the port, while a human wrote the plan, reviewed every diff and made the architecture calls. What does “AI-written” really mean when the human still owns the design?

0:00-30:01

transcript

No transcript — this publisher did not publish one.

show notes

SQLite is everywhere, but most teams still avoid it in production for one reason: it’s a single file on a single machine, and when that machine dies, the data goes with it. Litestream solved this by streaming the write-ahead log to object storage, but it’s a separate Go binary you have to deploy alongside your app.

Matteo and Luca talk about sqlite-js-stream, Platformatic’s TypeScript port of Litestream, which runs inside your Node.js process with no sidecar and no build step. They cover how it works under the hood, where its limits are (this is disaster recovery, not a distributed database), and how it was built: an AI coding agent wrote the port, while a human wrote the plan, reviewed every diff and made the architecture calls.

What does “AI-written” really mean when the human still owns the design?