{"id":23593121,"url":"https://github.com/ggondim/mongobubble","last_synced_at":"2025-05-07T19:23:18.049Z","repository":{"id":179260314,"uuid":"570749637","full_name":"ggondim/mongobubble","owner":"ggondim","description":"🍃🫧 MongoBubble is the next-generation framework for reading and writing to MongoDB databases.","archived":false,"fork":false,"pushed_at":"2024-01-26T16:42:46.000Z","size":258,"stargazers_count":4,"open_issues_count":8,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-04T00:34:57.554Z","etag":null,"topics":["ejson","mongodb","odm","orm","repository","schema","validation"],"latest_commit_sha":null,"homepage":"https://mongobubble.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ggondim.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-26T02:15:14.000Z","updated_at":"2024-01-17T03:15:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"66cd2b8b-e727-441d-a460-840f3c63d009","html_url":"https://github.com/ggondim/mongobubble","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"0f720da0cbf27d3b4a038bfd8f762a3a6e14ed4e"},"previous_names":["ggondim/mongobubble"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggondim%2Fmongobubble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggondim%2Fmongobubble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggondim%2Fmongobubble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggondim%2Fmongobubble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ggondim","download_url":"https://codeload.github.com/ggondim/mongobubble/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252941824,"owners_count":21828943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ejson","mongodb","odm","orm","repository","schema","validation"],"created_at":"2024-12-27T08:18:14.406Z","updated_at":"2025-05-07T19:23:18.029Z","avatar_url":"https://github.com/ggondim.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  🍃🫧 \u003ca href=\"https://mongobubble.com/\"\u003eMongoBubble\u003c/a\u003e\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eA MongoDB framework for Node.js and TypeScript.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/mongobubble\" /\u003e\n  \u003cimg src=\"https://img.shields.io/bundlephobia/min/mongobubble\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/last-commit/ggondim/mongobubble\" /\u003e\n\u003c/p\u003e\n\n\u003chr\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://mongobubble.com/docs/guides/getting-started\"\u003eGetting started\u003c/a\u003e\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u003ca href=\"https://mongobubble.com/#features\"\u003eFeatures\u003c/a\u003e\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u003ca href=\"https://mongobubble.com/docs/introduction/\"\u003eDocs\u003c/a\u003e\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u003ca href=\"https://mongobubble.com/docs/about/contributing/\"\u003eContributing\u003c/a\u003e\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u003ca href=\"https://discord.gg/8tHgqen7Fk\"\u003eDiscord\u003c/a\u003e\n\u003c/p\u003e\n\n\u003chr\u003e\n\nMongoBubble is the next-generation framework for reading and writing to MongoDB databases.\n\nWith an agnostic design philosophy, you can use MongoBubble wihtout any schema modeling, just for a simple repository implementation.\n\nOn the other hand, you can use MongoBubble to build a full featured application, with modern schema modeling, validation, common enterprise patterns and more.\n\nActually, MongoBubble acts like a midway between a proprietary ODM (like Mongoose) and a simple MongoDB driver.\n\nIt was inspired from the official MongoDB Node.js Driver plus the latest technologies like JSON Schema, HTTP PATCH and JSON Patch, TypeScript and the latest JavaScript features.\n\n\u003chr\u003e\n\n\u003c!-- ## Features\n\n\u003cdl\u003e\n  \u003cdt\u003e\u003cstrong\u003eEntity \u0026 Repository classes compatible with MongoDB Driver\u003c/strong\u003e 🍃\u003c/dt\u003e\n  \u003cdd\u003eDefine your entity classes in TypeScript and use repository methods like the native driver's methods.\u003c/dd\u003e\n\n  \u003cdt\u003e\u003cstrong\u003eSchema validation with JSON Schema\u003c/strong\u003e 🧩\u003c/dt\u003e\n  \u003cdd\u003eDefine \u003ca href=\"https://json-schema.org/\"\u003eJSON schemas\u003c/a\u003e for your classes, automatically generated from typings or handcrafted, with \u003ca href=\"https://github.com/BoLaMN/ajv-bsontype\"\u003e\u003ccode\u003ebsontype\u003c/code\u003e\u003c/a\u003e validation support.\u003c/dd\u003e\n\n  \u003cdt\u003e\u003cstrong\u003eTs.ED decorators support\u003c/strong\u003e 🎀\u003c/dt\u003e\n  \u003cdd\u003eInstead of defining schemas, use \u003ca href=\"https://tsed.io/docs/model.html\"\u003eTs.ED Model decorators\u003c/a\u003e to specify property constraints.\u003c/dd\u003e\n\n  \u003cdt\u003e\u003cstrong\u003eDocument versioning\u003c/strong\u003e 🔢\u003c/dt\u003e\n  \u003cdd\u003eAutomatic versioning of documents, incremented in each write operation.\u003c/dd\u003e\n\n  \u003cdt\u003e\u003cstrong\u003eDocument timestamps\u003c/strong\u003e 🏷️\u003c/dt\u003e\n  \u003cdd\u003eAutomatic saving of timestamps in main entity events, such as \u003ccode\u003ecreated\u003c/code\u003e, \u003ccode\u003eupdated\u003c/code\u003e, etc., with optional authoring and comments information.\u003c/dd\u003e\n\n  \u003cdt\u003e\u003cstrong\u003ePatch operations with JSON Patch objects\u003c/strong\u003e 📝\u003c/dt\u003e\n  \u003cdd\u003eRun patch operations with native MongoDB update object or with a \u003ca href=\"https://jsonpatch.com/\"\u003eJSON Patch\u003c/a\u003e array.\u003c/dd\u003e\n\n  \u003cdt\u003e\u003cstrong\u003eLifecycle management\u003c/strong\u003e 🚥\u003c/dt\u003e\n  \u003cdd\u003eEasy lifecycle plugin to separate drafts from published objects and also for soft delete (a.k.a. archive).\u003c/dd\u003e\n\n  \u003cdt\u003e\u003cstrong\u003eAtlas Online Archive support\u003c/strong\u003e 🪦\u003c/dt\u003e\n  \u003cdd\u003eAutomatic connection shitching when accessing hot or \u003ca href=\"https://www.mongodb.com/atlas/online-archive\"\u003eOnline Archive\u003c/a\u003e data using \u003ca href=\"https://www.mongodb.com/docs/atlas/online-archive/connect-to-online-archive/#connect-to-the-federated-database-instance-for-your-online-archive\"\u003efederated connections\u003c/a\u003e.\u003c/dd\u003e\n\n  \u003cdt\u003e\u003cstrong\u003eEasy extension with plugins\u003c/strong\u003e 🔌\u003c/dt\u003e\n  \u003cdd\u003eWrite your own plugins with interceptors hooks to run before or after repository operations.\u003c/dd\u003e\n\n  \u003cdt\u003e\u003cstrong\u003eUtilities\u003c/strong\u003e 🎁\u003c/dt\u003e\n  \u003cdd\u003eMany other utilities like document branching/cloning, relationship modeling and external/federated identity modeling.\u003c/dd\u003e\n\u003c/dl\u003e\n\n\u003cbr\u003e\u003chr\u003e\n\n## TL;DR: basic usage\n[![](https://img.shields.io/static/v1?label=Try%20it%20online%20on\u0026message=RunKit\u0026color=f55fa6)](https://npm.runkit.com/mongobubble) --\u003e\n\n\n## Documentation\n\n* [Website](https://mongobubble.com/)\n* [Introduction](https://mongobubble.com/docs/introduction/)\n* [Getting started](https://mongobubble.com/docs/guides/getting-started/)\n* [Migrating from Mongoose](https://mongobubble.com/docs/guides/mongoose/)\n* [Modeling](https://mongobubble.com/docs/modeling/class/)\n* [Repository](https://mongobubble.com/docs/repository/constructor/)\n* [Lifecycle and metadata](https://mongobubble.com/docs/lifecycle/introduction/)\n* [Plugins and utilities](https://mongobubble.com/docs/plugins/how-to-use/)\n\n\n## Help\n\n![](https://img.shields.io/github/issues/ggondim/mongobubble)\n\nIf you need help or have a problem with this project \u003c!--and you did not find you problem in FAQ above, --\u003e[start an issue](https://github.com/ggondim/mongobubble/issues).\n\n\u003e _We don't provide a SLA to your issue, so, don't expect it to be answered in a short time._\n\n\u003cbr/\u003e\n\n## Contributing\n\n* [Spread the word](https://mongobubble.com/docs/about/contributing/#spread-the-word)\n* [Consider making a donation](https://mongobubble.com/docs/about/contributing/#donations)\n* [Help improving code and documentation](https://mongobubble.com/docs/about/contributing/#code-and-documentation)\n\n\u003cbr/\u003e\n\n## Roadmap\n\n[MongoBubble Public Roadmap](https://github.com/users/ggondim/projects/3)\n\n\u003c!-- * [ ] Declare decorators in EntityWithMetadata class\n* [ ] Create a MultiConnectionManager to help with many database connections\n* [ ] BsonTypeConversionPlugin to automatically convert JavaScript types to specific BsonTypes infered by decorators and using EJSON\n* [ ] Generate API docs automatically\n* [ ] A static github.io website with documentation\n* [ ] Develop plugin tests\n* [ ] Improve documentation\n* [ ] Write examples\n* [ ] Clear \"TODO\" items --\u003e\n\n\u003cbr/\u003e\n\n## Hall of fame\n\n### Who is using\n\nBe the first to put your company name here!\n\n### Contributors\n\n[![](https://sourcerer.io/fame/ggondim/mongobubble/images/0)](https://sourcerer.io/fame/ggondim/mongobubble/links/0)\n\n### Backers\n\n\u003cobject type=\"image/svg+xml\" data=\"https://opencollective.com/collective/tiers/backers.svg?avatarHeight=36\u0026width=600\"\u003e\u003c/object\u003e\n\n### Sponsors\n\n\u003cobject type=\"image/svg+xml\" data=\"https://opencollective.com/collective/tiers/Sponsors.svg?avatarHeight=36\u0026width=600\"\u003e\u003c/object\u003e\n\n\u003cbr/\u003e\n\n## License\n\n![](https://img.shields.io/github/license/ggondim/mongobubble)\n\n© 2023 MongoBubble. Code licensed under the [MIT License](LICENSE.md). Documentation licensed under CC BY-NC-SA 4.0.\n\n\u003cbr/\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggondim%2Fmongobubble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fggondim%2Fmongobubble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggondim%2Fmongobubble/lists"}