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

@nutifar/node

v1.0.2

Published

Official Nutifar Node SDK

Downloads

573

Readme

🌐 Nutifar Node SDK

Send transactional and broadcast notifications — Email, Push, SMS, and In-App — from your Node.js backend with a single, consistent API.

npm License TypeScript Node


Overview

The Nutifar Node SDK is the server-side interface to the Nutifar notification platform. It's built for backends — Express, Nest, Fastify, serverless functions, workers — that need to trigger notifications, not receive them.

It's a thin, typed wrapper around the Nutifar API for sending across all four channels: Email, Push, SMS, and In-App.

Building a frontend or mobile app that needs to receive push notifications or listen for in-app events? Use @nutifar/web, @nutifar/expo or @nutifar/react-native instead. This package is send-only.


Features

  • 📤 Send Email, Push, SMS, and In-App notifications from one client
  • 🧩 Single or bulk/batch sends
  • 📄 Template-based sends with variable substitution
  • 🔑 Multi-tenant API key support
  • 📦 TypeScript-first, fully typed requests and responses
  • 🔒 Server-only — no browser or device APIs involved
  • ⚡ Lightweight — depends only on @nutifar/core
  • 🚀 Production-ready

Requirements

  • Node.js 18+
  • A Nutifar account and server-side API key

Installation

npm

npm install @nutifar/node

pnpm

pnpm add @nutifar/node

yarn

yarn add @nutifar/node

Quick Start

import { Nutifar } from "@nutifar/node";

const sdk = Nutifar({
  apiKey: process.env.NUTIFAR_API_KEY!,
});

Send an email

await sdk.notification.sendEmail({
  to: "[email protected]",
  subject: "Welcome to Teepas",
  html: "<p>Hey Yusuf, glad to have you on board.</p>",
});

Send an SMS

await sdk.notification.sendSMS({
  to: "+2348012345678",
  body: "Your OTP is 123456. Expires in 5 minutes.",
});

Send a push notification

await sdk.notification.sendPush({
  to: "user_123", // nutifarToken or externalId
  title: "Your order shipped",
  body: "Track your package in the app.",
});

Send an in-app notification

await sdk.notification.sendInApp({
  to: "user_123",
  title: "New comment",
  body: "Someone replied to your post.",
});

Templates

Every channel accepts an optional template in place of (or alongside) raw content:

await sdk.notification.sendEmail({
  to: "[email protected]",
  subject: "Payment received",
  template: {
    name: "payment-received",
    data: { amount: "₦25,000" },
  },
});

Multiple Recipients

sms, push, and inapp accept a single recipient or an array; email accepts a string, an { email, name } object, or an array of either — with optional cc, bcc, and from too:

await sdk.notification.sendEmail({
  to: [{ email: "[email protected]", name: "A" }, "[email protected]"],
  cc: "[email protected]",
  subject: "Weekly digest",
  html: "<p>...</p>",
});

await sdk.notification.sendSMS({
  to: ["+2348012345678", "+2348098765432"],
  body: "Reminder: rent due tomorrow.",
});

Attachments

await sdk.notification.sendEmail({
  to: "[email protected]",
  subject: "Your invoice",
  html: "<p>Attached.</p>",
  attachments: [
    { filename: "invoice.pdf", url: "https://cdn.example.com/invoice.pdf" },
  ],
});

Configuration

const sdk = Nutifar({
  apiKey: process.env.NUTIFAR_API_KEY!,
});

Response Shape

Every sendEmail / sendSMS / sendPush / sendInApp call resolves to the same response shape — the notification is accepted and queued, not delivered synchronously:

type NotificationResponse = {
  success: boolean;
  message?: string;
  data: {
    success: boolean;
    eventId: string;
  };
};

Use eventId to correlate with delivery status once webhooks/analytics land (see Roadmap).


TypeScript

The SDK is written entirely in TypeScript with complete type definitions for every channel's input and response — no additional @types package needed.

import type {
  SendEmailInput,
  SendSMSInput,
  SendPushInput,
  SendInAppInput,
  NotificationResponse,
} from "@nutifar/node";

Roadmap

Available

  • ✅ Email sending (with templates, attachments, cc/bcc, multi-recipient)
  • ✅ SMS sending (single or bulk)
  • ✅ Push sending
  • ✅ In-app sending

Coming Soon

  • Delivery status webhooks helper
  • Notification analytics
  • Batch/bulk send endpoint
  • Scheduled sends

Contributing

Contributions are welcome!

  1. Fork the repository.
  2. Create a feature branch.
  3. Commit your changes.
  4. Open a Pull Request.

License

Released under the MIT License.

Made with ❤️ by BigYusuf.