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-sse-trigger-extended

v0.1.0

Published

Extended SSE trigger node for n8n with custom headers support

Readme

n8n-nodes-sse-trigger-extended

n8n.io - Workflow Automation

An extended Server-Sent Events (SSE) trigger node for n8n that adds support for custom headers and additional configuration options.

Features

  • 🔗 Custom Headers Support: Send custom headers with your SSE connection using key-value pairs or JSON format
  • 🔄 Retry Logic: Configurable retry attempts and delay for connection failures
  • 🔐 Credentials Support: Option to include credentials with SSE requests
  • ⏱️ Connection Timeout: Configurable connection timeout
  • 📊 Enhanced Metadata: Additional event metadata including timestamps and origin information
  • 🛡️ Error Handling: Improved error handling with detailed error information

Installation

npm install n8n-nodes-sse-trigger-extended

Usage

  1. Add the "SSE Trigger Extended" node to your workflow
  2. Configure the SSE endpoint URL
  3. Optionally enable custom headers and configure them using:
    • Key-Value Pairs: Add individual header name-value pairs
    • JSON: Provide headers as a JSON object
  4. Configure additional options like retry attempts, timeout, and credentials
  5. Activate the workflow to start listening for Server-Sent Events

Configuration Options

Basic Settings

  • URL: The Server-Sent Events endpoint URL
  • Authentication: Choose how to authenticate with the SSE endpoint
  • Send Custom Headers: Add additional headers beyond authentication

Authentication Options

None

No authentication - for public SSE endpoints

Bearer Token

Uses the standard n8n HTTP Bearer Auth credential:

  • Automatically adds Authorization: Bearer <token> header
  • Secure token storage in n8n's credential system
  • Compatible with JWT tokens, API tokens, etc.

Header Auth

Uses the standard n8n HTTP Header Auth credential:

  • Send any custom header name/value pair
  • Perfect for API keys (e.g., x-api-key, api-key)
  • Flexible header-based authentication

Custom Headers (Always Available)

Additional headers that can be used with any authentication method:

  • Send Custom Headers: Enable/disable additional custom headers
  • Specify Headers: Choose between key-value pairs or JSON format
  • Header Parameters: Define individual headers using name/value fields

Advanced Options

  • With Credentials: Include credentials in the SSE connection
  • Connection Timeout: Set connection timeout in milliseconds (default: 30000)
  • Retry Attempts: Number of retry attempts on connection failure (default: 3)
  • Retry Delay: Delay between retry attempts in milliseconds (default: 1000)

Output

The node outputs the received SSE event data along with enhanced metadata:

{
  "eventData": "your SSE event data",
  "$metadata": {
    "eventType": "message",
    "lastEventId": "123",
    "origin": "https://example.com",
    "timestamp": "2024-01-01T12:00:00.000Z"
  }
}

Error Handling

If the SSE connection encounters errors or receives invalid JSON data, the node will output error information:

{
  "error": "Error description",
  "rawData": "raw event data (if applicable)",
  "$metadata": {
    "eventType": "error",
    "timestamp": "2024-01-01T12:00:00.000Z"
  }
}

Use Cases

  • Connect to authenticated SSE endpoints requiring custom headers
  • Monitor real-time data streams with enhanced reliability
  • Process live events from APIs that require specific authentication headers
  • Handle high-frequency SSE connections with retry logic

Comparison with Standard SSE Trigger

| Feature | Standard SSE Trigger | SSE Trigger Extended | |---------|---------------------|---------------------| | Basic SSE connection | ✅ | ✅ | | Custom headers | ❌ | ✅ | | Standard n8n Credentials | ❌ | ✅ | | HTTP Bearer Auth | ❌ | ✅ | | HTTP Header Auth | ❌ | ✅ | | Retry logic | ❌ | ✅ | | Connection timeout | ❌ | ✅ | | Enhanced metadata | ❌ | ✅ | | Error handling | Basic | Enhanced |

Development

# Install dependencies
npm install

# Build the node
npm run build

# Watch for changes during development
npm run dev

# Run linting
npm run lint

# Fix linting issues
npm run lintfix

License

MIT

Support