Nutifar

Quick Start

Send your first notification in under 5 minutes

1. Install the SDK

npm i @nutifar/web

2. Initialize the client

import { createSdk } from "@nutifar/web";

const nutifar = createSdk({
  apiKey: process.env.NUTIFAR_API_KEY!,
});

Get your API key from your tenant dashboard under Settings → API Keys. Keep it server-side only — your tenant and app are resolved from the key, so it should never be exposed to a browser or mobile client.

3. Send your first email

await nutifar.notifications.sendEmail({
  to: "user@example.com",
  template: {
    name: "welcome",
    data: { name: "Yusuf" },
  },
});

Nutifar doesn't persist a recipient/user table — to is required on every send, and scopes the send to your app's templates and verified sender identities.

4. Send SMS instead

Each channel has its own method — swap sendEmail for sendSMS, sendPush, or sendInApp:

await nutifar.notifications.sendSMS({
  to: "+15551234567",
  body: "Your code is 123456",
});

Push requires a registered device token first — see Register a device. In-app requires the @nutifar/web or @nutifar/expo client SDK to be initialized on the recipient's device to receive the message in real time.

Next steps

On this page