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

@notifique/sdk-node

v0.2.1

Published

Notifique SDK for Node.js — full API v1 OpenAPI coverage

Readme

@notifique/sdk-node

Official Notifique SDK for Node.js and TypeScript — v0.2.0 with full OpenAPI v1 coverage.

Repository: notifique-dev/notifique-sdk

Full API coverage (v0.2.0)

  • 353 operations across 23 OpenAPI specs (contacts, automations, oauth, platform, voice, RCS, etc.)
  • Legacy namespaces (typed shortcuts): whatsapp, sms, email, push, messages
  • Generated client: client.api.* — every operation from operations.json
  • Root namespaces on the client instance: client.contacts, client.automations, client.oauth, … (all non-legacy top-level namespaces)
  • Public endpoints (no API key): createPublicClient() — widget, OAuth metadata, report
import { Notifique, createPublicClient } from '@notifique/sdk-node';

const client = new Notifique({ apiKey: process.env.NOTIFIQUE_API_KEY! });

// Full API
await client.api.contacts.getV1Contacts({ query: { limit: 20 } });
await client.automations.listAutomations({ query: { page: 1 } });
await client.oauth.listWorkspaceApps();

// Root namespace shortcuts (same as client.api.*)
await client.contacts.getV1Contacts({ query: { limit: 20 } });

// Public / unauthenticated
const publicApi = createPublicClient();
await publicApi.public.aiWidget.getConfig({ publicKey: 'pk_...' });

OpenAPI schemas are exported from @notifique/core (re-exported by this package). client.api methods are fully typedoptions.query, options.body, pathParams, and return types come from the OpenAPI specs (OpResponse, OpRequestBody, OpQuery, OpPathParams).

import type { OpResponse } from '@notifique/core';

const res = await client.api.push.getV1PushApps({ query: { limit: 10 } });
type AppsList = OpResponse<'/v1/push/apps', 'get'>;

Regenerate bindings from notifique-docs:

# clone notifique-docs as sibling, then:
npm run generate

Client-side push (Web/RN/Flutter/Android/iOS): notifique-dev/notifique-push-sdks. This package is the server-side API.

Installation

npm install @notifique/sdk-node

Quick Start

import { Notifique } from '@notifique/sdk-node';

// Create once and reuse — do NOT create a new instance per request.
const notifique = new Notifique({ apiKey: 'your-api-key' });
const instanceId = 'your-whatsapp-instance-id';

// Send a text message
const result = await notifique.whatsapp.sendText(instanceId, '5511999999999', 'Hello!');
console.log(result.data.messageIds);

Singleton pattern: Axios creates a persistent HTTP connection pool. Instantiating Notifique per request will accumulate interceptors and exhaust memory. Create it once at application startup.

WhatsApp

// Text (shortcut)
await notifique.whatsapp.sendText(instanceId, '5511999999999', 'Hello!');

// Full send — text, image, video, audio, document, location, contact
await notifique.whatsapp.send(instanceId, {
  to: ['5511999999999'],
  type: 'text',
  payload: { message: 'Hello!' },
  options: {
    webhook: { url: 'https://your-domain.com/hooks/notifique', secret: 'optional' },
    autoReplyText: 'Thanks! We will get back to you soon.',
    fallback: { channel: 'sms' },
  },
});

// Image
await notifique.whatsapp.send(instanceId, {
  to: ['5511999999999'],
  type: 'image',
  payload: { mediaUrl: 'https://example.com/image.png', fileName: 'image.png', mimetype: 'image/png', caption: 'Optional caption' },
});

// Idempotency key (prevents duplicate sends on retry)
await notifique.whatsapp.sendText(instanceId, '5511999999999', 'Hello!', { idempotencyKey: 'unique-key-123' });

// Message management
await notifique.whatsapp.listMessages({ page: '1', limit: '20' });
await notifique.whatsapp.getMessage(messageId);
await notifique.whatsapp.editMessage(messageId, { text: 'Updated text' });
await notifique.whatsapp.deleteMessage(messageId);
await notifique.whatsapp.cancelMessage(messageId);  // cancel scheduled

// Instance management
await notifique.whatsapp.listInstances();
await notifique.whatsapp.getInstance(instanceId);
await notifique.whatsapp.getInstanceQr(instanceId);
await notifique.whatsapp.createInstance({ name: 'My Instance' });
await notifique.whatsapp.disconnectInstance(instanceId);
await notifique.whatsapp.deleteInstance(instanceId);

SMS

await notifique.sms.send({ to: ['5511999999999'], message: 'SMS text' });
await notifique.sms.send({ to: ['5511999999999'], message: 'SMS text' }, { idempotencyKey: 'key' });
await notifique.sms.get(smsId);
await notifique.sms.cancel(smsId);

Email

await notifique.email.send({
  from: '[email protected]',
  to: ['[email protected]'],
  subject: 'Subject',
  html: '<p>HTML body</p>',
});
await notifique.email.send({ ... }, { idempotencyKey: 'key' });
await notifique.email.get(emailId);
await notifique.email.cancel(emailId);

// Domain management
await notifique.email.domains.list();
await notifique.email.domains.create({ domain: 'yourdomain.com' });
await notifique.email.domains.get(domainId);
await notifique.email.domains.verify(domainId);

Push

// Apps
await notifique.push.apps.list();
await notifique.push.apps.get(appId);
await notifique.push.apps.create({ name: 'My App' });
await notifique.push.apps.update(appId, { name: 'New name' });
await notifique.push.apps.delete(appId);

// Devices
await notifique.push.devices.register({ appId, platform: 'web', subscription: { endpoint, keys: { p256dh, auth } } });
await notifique.push.devices.list({ appId });
await notifique.push.devices.get(deviceId);
await notifique.push.devices.delete(deviceId);

// Messages — canonical contract: to + type + payload → messageIds
await notifique.push.messages.send({
  to: [deviceId],
  type: 'push',
  payload: { title: 'Title', body: 'Body' },
});
console.log(result.data.messageIds); // NOT pushIds
await notifique.push.messages.send({ ... }, { idempotencyKey: 'key' });
await notifique.push.messages.list({ status: 'SENT' });
await notifique.push.messages.get(messageId);
await notifique.push.messages.cancel(messageId);

Multi-channel Template Send

await notifique.messages.send({
  to: ['5511999999999', '[email protected]'],
  template: 'welcome',
  variables: { name: 'Alice', credits: 300 },
  channels: ['whatsapp', 'sms', 'email'],
  instanceId: 'your-instance-id',
  from: '[email protected]',
});

Error Handling

import { NotifiqueApiError } from '@notifique/sdk-node';

try {
  await notifique.whatsapp.sendText(instanceId, '5511999999999', 'Hello');
} catch (err) {
  if (err instanceof NotifiqueApiError) {
    console.error(err.statusCode, err.message, err.responseData);
  }
}

TypeScript

All methods are fully typed via @notifique/core. Generic payload types are inferred from the type discriminator:

// TypeScript infers the correct payload type for 'image'
await notifique.whatsapp.send(instanceId, {
  to: ['5511999999999'],
  type: 'image',
  payload: { mediaUrl: '...', fileName: '...', mimetype: 'image/png' }, // ✅ typed
});