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

v0.2.0

Published

Envie e receba mensagens de WhatsApp no n8n com o msg.api: texto, arquivos, enquetes, grupos, anti-ban e gatilho de mensagem recebida.

Readme

n8n-nodes-msgapi

Nós do n8n para o msg.api: envie e receba mensagens de WhatsApp nos seus fluxos, sem programar.

n8n community nodes for msg.api, a WhatsApp API with a fixed price per number. English summary at the end.

Instalação

n8n self-hosted: em Settings › Community Nodes › Install, digite n8n-nodes-msgapi e confirme.

Mais detalhes na documentação do n8n sobre community nodes.

Credentials

  1. No painel do msg.api, abra o seu número e copie a chave de API.
  2. No n8n, crie uma credencial msg.api API e cole a chave.
  3. Deixe o API URL como https://msg.api.br.

Nós

msg.api Trigger

Inicia o fluxo quando chega uma mensagem no seu número. Ao ativar o fluxo, o nó se cadastra sozinho no msg.api e, ao desativar, se remove. Não é preciso copiar nenhum webhook.

  • Eventos: mensagem recebida; voto em enquete (com as opções escolhidas); mensagem da fila anti-ban enviada ou com falha.
  • Opções: ignorar mensagens de grupos e incluir as mensagens enviadas pelo próprio número. Por padrão, elas ficam de fora para evitar respostas em loop.

Cada mensagem recebida chega assim:

{
  "event": "message.received",
  "id": "3EB0C767D82B6A0A1F2E",
  "from": "[email protected]",
  "chat": "[email protected]",
  "from_me": false,
  "text": "Olá! Quero saber o preço",
  "media": null
}

msg.api

| Recurso | Operações | |---|---| | Message | Send Text, Send File (imagem, vídeo, áudio ou documento, de um arquivo binário ou de um link), Send Poll, React, Mark as Read | | Contact | Check (quais números têm WhatsApp), Get, Get Profile Picture | | Group | Get Many, Get, Create, Add Participants | | Connection | Get Status, Get Profile | | Anti-Ban | Get, Update (ligar, desligar, limites por minuto, hora e dia, intervalo entre mensagens, horário ativo e aquecimento de número novo) |

Os números vão com DDI e DDD, só dígitos (ex.: 5567999999999). Grupos usam o ID terminado em @g.us.

Com o anti-ban ligado, os textos entram na fila e saem no ritmo de uma pessoa. Para códigos de verificação, ligue Send Immediately.

No Send File, escolha a origem: um arquivo binário de um nó anterior ou um link https (até 25 MB), que o msg.api baixa. Com File Type em Auto-Detect, fotos, vídeos e áudios que o WhatsApp exibe vão como mídia, e o resto como documento.

O nó também pode ser usado como ferramenta do AI Agent.

Cada voto em enquete chega assim (options vazio quando a pessoa tira o voto):

{
  "event": "poll.vote",
  "poll_id": "3EB0A1B2C3D4E5F6A7B8",
  "poll_name": "Quer continuar recebendo?",
  "chat": "[email protected]",
  "from": "[email protected]",
  "from_me": false,
  "options": ["Sair"]
}

Só dá para ler votos de enquetes enviadas depois que o número foi conectado ao msg.api: é quando o msg.api guarda o código que o WhatsApp usa para cifrar os votos.

Exemplo: responder automaticamente

  1. msg.api Trigger com o evento Message Received.
  2. msg.api › Message › Send Text, com To = {{ $json.chat }} e o texto da resposta.

English

  • msg.api Trigger: starts a workflow when a WhatsApp message arrives. It registers and removes its own webhook automatically.
  • msg.api: sends texts, files (from binary data or an https link) and polls, manages contacts and groups, and turns the anti-ban on, off or adjusts it.
  • Credentials: the API key of your number, from the msg.api panel.

Licença

MIT