mongoose
npmv9.7.4TypeScriptMongoose MongoDB ODM
Overview
mongoose is an npm package that mongoose MongoDB ODM. It is very popular, with about 5.7M downloads per week. The latest version is 9.7.4, 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 (5.7M 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.
Relationship graph
Dependencies (left) and dependents (right) of mongoose.
Dependencies
Runtime (7)
Dev (37)
Alternatives to mongoose
A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3
Media Type Database
Drizzle ORM package for SQL databases
Fastest full featured PostgreSQL client for Node.js
Expressive query building for MongoDB
TypeScript-first schema declaration and validation library with static type inference
A querystring parser that supports nesting and arrays, with a depth limit
The official runtime utils for Standard Schema
PostgreSQL client - pure javascript & libpq with the same API
Connection pool for node-postgres
Protocol Buffers for ECMAScript. The only JavaScript Protobuf library that is fully-compliant with Protobuf conformance tests.
Type safe SQL query builder
Version history
| Version | Published | License |
|---|---|---|
| 7.8.11 | 12 days ago | MIT |
| 9.7.4latest | 12 days ago | MIT |
| 9.7.3 | 22 days ago | MIT |
| 6.13.10 | 26 days ago | MIT |
| 7.8.10 | 26 days ago | MIT |
| 8.24.1 | 26 days ago | MIT |
| 9.7.2 | 26 days ago | MIT |
| 9.7.1 | 1 month ago | MIT |
| 9.7.0 | 1 month ago | MIT |
| 9.6.3 | 1 month ago | MIT |
| 8.24.0 | 2 months ago | MIT |
| 9.6.2 | 2 months ago | MIT |
| 9.6.1 | 2 months ago | MIT |
| 9.6.0 | 2 months ago | MIT |
| 8.23.1 | 2 months ago | MIT |
| 9.5.0 | 2 months ago | MIT |
| 9.4.1 | 3 months ago | MIT |
| 9.4.0 | 3 months ago | MIT |
| 9.3.3 | 3 months ago | MIT |
| 9.3.2 | 3 months ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install mongoose?
Run `npm install mongoose` to add mongoose to your npm project.
What license is mongoose released under?
mongoose is distributed under the MIT license.
How popular is mongoose?
mongoose has approximately 5,734,375 downloads per week.