# Automattic/monk

The wise MongoDB API

Repository: https://github.com/Automattic/monk
Canonical: https://ross.abutalabs.com/products/monk
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2023-03-13T18:02:49+00:00

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

## Adoption (not part of the score)
Stars 1827, forks 180 (observed 2026-08-28T04:05:41.507680+00:00)

## What it is
Monk is a lightweight Node.js library providing a simplified, promise-based API layer on top of the MongoDB driver. It offers usability improvements like command buffering, auto-casting of IDs, and a middleware system.

## Use cases
- simplify mongodb queries in node.js
- promise-based mongodb access
- use mongodb without verbose driver boilerplate
- auto-cast mongodb objectids in queries
- add middleware to mongodb operations

## When to choose
- you want a friendlier, promise-based API over raw MongoDB in Node.js
- you need quick setup with command buffering and simple configuration
- you want extensible middleware for query behavior

## When to avoid
- you need the full feature set and latest MongoDB capabilities of the official driver
- you use an ORM/ODM with schemas and validation like Mongoose
- the project appears in maintenance mode with infrequent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: database-driver, middleware
- domain: databases, backend, developer-tools
- platform: -
- tags: mongodb, promise-based, query-builder, nosql, nodejs, javascript

## Member repositories
- Automattic/monk (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:41.507680+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:19:24.598071+00:00, confidence not recorded.
  - readme: https://github.com/Automattic/monk (fetched 2026-08-28T04:05:41.507680+00:00, sha 048f20f8a3c7)
  - registry_npm: https://registry.npmjs.org/monk (fetched 2026-08-29T10:58:20.151635+00:00, sha 3f9954ba4737)
- Data as of 2026-08-30T08:39:29.467469+00:00.
