# mongo-js/mongojs

Node.js module that implements the offical mongo api

Repository: https://github.com/mongo-js/mongojs
Canonical: https://ross.abutalabs.com/products/mongojs
Homepage: https://mongo-js.github.io/mongojs/
Language: JavaScript
License: MIT
License Family: permissive
Topics: mongodb, mongodb-driver
Last push: 2019-12-07T13:38:03+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5551, "days_push": 2461, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1773, forks 252 (observed 2026-08-28T04:05:34.280373+00:00)

## What it is
mongojs is a Node.js module that wraps the official MongoDB native driver and emulates the official MongoDB shell API with callback-style methods. It lets developers query and update MongoDB collections using familiar mongo shell syntax directly from JavaScript code.

## Use cases
- connect to mongodb from node.js
- query mongodb collections with mongo shell syntax
- find and update documents in mongodb
- connect to mongodb with a connection string and credentials
- iterate over mongodb query results with forEach
- use ObjectId to look up documents by id

## When to choose
- you want a thin, easy-to-use MongoDB API in Node.js that mirrors the mongo shell
- you prefer callback-style database access over promise-based drivers
- you are maintaining an existing codebase already built on mongojs

## When to avoid
- you need a modern promise/async-await MongoDB driver with active development
- you need support for the latest MongoDB server features and driver versions
- you are starting a new project where the official mongodb driver or an ODM like mongoose would be a better fit

## Facets
- artifact type: library
- maturity: maintenance
- function: database-driver, database
- domain: databases, backend, developer-tools
- platform: -
- tags: mongodb, mongodb-driver, callback-based, wrapper, nodejs, javascript

## Member repositories
- mongo-js/mongojs (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:34.280373+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:25:27.733076+00:00, confidence not recorded.
  - readme: https://github.com/mongo-js/mongojs (fetched 2026-08-28T04:05:34.280373+00:00, sha 24957f3d7837)
  - homepage: https://mongo-js.github.io/mongojs/ (fetched 2026-08-29T11:04:22.064016+00:00, sha 985006817bf1)
  - registry_npm: https://registry.npmjs.org/mongojs (fetched 2026-08-29T11:04:22.066820+00:00, sha 434dc3062098)
- Data as of 2026-08-30T08:39:29.467469+00:00.
