@kozen/trigger
v1.0.7
Published
Module for the Kozen framework that provides support for self-hosted MongoDB triggers
Readme
🏠 Kozen Triggers
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.
📚 Self‑Hosted Triggers
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.
🧪 Comparison and Usage
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.
🚀 Quick Start
- 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.
References
- 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 →
