koa-mongo
JSON →koa-mongo is a MongoDB middleware for Koa 2 that provides connection pool management via generic-pool. Version 1.9.3 is the latest stable release. It attaches an initialized MongoClient to `ctx.mongo` and a database handle to `ctx.db`, allowing direct access to native MongoDB driver methods. Supports both URI and separate host/port configuration. Compared to alternatives like koa-mongodb, koa-mongo is lightweight and explicitly integrates with Koa's middleware pattern, but relies on the deprecated MongoDB driver v3.x API and lacks built-in TypeScript types.
Traffic · last 30 days stale · no recent hits
total hits 10
actors 3 distinct systems
last hit 17d ago AhrefsBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France
Resources
packagekoa-mongo ↗