Skip to content

kozen-labs/trigger

 
 

Repository files navigation

🏠 Kozen Triggers

npm version npm downloads npm total downloads License: ISC Node.js Version Dependencies TypeScript MongoDB GitHub issues GitHub stars

🌐 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.


Disclaimer

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


📚 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/replace and optional on/default.
  • Fill .env with KOZEN_TRIGGER_* settings.
  • Start the service (see step 2 below) and verify logs.

For more details, refer to the documentation here: documentation.

References


← Previous: Home | Next: Get-Started

About

Module for the Kozen framework that provides support for self-hosted MongoDB triggers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 100.0%