Menu

I Built a Lightweight Embedded Database for Node.js — LioranDB

DEV Community: node·Swaraj Puppalwar·7 months ago
#ycu6ZllV
#dev#class#strong#code#highlight
Reading 0:00
15s threshold

I'm a 17-year-old full stack developer and CTO at Lioran Group.

A few months ago, I started building a fun prototype for a lightweight and embedded database for my own projects. While working on it, I realized it was saving me a lot of development time because the syntax is similar to MongoDB , while staying fully NoSQL and file-based .

Over the last 5 months , I focused on improving stability, performance, and reliability.

One of the major advantages of LioranDB is that it can run anywhere and is designed to be lightweight and memory-efficient .

For 1 million documents :

200 MB RAM

300 MB storage (including WAL + indexes)

To install:

npm i @liorandb/core

Sample Code:

import { LioranManager } from " @liorandb/core " ;

const manager = new LioranManager ({ // optional: where databases live on disk // rootPath: "./data", });

const db = await manager . db ( " app " ); const users = db . collection ( " users " );

await users .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.