#6464th of 354 in Backends, databases and hosting

mongoose

MongoDB object modeling library for Node.js with schemas, validation and middleware

Releases and problems feed (RSS)

Stars
27.5k
License
MIT
Last commit
Nov 2026
Last release
Nov 2026
Language
JavaScript
Stars, last 29 weeks+154
2 May 2026: 27,298 stars9 May 2026: 27,308 stars16 May 2026: 27,314 stars23 May 2026: 27,318 stars30 May 2026: 27,323 stars6 Jun 2026: 27,332 stars13 Jun 2026: 27,337 stars20 Jun 2026: 27,339 stars27 Jun 2026: 27,345 stars4 Jul 2026: 27,352 stars11 Jul 2026: 27,355 stars18 Jul 2026: 27,360 stars25 Jul 2026: 27,364 stars1 Aug 2026: 27,370 stars8 Aug 2026: 27,374 stars15 Aug 2026: 27,376 stars22 Aug 2026: 27,381 stars29 Aug 2026: 27,387 stars5 Sept 2026: 27,393 stars12 Sept 2026: 27,397 stars19 Sept 2026: 27,404 stars26 Sept 2026: 27,409 stars3 Oct 2026: 27,414 stars10 Oct 2026: 27,418 stars17 Oct 2026: 27,422 stars24 Oct 2026: 27,427 stars31 Oct 2026: 27,433 stars7 Nov 2026: 27,438 stars14 Nov 2026: 27,443 stars21 Nov 2026: 27,452 stars

27,298 on 2 May 202627,452 on 21 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Mongoose is an ODM for MongoDB built on the official Node.js driver. Schemas define document structure, validators, defaults, getters, setters, indexes, middleware and populate (pseudo-JOINs). It runs on Node.js, with alpha Deno support, and installs through npm, pnpm, Yarn or Bun.

Who it is for: Node.js developers building apps on MongoDB who want schemas and validation

Strengths

  • Schema-level validators, defaults, indexes and pre/post middleware for documents and embedded documents
  • Buffers commands until connected, so models and queries can be defined before connect completes
  • Built on the official MongoDB Node.js driver; raw collection stays reachable via Model.collection
  • Plugin system with hundreds of community modules listed on plugins.mongoosejs.io

Weaknesses

  • MongoDB only; no support for other databases
  • Deno support is labelled alpha
  • Using Model.collection directly bypasses hooks and validation
  • Version 9.0.0 includes backwards-breaking changes requiring a migration guide

What it needs

  • no GPU
  • Needs MongoDB, Node.js

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Known problems

Reported, then fixed by a linked change

Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.

Also in Backends, databases and hosting

See all 354
Also in Backends, databases and hosting
RankProjectScore
#62kyselyType-safe SQL query builder for TypeScript with autocompletion Live demo ↗ (opens in a new tab)14.4k starsMIT84 out of 100
#63redisIn-memory data structure server used as cache, database and message broker77.8k starscustom license83 out of 100
#65phoenixframework/phoenixElixir web framework for HTTP, WebSocket channels and server-rendered apps23.2k starsMIT83 out of 100
#66logtoSelf-hostable OIDC, OAuth 2.1 and SAML auth service with multi-tenancy and RBAC15k starsMPL-2.083 out of 100
#67webiny-jsTypeScript headless CMS and website builder deployed to your AWS account8.1k starscustom license83 out of 100