Automattic/monk has 1,823 GitHub stars and 180 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 01:58 UTC. Last push 2023-03-13.
The wise MongoDB API
What you can do
- Well-designed API signatures
- Easy connections / configuration
- Command buffering. You can start querying right away
- Promises built-in for all queries. Easy interoperability with modules
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalMonk
note: monk 2.x drop the support for node < 0.12. If you are still using an earlier version, stick to monk 1.x
const db = require('monk')('localhost/mydb')
// or
// const db = require('monk')('user:pass@localhost:port/mydb')
const users = db.get('users')
users.index('name last')
users.insert({ name: 'Tobi', bigdata: {} })
users.find({ name: 'Loki' }, '-bigdata').then(function () {
// exclude bigdata field
})
users.find({}, {sort: {name: 1}}).then(function () {
// sorted by name field
})
users.remove({ name: 'Loki' })
db.close()
Features
- Well-designed API signatures
- Easy connections / configuration
- Command buffering. You can start querying right away
- Promises built-in for all queries. Easy interoperability with modules
- Auto-casting of
_idin queries - Allows to set global options or collection-level options for queries. (eg:
castIdsistrueby default for all queries)
Middlewares
Most of the Monk's features are implemented as middleware.
There are a bunch of third-parties middlewares that add even more functionalities to Monk:
Created an nice middleware? Send a PR to add to the list!
How to use
License
MIT
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,718 starspublic-apis/public-apis
A collective list of free APIs
496,956 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
440,363 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,125 stars