npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-mongo-change-stream-trigger

v0.1.0

Published

n8n-nodes-mongo-change-stream-trigger is a community package for n8n that brings real-time MongoDB integration to your workflows. It uses MongoDB’s native change streams to monitor a specified collection without relying on polling and offers advanced, cas

Readme

n8n-nodes-mongo-change-stream-trigger

This is an n8n community node. It lets you use MongoDB Change Streams in your n8n workflows.

MongoDB Change Streams allow applications to access real-time data changes without complex polling. This node listens for changes in MongoDB collections and triggers workflows when documents are inserted, updated, deleted, or when collections are modified.

n8n is a fair-code licensed workflow automation platform.

Installation
Operations
Credentials
Compatibility
Usage
Resources

Installation

Follow the installation guide in the n8n community nodes documentation.

Operations

This node works as a trigger that starts workflows when changes occur in MongoDB:

  • Insert: Triggers when new documents are added to a collection
  • Update: Triggers when existing documents are modified
  • Replace: Triggers when documents are replaced
  • Delete: Triggers when documents are removed
  • Drop: Triggers when collections are dropped
  • Rename: Triggers when collections are renamed

Credentials

You need to set up MongoDB credentials:

  1. Create a new MongoDB connection in n8n (Credentials → New → MongoDB Trigger API)
  2. Enter your MongoDB connection string (e.g., mongodb://username:password@localhost:27017)
  3. The user needs at least read permissions on the target database and collection

Note: For change streams to work, your MongoDB deployment must be:

  • A replica set or sharded cluster (not a standalone instance)
  • MongoDB 3.6 or higher

Compatibility

  • Requires n8n version 0.125.0 or later
  • Requires MongoDB 3.6 or later (with replica set or sharded cluster)

Usage

  1. Basic Setup:

    • Select the database and collection you want to monitor
    • Choose which operation types you want to trigger on (insert, update, delete, etc.)
  2. Field Monitoring:

    • Use * to listen for any changes
    • Enter specific field names (comma-separated) to only trigger when these fields change
  3. Filtering:

    • Add filters to only trigger when specific field values match your conditions
    • Example: Only trigger when status field equals completed
  4. Output Format: The node produces a clean, readable output with:

    • Operation type (insert, update, etc.)
    • Timestamp of the change
    • Database and collection names
    • Document ID
    • Changed fields and values (for updates)
    • Complete document (for inserts)

Resources