mongoist

JSON →
library 4.0.2 ·javascript maintenance
verified Jun 5, 2026

MongoDB driver for Node.js that wraps the official MongoDB driver with a lazy connection management pattern and async/await-friendly API. Current stable version is 4.0.2, requires Node >=16.20.1, and is released infrequently (last release 2023). Key differentiators vs mongojs: promise-only (no callbacks), lazy connection (supports async connection info via Promises), proxy-based collection access (db.collectionName instead of db.collection('name')). Compared to the official mongodb driver, mongoist automatically manages connections internally, eliminating boilerplate connection code and enabling easy module export of a not-yet-connected db instance.