New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@kozen/trigger

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kozen/trigger

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

Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
3
200%
Maintainers
4
Weekly downloads
 
Created
Source

🏠 Kozen Trigger Manager Module

In Kozen, the modules are used as independent tools. The Triggers module becomes a solution designed to provide support for Self-Hosted Triggers in a simple way, whether you're using MongoDB Atlas, Enterprise Advanced, or Community Edition. This helps streamline the process of managing triggers across different MongoDB deployments.

📚 Self‑Hosted Triggers

Kozen can run MongoDB Change Stream based triggers on your own infrastructure. If you’ve used MongoDB Atlas Triggers, think of this as a self‑hosted alternative: you write a small JavaScript file (the delegate) that exports simple functions per operation, and Kozen wires everything up to stream change events into your code.

🎯 Overview

Atlas context: MongoDB Atlas provides a fully managed Triggers service. Kozen offers a similar capability you can run anywhere (local, on‑premises, cloud), while keeping your logic in a single, easy‑to‑maintain JS file.

Quick checklist:

  • 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 better understanding, refer to the documentation here: documentation.

References

← Previous: Home | Next: Get-Started

Keywords

kozen

FAQs

Package last updated on 02 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts