hapi-mongodb

JSON →
library 11.0.0 ·javascript
verified Jun 5, 2026

A Hapi.js plugin that shares a MongoDB connection pool across the entire server. Current stable version 11.0.0, requires Node.js >= 18 and @hapi/hapi >= 20.0.0. Ships with mongodb driver 6.x. Provides server/request decorations for easy access to MongoClient, Db, ObjectID, and the mongodb library. Supports multiple connections via an array of options. Simplifies MongoDB integration in Hapi applications by managing connections and decorations automatically.