mongoose
npmv9.9.5TypeScriptMongoose MongoDB ODM
Safe to adopt
Yes — mongoose scores well across adoption, maintenance, weight, supply chain, and licensing. 6.1M downloads per week. Last published 5 days ago. 50 releases in the last 2 years.
- AAdoption: grade A, Excellent.
6.1M downloads per week.
- AMaintenance: grade A, Excellent.
Last published 5 days ago. 50 releases in the last 2 years.
- BWeight: grade B, Good.
Pulls in 19 transitive packages, about 9.7 MB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 3 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding mongoose to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing mongoose, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=20.19.0
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the mongoose README.
// Using Node.js `require()`
const mongoose = require('mongoose');
// Using ES6 imports
import mongoose from 'mongoose';mongoose vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| mongoosethis page | 6.1M | 0 | MIT | 5 days ago |
| knex | 0 | 1 | MIT | 1 day ago |
| drizzle-orm | 19M | 0 | Apache-2.0 | 1 day ago |
| mquery | 4.4M | 1 | MIT | 1 day ago |
| postgres | 0 | 1 | Unlicense | 1 day ago |
| mime-db | 0 | 2 | MIT | 1 day ago |
Dependencies
Declared by mongoose v9.9.5. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (7)
Dev (37)
Relationship graph
Dependencies (left) and dependents (right) of mongoose.
Release history
50 releases in the last two years, typically about 3 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 9.9.5latest | 5 days ago | 2.0 MB | MIT |
| 9.9.4 | 15 days ago | 2.0 MB | MIT |
| 8.24.4 | 19 days ago | 2.5 MB | MIT |
| 9.9.3 | 23 days ago | 2.0 MB | MIT |
| 6.13.11 | 1 month ago | 2.2 MB | MIT |
| 7.8.12 | 1 month ago | 2.5 MB | MIT |
| 8.24.3 | 1 month ago | 2.5 MB | MIT |
| 9.9.2 | 1 month ago | 2.0 MB | MIT |
| 9.9.1 | 1 month ago | 2.0 MB | MIT |
| 9.9.0 | 1 month ago | 2.0 MB | MIT |
| 8.24.2 | 1 month ago | 2.5 MB | MIT |
| 9.8.1 | 1 month ago | 2.0 MB | MIT |
| 9.8.0 | 1 month ago | 2.0 MB | MIT |
| 7.8.11 | 2 months ago | 2.5 MB | MIT |
| 9.7.4 | 2 months ago | 2.0 MB | MIT |
Overview
mongoose is an npm package that mongoose MongoDB ODM. It is very popular, with about 6.1M downloads per week. The latest version is 9.9.5, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need mongoose MongoDB ODM and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (6.1M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (44 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use mongoose?
Yes — mongoose scores well across adoption, maintenance, weight, supply chain, and licensing. 6.1M downloads per week. Last published 5 days ago. 50 releases in the last 2 years.
How do I install mongoose?
Run `npm install mongoose` to add mongoose to your npm project.
How many dependencies does mongoose have?
mongoose declares 44 direct dependencies and pulls in 19 packages in total once its runtime tree is resolved totalling about 9.7 MB on disk.
What license is mongoose released under?
mongoose is distributed under the MIT license. Its dependency tree also includes: Apache-2.0, BSD-2-Clause, MIT.
How popular is mongoose?
mongoose has approximately 6,061,531 downloads per week.
Is mongoose still maintained?
The most recent release of mongoose (v9.9.5) was published 5 days ago.
Does mongoose run install scripts?
No. mongoose does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.