</>PackageGraphPackageGraph

mongoose

npmv9.9.5TypeScript

Mongoose 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.

7
Direct dependencies

Runtime packages this one declares itself.

19
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

9.7 MB
Install size

Unpacked size of this package plus its entire runtime tree.

5
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

Apache-2.0BSD-2-ClauseMIT

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.

javascriptFull 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.

PackageWeekly downloadsDependentsLicenseLast release
mongoosethis page6.1M0MIT5 days ago
knex01MIT1 day ago
drizzle-orm19M0Apache-2.01 day ago
mquery4.4M1MIT1 day ago
postgres01Unlicense1 day ago
mime-db02MIT1 day ago

Dependencies

Declared by mongoose v9.9.5. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (37)

@ark/attest 0.56.3@eslint/js ^9.39.3@mongodb-js/mongodb-downloader ^1.0.0@types/node ^20.19.0acquit 1.4.0acquit-ignore 0.2.2acquit-require 0.1.1ajv 8.20.0c8 12.0.0cheerio 1.2.0dox 1.0.0eslint 10.9.1eslint-plugin-mocha-no-only 1.2.0express 5.2.1fs-extra ~11.4.0glob ^13.0.6globals ^17.4.0highlight.js 11.12.0linkinator 8.xlodash.isequal 4.5.0lodash.isequalwith 4.4.0markdownlint-cli2 0.23.2marked 18.0.11mkdirp ^3.0.1mocha 12.0.0-rc.5moment 2.30.1mongodb-client-encryption ^7.2.0mongodb-memory-server 11.2.0mongodb-runner ^6.0.0ncp ^2.0.0pug 3.0.4sinon 22.1.0tstyche ^7.0.0typescript 5.9.3typescript-eslint ^8.31.1uuid 14.0.2xss 1.0.15

Relationship graph

Dependencies (left) and dependents (right) of mongoose.

Release history

50 releases in the last two years, typically about 3 days apart.

Recent versions of mongoose
VersionPublishedSizeLicense
9.9.5latest5 days ago2.0 MBMIT
9.9.415 days ago2.0 MBMIT
8.24.419 days ago2.5 MBMIT
9.9.323 days ago2.0 MBMIT
6.13.111 month ago2.2 MBMIT
7.8.121 month ago2.5 MBMIT
8.24.31 month ago2.5 MBMIT
9.9.21 month ago2.0 MBMIT
9.9.11 month ago2.0 MBMIT
9.9.01 month ago2.0 MBMIT
8.24.21 month ago2.5 MBMIT
9.8.11 month ago2.0 MBMIT
9.8.01 month ago2.0 MBMIT
7.8.112 months ago2.5 MBMIT
9.7.42 months ago2.0 MBMIT

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

Keywords

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.