#4848th of 204 in Backends, databases and hosting
node-mongodb-native
Official MongoDB driver for Node.js with TypeScript types
- Stars
- 10.2k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- TypeScript
10,126 on 25 Apr 202610,172 on 14 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
The official MongoDB client library for Node.js, installed with `npm install mongodb`. It provides MongoClient, CRUD operations, indexing and a typed error hierarchy, and supports MongoDB servers 4.4+. Optional add-on packages cover zstd and snappy compression, field-level and queryable encryption, and Kerberos and AWS authentication.
Who it is for: Node.js and TypeScript developers connecting apps to MongoDB
Strengths
- Maintained by MongoDB; releases are GPG-signed and carry npm provenance attestations
- Ships TypeScript types, checked against typescript 5.6.0 and later
- Semantic versioning with a documented error class tree safe for instanceof checks
- Optional packages for field-level encryption, Kerberos and zstd compression
Weaknesses
- Works only with MongoDB; not a general database abstraction or ODM
- Native add-ons (kerberos, encryption, zstd) can hit C++ compilation problems
- Non-Node runtimes are still in progress; SCRAM-SHA-1 needs Node.js
- Experimental features are excluded from semver and may break in any release
What it needs
- no GPU
- Needs MongoDB server 4.4+, Node.js
What changed
- v7.9.0 ↗ (opens in a new tab)Security fix
CVE-2026-126835. “Node Driver versions from 6.7.0 before 7.9.0 (this release) are affected by a security issue related to OIDC bearer tokens being inappropriately shared to domains outside those allowlisted by the app…”
- v6.22.0 ↗ (opens in a new tab)Security fix
CVE-2026-119179. “Node Driver versions from v6.11.0 before v6.22.0 (this release) and from v7.0.0 before v7.8.0 are affected by a security issue related to the use of the experimental timeoutMS feature where connectio…”
- v7.8.0 ↗ (opens in a new tab)Security fix
CVE-2026-119179, CVE-2026-126837. “Node Driver versions from v6.11.0 and from v7.0.0 before v7.8.0 (this release) are affected by a security issue related to the use of the experimental timeoutMS feature where connection pool desynchr…”
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Backends, databases and hosting
See all 204| Rank | Project | Score |
|---|---|---|
| 1 | bunJavaScript and TypeScript runtime with bundler, test runner and package manager | 94 out of 100 |
| 2 | coolifySelf-hosted Heroku and Vercel alternative that deploys apps and databases over SSH | 93 out of 100 |
| 3 | strapiHeadless CMS that generates REST and GraphQL APIs from content models | 92 out of 100 |
| #4 | traefikHTTP reverse proxy and load balancer that auto-discovers routes from orchestrators | 92 out of 100 |
| #5 | appwriteBackend with auth, databases, storage, functions and an MCP server for agents | 92 out of 100 |