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

mnotify-ts-sdk

v3.0.0

Published

Modern, zero-dependency TypeScript SDK for mNotify BMS API - SMS, contacts, and account management with Railway-Oriented Programming

Downloads

61

Readme

mNotify TypeScript SDK

npm version JSR CI License

Zero-dependency TypeScript SDK for mNotify BMS API — send SMS, manage contacts and groups, and handle account operations with railway-oriented programming.

  • Zero runtime dependencies — uses native fetch
  • Runtime-agnostic — Node 18+, Deno, Bun, Cloudflare Workers, browsers
  • Functional error handling — every method returns a Result type
  • Dual-publishednpm + JSR

Quick Start

npm install mnotify-ts-sdk
import { MNotify } from "mnotify-ts-sdk";

const mnotify = new MNotify({
  apiKey: process.env.MNOTIFY_API_KEY!,
});

const result = await mnotify.sms.send({
  recipient: "233200000000",
  sender: "MyApp",
  message: "Hello from mNotify!",
});

result.match({
  ok: (res) => console.log(`Sent! ID: ${res.summary.message_id}`),
  err: (err) => console.error(`Failed: ${err.message}`),
});

Services

| Service | Methods | Description | |---------|---------|-------------| | mnotify.sms | send, getStatus | Send SMS and check delivery | | mnotify.contacts | create, list | Manage contacts | | mnotify.groups | create, list, get, addContact, removeContact, delete | Contact groups | | mnotify.templates | create, list, get, delete | SMS templates | | mnotify.account | getBalance, registerSender, checkSender | Account & sender IDs |

Every method returns Result<T, MNotifyError> — see Error Handling.

Error Handling

No try/catch needed. Every method returns a Result type:

const result = await mnotify.account.getBalance();

if (result.isOk()) {
  console.log(`Balance: ${result.value.balance}`);
} else {
  console.error(result.error.message, result.error.statusCode);
}

Chain operations with .map() and .andThen():

import { ok, err, tryCatch, combine } from "mnotify-ts-sdk";

const final = await result
  .map((data) => transform(data))
  .andThen((transformed) => doMore(transformed));

Installation

npm

npm install mnotify-ts-sdk

JSR

npx jsr add @adjanour/mnotify

Deno

deno add @adjanour/mnotify

Configuration

const mnotify = new MNotify({
  apiKey: "your-api-key",     // required
  baseUrl: "https://...",      // optional (default: https://api.mnotify.com/api)
  timeout: 10000,              // optional (default: 10000ms)
  maxRetries: 3,               // optional (default: 3, only on 429)
});

Docs

Full documentation at https://adjanour.github.io/mnotify-ts-sdk or run locally:

npm run docs:dev

Scripts

| Script | Description | |--------|-------------| | npm run build | Build ESM + CJS | | npm test | Run tests | | npm run lint | Biome lint | | npm run format | Biome format | | npm run docs:dev | Start docs dev server | | npm run docs:build | Build static docs |

License

MIT