🌐 Languages / Idiomas: English | Español
Kozen modules function as independent tools. The Triggers module simplifies the implementation of self-hosted triggers for MongoDB Atlas, Enterprise Advanced, or Community Edition. This tool streamlines trigger management across diverse MongoDB deployments.
This repository was created as part of an initiative to promote best practices for integrating solutions with MongoDB. It is distributed under the Apache 2.0 license and is open source. However, please note that this repository is not actively maintained by the MongoDB team, nor is it part of MongoDB's official product catalog.
The use of this repository in production environments is solely at your own discretion and risk. MongoDB does not provide any guarantees, warranties, or technical support for this repository. Furthermore, MongoDB shall not be held liable for any issues, bugs, or damages caused by its use or implementation.
Please carefully evaluate suitability and perform thorough testing before using this resource in a production environment.
Thank you for understanding, The MongoDB Team
Kozen executes MongoDB Change Stream triggers directly on your infrastructure. Designed as a self-hosted alternative to MongoDB Atlas Triggers, Kozen allows you to define a JavaScript "delegate" file. This file exports operation-specific functions, which Kozen utilizes to stream change events directly into your code.
While MongoDB Atlas provides a fully managed Triggers service, Kozen delivers similar capabilities for local, on-premises, or cloud environments. It centralizes logic in a single, maintainable JavaScript file.
- Install Kozen.
- Write the delegate with
insert/update/delete/replaceand optionalon/default. - Fill
.envwithKOZEN_TRIGGER_*settings. - Start the service (see step 2 below) and verify logs.
For more details, refer to the documentation here: documentation.
- Kozen Triggers Full Documentation
- Kozen Triggers through DeepWiki
- Disclaimer and Usage Policy
- How to Contribute to Kozen Ecosystem
- Official Kozen Documentation
← Previous: Home | Next: Get-Started →