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-mira-ws-trigger

v0.1.2

Published

Mira WebSocket Trigger node for n8n - Listen to real-time events from Mira server

Readme

Mira WebSocket Trigger for n8n

A custom n8n trigger node that connects to Mira server's WebSocket endpoint to receive real-time events.

Features

  • Real-time Event Listening: Connect to Mira server's WebSocket to receive events in real-time
  • Event Filtering: Filter events by type to only receive specific events you care about
  • Token Authentication: Secure connection using authentication tokens
  • Automatic Reconnection: Built-in reconnection logic with exponential backoff
  • Standardized Output: All events are formatted in a consistent structure
  • Debug Logging: Optional debug logging for troubleshooting

Installation

  1. Build the node:

    npm run build
  2. Install in your n8n instance according to n8n's community node installation instructions.

Configuration

Required Parameters

  • Mira WebSocket URL: The WebSocket endpoint of your Mira server (e.g., ws://127.0.0.1:7457)
  • Authentication Token: Token for authenticating with the Mira server

Optional Parameters

  • Event Filter: Comma-separated list of events to listen for (leave empty for all events)
    • Example: file::created,file::updated,file::deleted
  • Advanced Options:
    • Reconnect Initial Delay: Initial delay before reconnection attempts (default: 1000ms)
    • Reconnect Max Delay: Maximum delay between reconnection attempts (default: 30000ms)
    • Enable Debug Logging: Enable detailed logging for debugging

Output Format

All events from the trigger are formatted as follows:

{
  "eventName": "file::created",
  "data": {
    "path": "/path/to/file",
    "size": 1024,
    "modified": "2025-08-22T10:30:00Z"
  },
  "timestamp": "2025-08-22T10:30:00.123Z",
  "source": "mira_websocket"
}

Special Events

The trigger also emits system events:

  • connection_established: When WebSocket connection is established
  • connection_error: When connection errors occur
  • connection_closed: When connection is closed
  • error: When message parsing or other errors occur

Usage Example

  1. Add the Mira WebSocket Trigger to your workflow
  2. Configure the WebSocket URL and authentication token
  3. Optionally set event filters to only receive specific events
  4. Connect the trigger to other nodes to process the incoming events

Troubleshooting

  • Enable debug logging in Advanced Options to see detailed connection and message information
  • Check that the Mira server is running and accessible
  • Verify the authentication token is correct
  • Ensure the WebSocket port is not blocked by firewalls

Development

To develop this node:

  1. Install dependencies: npm install
  2. Build: npm run build
  3. Watch mode: npm run dev

License

MIT 并每 5 秒推送一条 orders.created 事件。