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 🙏

© 2025 – Pkg Stats / Ryan Hefner

n8n-nodes-smartlead-new

v1.0.2

Published

Smartlead action and trigger nodes for n8n workflows

Readme

n8n-nodes-smartlead

Community nodes for Smartlead, built with the patterns from the official n8n node authoring guide. The package ships the declarative Smartlead action node plus a programmatic webhook trigger so you can both pull campaigns and react to Smartlead inbox events inside n8n.

Installation

Follow the community node installation guide. Once installed/rebuilt, the Smartlead nodes will appear under “Smartlead” in the editor’s node picker.

Nodes & Operations

Smartlead (actions)

| Resource | Operations | Notes | | --- | --- | --- | | Leads | List by Campaign, Add to Campaign (≤ 350 leads per request), Get by Email | Mirrors the Smartlead lead endpoints described in smartlead-api-reference.md. | | Inbox | Lead Message History | Fetches /campaigns/{campaign_id}/leads/{lead_id}/messages to show Smartlead’s threaded correspondence. | | Webhooks | List, Add/Update, Delete | Manage campaign webhooks (EMAIL_REPLY, EMAIL_OPEN, EMAIL_LINK_CLICK, LEAD_UNSUBSCRIBED, LEAD_CATEGORY_UPDATED). |

All REST operations run through the declarative routing API recommended in the n8n docs, so they automatically inherit the base URL, headers, and query-param authentication.

Smartlead Trigger (webhooks)

Receives Smartlead webhook payloads (reply, open, click, unsubscribe, category update events). It verifies the optional secret_key, enriches each item with a resolvedLeadEmail (preferring leadCorrespondence.replyReceivedFrom as suggested in the Smartlead webhook guide), and emits one n8n item per event.

Credentials

Create a Smartlead API credential with your API key. The nodes attach it as the api_key query parameter required by Smartlead (see smartlead-api-reference.md → Authentication). The credential test performs a benign GET /campaigns to confirm access.

Usage & Best Practices

  • Rate limits: Smartlead enforces roughly 60 requests per 60 seconds per API key. Chain the action node with n8n’s Split In Batches node for long-running syncs.
  • Lead uploads: The Add to Campaign operation enforces the documented cap of 350 leads per request and sanitizes the payload before sending it upstream.
  • Webhook secrets: Configure the trigger’s Expected Secret field to match Smartlead’s secret_key so n8n drops spoofed requests.
  • Examples: Import the JSON workflows inside /examples to see a campaign pull sync and a webhook push flow in context.

Development

| Command | When to use it | | --- | --- | | npm run dev | Spin up the nodes in watch mode via n8n-node dev. | | npm run lint / npm run lint:fix | Apply the n8n ESLint rules before committing. | | npm run build | Compile to dist/ for packaging or publishing. | | npm test | Runs the Vitest suite (helper + metadata tests) to keep the TDD contract intact. |

Refer back to n8n-creating-nodes-API-docs.md for deeper guidance on declarative routing, trigger structure, and testing.

Version history

  • 1.0.0 — Initial release with Smartlead action node (leads, inbox, webhooks), Smartlead Trigger, Vitest coverage, and example workflows.