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

nvoip-node

v3.0.0

Published

Cliente Node.js simples para a API v3 da Nvoip.

Readme

nvoip-node

CI npm npm downloads Nvoip API v3 Docs Postman Stack License: GPL-3.0

SDK e exemplos oficiais da Nvoip para integrar a API v3 com OAuth, chamadas, OTP, WhatsApp, SMS e saldo em Node.js.

Migração para v3

Esta é uma quebra de compatibilidade: use createClientCredentialsToken() e envie o access token RS256 em Authorization: Bearer. O SDK usa https://api.nvoip.com.br/auth/oauth2/token; não use napikey, password grant ou /v3/oauth/token. Para SMS de texto livre, valide antes a política e o template aprovado aplicáveis à sua conta.

Requisitos

  • Node.js 18+

Instalacao

npm install nvoip-node

Configuracao

cp .env.example .env

Ou exporte as variaveis:

export NVOIP_OAUTH_CLIENT_ID="seu_numbersip"
export NVOIP_OAUTH_CLIENT_SECRET="seu_user_token"
export NVOIP_OAUTH_CLIENT_ID="seu_client_id"
export NVOIP_OAUTH_CLIENT_SECRET="seu_client_secret"
export NVOIP_CALLER="1049"
export NVOIP_TARGET_NUMBER="11999999999"

Fluxos cobertos

  • gerar access_token
  • renovar token
  • consultar saldo
  • enviar SMS
  • realizar chamada
  • enviar OTP
  • validar OTP
  • listar templates de WhatsApp
  • enviar template de WhatsApp

Scripts prontos

  • npm run auth:token
  • npm run balance
  • npm run call:create
  • npm run otp:send
  • npm run otp:check
  • npm run send:sms
  • npm run wa:list
  • npm run wa:send

Destinatário WhatsApp

O exemplo mantém NVOIP_WA_DESTINATION para telefone. Para o contrato tipado, não informe esse campo e use NVOIP_WA_RECIPIENT_TYPE=phone|bsuid|parent_bsuid com NVOIP_WA_RECIPIENT_VALUE. BSUID é opaco; não use @username nem o coloque em campo de telefone. Valores mascarados seguros para testes de montagem: US.MASKED_BSUID_001 e PARENT.MASKED_BSUID_001.

SDK web

Para o fluxo de popup com telefone e codigo, use o repositório nvoip-web-sdk. Ele fica responsavel pela UI embutivel; este repo cobre o consumo server-side da API.

Links oficiais