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

v0.1.5

Published

Community node n8n para a API externa da Miró Connect One (multiatendimento WhatsApp e outros canais)

Readme

n8n-nodes-mco

Community node do n8n para a API externa da Miró Connect One (plataforma de multiatendimento WhatsApp e outros canais).

Os nodes são gerados a partir da collection Postman oficial (Miró Connect One v4.x.x.x) por um gerador versionado (codegen/gen-from-postman.mjs) — quando a API muda, regera-se o node.

Documentação oficial da API no Postman: https://documenter.getpostman.com/view/10405746/2sBY4HV4yS

A gestão de tenants (SuperAdmin, cross-tenant) fica num pacote separado por segurança: n8n-nodes-mco-admin. Não instale o pacote admin em ambientes onde qualquer usuário do n8n possa usá-lo.

Instalação

Em Settings → Community Nodes do n8n, instale n8n-nodes-mco. Ou, para desenvolvimento local:

npm install
npm run build
# copie/linke a pasta para ~/.n8n/custom (ou use npm link)

Credencial — Miró Connect One API

| Campo | Descrição | |---|---| | Base URL | URL da instalação, com https:// e sem barra final (ex.: https://app.mirosolucoes.com.br) | | API ID | Segmento :apiId de /v2/api/external/:apiId | | Bearer Token | Token da API externa | | Secret Key | externalKey opcional (deduplicação em alguns envios) |

As requisições usam https://<baseUrl>/v2/api/external/<apiId>/... com header Authorization: Bearer <token>. A resposta da API vem no envelope { success, data, pagination }; o node extrai automaticamente data.

Regenerar os nodes

npm run gen                          # espelha a collection INTEIRA (padrão)
npm run gen -- --only "Campanha|Contato"   # subconjunto de pastas

../../docs/Miró Connect One v4.x.x.x.postman_collection.json.

Referência pública da documentação: https://documenter.getpostman.com/view/10405746/2sBY4HV4yS

O gerador:

  • usa um parser JSONC (os bodies da collection têm comentários //) e aproveita esses comentários como descrição dos campos;
  • normaliza variáveis inconsistentes ({{BASE_URL}}/{{apiId}}/{{API_TOKEN}});
  • chaveia operações pelo nome do request (há colisões de path na collection);
  • infere tipos de forma conservadora (telefone fica string; ISO 8601 vira dateTime; objetos/arrays viram json).

Arquivo gerado: nodes/Mco/descriptions/generated.ts (não editar à mão). Ajustes manuais vão em overrides/ (deep-merge), conforme docs/PLANO_N8N_COMMUNITY_NODE.md.

Cobertura

Espelha a collection inteira: 27 resources / 198 operations (as 28 pastas menos a Tenant API, que vive no pacote admin). Inclui os 3 endpoints de upload (SendMessageAPIFile, SendGroupMessageAPIFile, CreateTicketFile) via campo binário + montagem multipart.

Pontos que herdam o comportamento literal da collection e podem precisar de polimento (Fase 3, ver docs/PLANO_N8N_COMMUNITY_NODE.md):

  • Paginação (returnAll) nos GETs de listagem — hoje retorna a 1ª página.
  • Endpoints multiplexados por action/type (iceBreakers, persistentMenu, greeting, personas, createSession) — o body de exemplo cobre só uma variante.
  • Uploads — montagem multipart implementada; validar em runtime do n8n.

Licença

MIT