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-perfex-api

v0.2.1

Published

Nó n8n para integração com o Perfex CRM através do módulo WON API - Compatibilidade total

Readme

n8n-nodes-perfex-api

Nó da comunidade n8n para integração com o Perfex CRM através do módulo WON API.

📋 Descrição

Este nó permite integrar o Perfex CRM com n8n através da WON API, proporcionando acesso completo às funcionalidades de CRM incluindo leads, clientes, contatos, projetos, tarefas e faturas.

✅ Compatibilidade v0.2.1

WON API v2.1.1+

  • Autenticação corrigida: Usa header X-API-TOKEN
  • Endpoints compatíveis: Todos os endpoints seguem padrão WON API
  • Operação JOIN: Compatível com busca por CNPJ/CPF
  • Validações robustas: Arrays, datas e campos obrigatórios

🚀 Instalação

npm install n8n-nodes-perfex-api

⚙️ Configuração

  1. Base URL: URL base da sua instalação Perfex (sem /api)

    • Exemplo: https://seu-perfex.com
  2. API Token: Token gerado no Perfex CRM

    • Acesse: Setup > Settings > API
    • Gere um novo token
    • Configure o token nas credenciais do n8n

📚 Recursos Suportados

👥 Leads

  • ✅ Listar leads
  • ✅ Obter lead específico
  • ✅ Criar novo lead
  • ✅ Atualizar lead
  • ✅ Excluir lead

🏢 Clientes (Customers)

  • ✅ Listar clientes
  • ✅ Obter cliente específico
  • ✅ Criar novo cliente
  • ✅ Excluir cliente

👤 Contatos

  • ✅ Listar contatos por cliente
  • ✅ Obter contato específico
  • ✅ Criar novo contato
  • ✅ Atualizar contato
  • ✅ Excluir contato

🔧 Validações Implementadas

📅 Datas

  • Formato obrigatório: YYYY-MM-DD
  • Validação de datas válidas
  • Mensagens de erro em português

🔢 Arrays

  • Conversão automática de strings para arrays
  • Remoção de valores inválidos (NaN)
  • Limpeza de campos vazios

🚨 Logs de Debug

  • Logs detalhados para debugging
  • Informações de autenticação
  • Detalhes de endpoint e método

📋 Exemplo de Uso

Criar um Lead

{
  "resource": "lead",
  "operation": "create",
  "name": "Lead Exemplo",
  "source": 1,
  "status": 1,
  "additionalFields": {
    "email": "[email protected]",
    "phone": "11999999999"
  }
}

Buscar Cliente por ID

{
  "resource": "customer",
  "operation": "get",
  "customerId": 123
}

🛠️ Desenvolvimento

# Instalar dependências
pnpm install

# Build
pnpm build

# Desenvolvimento (watch mode)
pnpm dev

# Linting
pnpm lint

# Formatação
pnpm format

📄 Licença

MIT

🤝 Contribuindo

Contribuições são bem-vindas! Por favor, abra uma issue ou pull request.

📞 Suporte

Para suporte, abra uma issue no GitHub ou entre em contato através dos canais oficiais.


Versão: 0.2.1
Compatibilidade: WON API v2.1.1+
n8n: ^1.0.0