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

v0.2.2

Published

n8n community nodes for Emkt (email marketing API) — private use

Readme

n8n-nodes-emkt

Community nodes privados para a API Emkt (email marketing). Uso interno e nas instalações dos clientes — não é pacote verificado do marketplace n8n.

O que inclui

| Node | Tipo | Função | |------|------|--------| | Emkt | Action | Contatos, listas, tags, sequências, campanhas, supressões | | Emkt Trigger | Trigger | Webhooks de saída (HMAC) — open, click, bounce, etc. |

Credenciais

Crie uma credential Emkt API com:

| Campo | Exemplo | |-------|---------| | Base URL | https://emkt.cliente.com.br (sem / no final) | | API Key | valor de API_KEY do servidor |

O node envia X-Api-Key em todas as chamadas. Use Test na credential para validar (GET /api/contacts?per_page=1).

Referência completa da API: /help na instalação, ou API.md no monorepo.

Operações (v1)

Contact

Create/Upsert · Get · Get Many · Update · Delete · Add/Remove Tag · Add/Remove from List

Custom fields no Create/Update: coleção Add Custom Field (dropdown com slugs de /api/contact-fields + valor).

Origem no Create/Upsert: coleção Origin (UTM) (source, medium, campaign, term, content) + Landing URL. Vai para o histórico em contact_utms, não para custom fields — por isso não aparece no Update, que não grava origem.

List / Tag

Get Many · Create · Delete

Sequence

Get Many · Get · Enroll · Cancel Enrollment

Campaign

Get Many · Get · Send Test · Send

Suppression

Add · Delete (Force para hard_bounce/complaint)

Emkt Trigger

Ao ativar o workflow, registra POST /api/webhooks/endpoints com a URL do n8n. Em cada entrega valida X-Emkt-Signature (HMAC-SHA256). Ao desativar, remove o endpoint.

A URL do webhook do n8n precisa ser pública (a API recusa loopback/rede privada por anti-SSRF).

Instalação no n8n (self-hosted)

  1. Build do pacote:
cd packages/n8n-nodes-emkt
npm install
npm run build
npm pack
  1. No servidor do n8n, habilite community packages (N8N_COMMUNITY_PACKAGES_ENABLED=true).

  2. Instale o tarball (ou o diretório do pacote):

# opção A — tarball
cd ~/.n8n
mkdir -p custom
cd custom
npm init -y
npm install /caminho/para/n8n-nodes-emkt-0.1.0.tgz

# opção B — apontar N8N_CUSTOM_EXTENSIONS para o pacote buildado
# N8N_CUSTOM_EXTENSIONS=/caminho/para/packages/n8n-nodes-emkt
  1. Reinicie o n8n. Os nodes Emkt e Emkt Trigger aparecem no painel.

Por cliente

Cada instalação Emkt tem a própria Base URL + API Key. Crie uma credential por cliente no n8n.

Exemplo rápido

  1. Credential Emkt apontando para a API do cliente
  2. Node Emkt → Contact → Create/Upsert (email, lists: Newsletter)
    • Custom Fields: botão Add Custom Field — escolhe o campo na lista e o valor (fixo ou expressão)
  3. Node Emkt → Sequence → Enroll (mesmo email + Sequence ID)

Ou use Emkt Trigger (eventos click, unsubscribe) → Slack/CRM.

Desenvolvimento

npm install
npm run build        # gera dist/
npm run typecheck
npm run build:watch  # enquanto edita

O pacote fica fora do workspace pnpm do monorepo (deps próprias via npm) para não puxar a árvore do n8n para o resto do projeto.