All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Introducing @stoolap/node: A Native Node.js Driver for the Rust-Based Stoolap Database

By

murat3ok

3mo ago· 6 min readenNews

Summary

The article introduces @stoolap/node, a native Node.js driver for the Stoolap embedded SQL database written in Rust. The author explains their journey from creating Stoolap as a Go project to rewriting it in Rust for better performance, and now building a Node.js driver using NAPI-RS to provide direct access without HTTP servers or serialization overhead. The driver offers significant performance advantages over traditional approaches, with benchmarks showing it's 2-3x faster than HTTP-based solutions and competitive with other embedded databases.

Key quotes

· 5 pulled
I've been working on Stoolap for a while now, an embedded SQL database written in pure Rust. It started as a Go project, grew into something much bigger, and recently hit a point where I thought: okay, this thing is fast, but how do people actually use it outside of Rust?
The answer, for a lot of developers, is Node.js. So I built @stoolap/node, a native driver powered by NAPI-RS that gives you direct access to Stoolap from JavaScript and TypeScript.
No HTTP server in between. No serialization overhead. Just your Node.js process talking directly to the database engine.
The performance difference is substantial. In my benchmarks, @stoolap/node is about 2-3x faster than the HTTP approach for simple queries, and the gap widens for more complex operations.
What makes Stoolap interesting is that it's not just another SQLite wrapper. It's a completely new database engine built from scratch in Rust, with a focus on being embeddable, fast, and easy to use.
Snippet from the RSS feed
I’ve been working on Stoolap for a while now, an embedded SQL database written in pure Rust. It started as a Go project, grew into something much bigger, and recently hit a point where I thought: okay, this thing is fast, but how do people actually use it

You might also wanna read