MongoDB-backed session store for express-session. Current stable version is 1.0.0, released in 2025. It targets Node.js >=22 and supports both native MongoDB driver and Mongoose adapters. A modern rewrite of the original Express 2/Mongoose store, it provides ESM and CommonJS compatibility, TypeScript types, and a simple API. Key differentiators include a pluggable adapter pattern, automatic TTL index creation, and deprecated migration helpers for legacy code.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Named export for native MongoDB driver store. ESM only. Requires mongodb package.
Named export for Mongoose store. ESM and CJS both supported with named exports. Requires mongoose.
Factory function that returns a store instance. Useful for dynamic configuration.
Factory function for Mongoose store. Accepts same options object.
Shows how to set up a session store using native MongoDB driver with express-session.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.