🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

monlite

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

monlite

The whole monlite stack in one install: embedded SQLite document database + cache, queue, cron, full-text + vector search, sync, and realtime. One .db file replaces MongoDB, Redis, Qdrant, BullMQ and more.

latest
Source
npmnpm
Version
0.5.1
Version published
Weekly downloads
9
-68.97%
Maintainers
1
Weekly downloads
 
Created
Source

monlite

The whole monlite stack in one install. An embedded SQLite document database plus cache, queue, cron, full-text + vector search, sync, and realtime — one .db file that replaces MongoDB, Redis, Qdrant, BullMQ, a cron server, and a realtime gateway.

npm install monlite
# Node ≥ 22.5 runs zero-dependency on the built-in node:sqlite.
# For Node 18/20 (or to skip the experimental flag): npm install monlite better-sqlite3
import { createDb, kv, createQueue, createCron, fts, vector } from "monlite";

const db = createDb("app.db");

await db.collection("notes").create({ data: { title: "hello", body: "world" } });

const cache = kv(db); // cache, locks, pub/sub, sorted sets
const queue = createQueue(db, "emails"); // durable jobs
const cron = createCron(db); // scheduled jobs
const search = fts(db, "notes", { fields: ["title", "body"] }); // full-text
const vec = vector(db, "notes", { dims: 1536 }); // semantic / RAG memory

Every export is the same object as the standalone @monlite/* package — this is a thin re-export barrel with no logic of its own. Prefer it for a fast "install one thing, get the whole stack" start; @monlite/core remains the minimal zero-dependency install when you want only the database.

What's included

npm install monlite pulls the pure-JS suite:

Top-level + subpathReplacesWhat
monlite (core)MongoDBdocuments, typed queries, aggregation, transactions, reactive watch()
monlite/kvRediscache, atomic locks, TTLs, pub/sub, sorted sets
monlite/queueBullMQdurable job queue — retries, backoff, delays, dedupe
monlite/croncron serverpersisted scheduled jobs — time zones, jitter
monlite/ftsElasticsearchfull-text search (SQLite FTS5)
monlite/vectorQdrant / Pineconevector / semantic search (sqlite-vec, with a JS fallback)
monlite/syncMongoDB Atlas synclocal-first replication to MongoDB / PostgreSQL / MySQL
monlite/realtimeFirebase / Pusherstream live queries to clients over SSE (monlite/realtime/client for the browser)

Each subpath exposes that package's full type surface and is independently tree-shakeable.

Optional / separate

  • monlite/wasm — run in the browser on SQLite-WASM. Optional peer: npm install @monlite/wasm.
  • Electron@monlite/electron (main/renderer over IPC) is a separate install; it isn't bundled here.
  • Studio — the local inspector is a zero-install CLI: npx @monlite/studio app.db.

License

MIT

Keywords

monlite

FAQs

Package last updated on 13 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts