mongodb/mongoid
The Official Ruby Object Mapper for MongoDB observed · 2026-08-28
Health v2 · maintenance only
93/100
- Activity 98
- Release rhythm 83
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 1
- age_days: 6195
- days_rel: 117
- days_push: 12
- n_releases_24m: 24
Adoption not part of the score
3912 stars · 1383 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Mongoid is the official Object-Document Mapper (ODM) framework for MongoDB in Ruby, built on top of the official Ruby MongoDB driver. It provides ActiveRecord-like modeling, querying, and Rails integration for document-based persistence.
Use cases
- map Ruby classes to MongoDB documents
- use MongoDB models in a Rails app like ActiveRecord
- query MongoDB with a Ruby DSL instead of raw driver calls
- define associations and validations for document models
- migrate a Rails app from SQL to MongoDB
- manage nested documents and embedded associations in Ruby
When to choose
- you are building a Ruby or Rails application backed by MongoDB
- you want an ActiveRecord-like API for document data
- you need an officially supported, actively maintained MongoDB ODM
When to avoid
- your project uses a relational database instead of MongoDB
- you prefer lightweight direct driver access without an ORM layer
- you need an ODM for another language or framework
Facets
library · maturity stable
orm database-driver database databases web-development backend developer-tools ruby jvm mongodb odm ruby-on-rails object-document-mapper nosql
9 sources
- readme: https://github.com/mongodb/mongoid · fetched 2026-08-28 · 9055e68cb750
- homepage: https://www.mongodb.com/docs/mongoid · fetched 2026-08-29 · 1f0325bdd4e7
- site_page: https://www.mongodb.com/docs/atlas · fetched 2026-08-29 · f312e042649e
- site_page: https://www.mongodb.com/docs/manual · fetched 2026-08-29 · 6a4548d2a71b
- site_page: https://www.mongodb.com/docs/tools-and-connectors · fetched 2026-08-29 · 7c907d21d3d3
- site_page: https://www.mongodb.com/docs/drivers · fetched 2026-08-29 · 194534c44bc5
- site_page: https://www.mongodb.com/docs/atlas/architecture/current/solutions-library · fetched 2026-08-29 · 0dfd723aadd5
- site_page: https://www.mongodb.com/company/partners · fetched 2026-08-29 · 342527daf5e8
- site_page: https://www.mongodb.com/company/newsroom · fetched 2026-08-29 · e3f69e7b7c0c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mongodb/mongoid | main | 93 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem