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-nextlead

v0.1.6

Published

n8n nodes for NextLead CRM integration

Readme

n8n-nodes-nextlead

Community node for n8n that integrates NextLead CRM.


Features

| Resource | Operations | |---|---| | Contact | Create, Update, Delete, Find, Add Note | | Structure | Create, Update, Delete, List | | Sale | Create, Update, Delete | | Action | Create, Update, Delete | | Group | Create, Update, Delete, List | | List | Create, Update, Delete | | Identify | Identify visitor | | Trigger | Poll for new/updated contacts and events |


Architecture

nodes/NextLead/
├── NextLead.node.ts          # Main node — resource router
├── NextLeadTrigger.node.ts   # Polling trigger node
├── core/
│   ├── BaseNextLeadNode.ts   # Abstract base class shared by both nodes
│   ├── NextLeadApiService.ts # HTTP client wrapping the NextLead REST API
│   ├── NextLeadErrorHandler.ts
│   ├── ResourceManager.ts    # Dispatches operations to the right resource
│   ├── interfaces/
│   │   └── IResourceStrategy.ts  # Strategy interface for each resource
│   └── types/
│       ├── NextLeadTypes.ts       # ResourceType / OperationType enums
│       ├── shared/ApiTypes.ts
│       └── api/                   # Typed API response shapes
├── resources/
│   ├── ContactResource.ts    # Implements IResourceStrategy for contacts
│   ├── StructureResource.ts
│   ├── SaleResource.ts
│   ├── ActionResource.ts
│   ├── GroupResource.ts
│   ├── ListResource.ts
│   ├── IdentifyResource.ts
│   └── <resource>/
│       └── <Resource>Fields.ts   # n8n field definitions per resource
└── utils/
    ├── NodeExecuteUtils.ts
    ├── OperationHandlerUtils.ts
    ├── ResponseUtils.ts
    └── FieldDefinitionUtils.ts

credentials/
└── NextLeadApi.credentials.ts    # API key + domain credential

dist/   # Compiled output (git-ignored, generated by build)

Key design decisions

  • Strategy pattern: each resource (ContactResource, SaleResource, …) implements IResourceStrategy. ResourceManager picks the right one at runtime based on the resource parameter.
  • BaseNextLeadNode: shared abstract class that wires credentials, error handling, and execution lifecycle for both the regular node and the trigger node.
  • NextLeadApiService: thin wrapper around n8n's helpers.requestWithAuthentication, so auth headers are injected automatically from the stored credential.

Local development

Prerequisites

  • Node.js ≥ 20.15
  • pnpm (npm install -g pnpm)
  • A running n8n instance (local or Docker)

Install dependencies

pnpm install

Build

pnpm run build

Compiled files are output to dist/. The build runs tsc then copies SVG icons via Gulp.

Watch mode (rebuild on save)

pnpm run dev

Lint

pnpm run lint        # check
pnpm run lintfix     # auto-fix

Format

pnpm run format

Test locally in n8n

Link the package into a local n8n install so changes are reflected immediately:

# In this repo
npm link

# In your n8n directory
npm link n8n-nodes-nextlead

Then restart n8n. The NextLead nodes will appear in the node picker.


Publishing to npm

See PUBLICATION_GUIDE.md for the full step-by-step.

# 1. Bump version
npm version patch   # 0.1.0 → 0.1.1  (bug fix)
npm version minor   # 0.1.0 → 0.2.0  (new feature)
npm version major   # 0.1.0 → 1.0.0  (breaking change)

# 2. Build and lint
pnpm run build
pnpm run lint

# 3. Preview what will be published
npm pack --dry-run

# 4. Publish
npm publish --access public

The prepublishOnly script runs build + lint automatically before each publish.

Only the dist/ folder is shipped (configured via "files" in package.json).

n8n community node requirements

  • Package name must start with n8n-nodes-
  • keywords must include "n8n-community-node-package"
  • License must be MIT
  • No heavy external dependencies

After publishing, submit the node to the n8n community by opening an issue on github.com/n8n-io/n8n or posting on community.n8n.io.


Setup for end users

  1. In n8n, go to Settings > Community Nodes and install n8n-nodes-nextlead.
  2. Create a NextLead API credential:
    • API Key: found in NextLead under Settings > Automation > API Key
    • Domain: your NextLead instance URL
  3. Add a NextLead node to your workflow and select a resource + operation.

Resources


License

MIT — see LICENSE.md