Skip to content

maku85/awesome-mongoose-plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 

Repository files navigation

Awesome Mongoose Plugins Awesome

A curated list of plugins for Mongoose πŸ’.
A collection of extensions to make your life with MongoDB easier.


πŸ“‘ Contents


πŸ›  General Utilities

Plugin Stars Downloads Last commit Description
mongoose-deep-populate stars downloads last-commit Enable deep population of nested models.
mongoose-troop stars downloads last-commit Adds modular, reusable plugins and methods to Mongoose schemas, promoting clean code and schema composition.
mongoose-autopopulate stars downloads last-commit Automatically populates ref fields without calling .populate().
mongoose-findorcreate stars downloads last-commit Adds a findOrCreate helper method to Mongoose models, simplifying the pattern of finding a document or creating it if it does not exist.
mongoose-relationship stars downloads last-commit Manages bi-directional document references, keeping parent and child relationships automatically in sync.
mongoose-long stars downloads last-commit Adds support for 64-bit integers (Long) in Mongoose schemas, enabling storage of large numeric values.
mongoose-update-if-current stars downloads last-commit Brings optimistic concurrency control to documents by incrementing version numbers on each save and preventing previous versions of a document from being saved over the current version.
mongoose-plugin-autoinc stars downloads last-commit Auto-increments any ID field on schema every time a document is saved.
mongoose-lean-virtuals stars downloads last-commit Adds support for virtuals in .lean() queries.
mongoose-url-slugs stars downloads last-commit Automatically generates URL-friendly slugs for Mongoose documents based on one or more fields.
mongoose-lean-defaults stars downloads last-commit Adds schema default values to documents returned from .lean() queries.
mongoose-lean-getters stars downloads last-commit Applies getters to .lean() query results.
mongoose-legacy-pluralize stars downloads last-commit Restores Mongoose’s legacy pluralization logic for collection names, useful for backward compatibility with older codebases.
mongoose-currency-convert stars downloads last-commit Adds automatic currency conversion capabilities to Mongoose models using real-time exchange rates.

🧰 Developer Tools

Plugin Stars Downloads Last commit Description
swagger-mongoose stars downloads last-commit Generates Mongoose models and schemas from Swagger/OpenAPI definitions.

βœ… Validation & Security

Plugin Stars Downloads Last commit Description
passport-local-mongoose stars downloads last-commit Simplifies integration of Passport.js local authentication with Mongoose models, including password hashing and user management.
mongoose-auth stars downloads last-commit Provides authentication helpers for Mongoose models, supporting password hashing, OAuth, and user management.
mongoose-unique-validator stars downloads last-commit Validates uniqueness of fields before saving.
mongoose-validator stars downloads last-commit Wrapper for validator.js to use as Mongoose validators.
mongoose-beautiful-unique-validation stars downloads last-commit Enhances MongoDB unique constraint errors with cleaner, user-friendly validation messages.
mongoose-hidden stars downloads last-commit Hides sensitive fields (like passwords or tokens) from JSON.stringify().
mongoose-acl stars downloads last-commit Adds access control lists (ACL) to Mongoose models, enabling fine-grained permissions.

⚑ Caching & Performance

Plugin Stars Downloads Last commit Description
cachegoose stars downloads last-commit Adds caching to Mongoose queries using Redis or other backends, reducing database load.
ts-cache-mongoose stars downloads last-commit Cache query and aggregate in mongoose using in-memory or redis.

πŸ“Š Pagination & Query

Plugin Stars Downloads Last commit Description
mongoosastic stars downloads last-commit Integrates Mongoose models with Elasticsearch, providing real-time indexing and search capabilities.
mongoose-paginate-v2 stars downloads last-commit Advanced pagination plugin for queries.
mongoose-aggregate-paginate-v2 stars downloads last-commit Pagination for aggregation queries.
mongoose-fuzzy-searching stars downloads last-commit Fuzzy full-text search across multiple fields.
mongoose-paginate-ts stars downloads last-commit TypeScript-friendly pagination plugin for Mongoose models, offering flexible query and result pagination utilities.

🌍 Internationalization (i18n)

Plugin Stars Downloads Last commit Description
mongoose-intl stars downloads last-commit Adds multilingual field support to Mongoose schemas with locale fallback and helpers.

🌳 Tree & Hierarchical Data

Plugin Stars Downloads Last commit Description
mongoose-nested-set stars downloads last-commit Implements the Nested Set pattern for hierarchical data.
mongoose-tree stars downloads last-commit Adds tree structure support to Mongoose schemas, enabling parent-child relationships and hierarchical queries.
mongoose-mpath stars downloads last-commit Implements materialized path pattern for hierarchical data in Mongoose, enabling easy retrieval of ancestors, descendants, and subtrees.
mongoose-materialized stars downloads last-commit Adds support for hierarchical data using the materialized path pattern.

⏱ Timestamps & Audit

Plugin Stars Downloads Last commit Description
mongoose-timestamp stars downloads last-commit Automatically adds createdAt and updatedAt.
mongoose-version stars downloads last-commit Automatically maintains document version history.
mongoose-patch-history stars downloads last-commit Maintains a history of changes to documents using JSON Patch format, allowing auditing and rollback of updates.
mongoose-diff-history stars downloads last-commit Tracks document diffs between versions for lightweight auditing.
mongoose-history-plugin stars downloads last-commit Tracks changes to Mongoose documents over time, maintaining a history of modifications for auditing and rollback purposes.
ts-patch-mongoose stars downloads last-commit Track changes of mongoose models and save them as patch history (audit log) in separate collection.
mongoose-history-trace stars downloads last-commit Records detailed change logs of Mongoose documents, including who made the change and when, for audit and tracking purposes.
mongoose-history-diff stars downloads last-commit Tracks changes to Mongoose documents by storing diffs between versions, enabling efficient versioning and audit trails.
mongoose-activity stars downloads last-commit Tracks and logs user activities or document changes, providing an easy way to audit events in Mongoose models.

πŸ“Ž File & Media Handling

Plugin Stars Downloads Last commit Description
mongoose-attachments stars downloads last-commit Adds file attachment support for Mongoose models with multiple storage backends.

🎁 Miscellaneous

Plugin Stars Downloads Last commit Description
mongoose-delete stars downloads last-commit Soft delete with restore and query helpers.
mongoose-sequence stars downloads last-commit Auto-increment fields.
mongoose-encryption stars downloads last-commit Transparent field-level encryption.
mongoose-field-encryption stars downloads last-commit Provides field-level encryption for Mongoose schemas, enabling transparent encryption and decryption of sensitive data.
mongoose-crate stars downloads last-commit Handles file attachments in Mongoose models with support for multiple storage backends and file transformations.

πŸ”— Sources: community plugins, npm, and plugins.mongoosejs.io.

About

A curated collection of awesome Mongoose plugins to extend and enhance your MongoDB applications.

Topics

Resources

Stars

Watchers

Forks