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

stackverify-sms

v1.0.0

Published

Official Node.js SDK for StackVerify SMS API

Downloads

25

Readme

StackVerify SMS SDK

npm version npm downloads Node.js Version License

Official Node.js SDK for the StackVerify SMS API.

Simple. Fast. Reliable.


Why StackVerify

  • Fast SMS delivery
  • Clean REST API
  • Production-ready Node SDK
  • Automatic retries and timeouts
  • Fully typed for TypeScript
  • 20 free SMS every month
  • More sharing = more free SMS credits

Start sending SMS in minutes.

Get your API key at:

https://stackverify.site


Free Developer Credits

Every developer integrating the StackVerify SDK receives:

  • 20 free SMS every month
  • Increased free SMS allocation when you share StackVerify

No credit card required to start.


Installation

npm install stackverify-sms

Requirements:

  • Node.js 18 or higher

Quick Start

CommonJS

const { StackVerify } = require("stackverify-sms");

const client = new StackVerify({
  apiKey: "sk_live_your_api_key"
});

async function run() {
  const response = await client.sms.send({
    recipients: ["+254712345678"],
    body: "Hello from StackVerify"
  });

  console.log(response);
}

run();

ESM

import { StackVerify } from "stackverify-sms";

const client = new StackVerify({
  apiKey: process.env.STACKVERIFY_KEY
});

await client.sms.send({
  recipients: ["+254712345678"],
  body: "Hello from StackVerify"
});

TypeScript Example

Fully typed SDK with IntelliSense support.

import { StackVerify, StackVerifyError } from "stackverify-sms";

const client = new StackVerify({
  apiKey: process.env.STACKVERIFY_KEY!,
  timeout: 5000,
  retries: 3
});

async function sendSMS(): Promise<void> {
  try {
    const response = await client.sms.send({
      recipients: ["+254712345678"],
      body: "TypeScript SMS example",
      sender_id: "MYAPP"
    });

    console.log("Success:", response);
  } catch (error) {
    if (error instanceof StackVerifyError) {
      console.error("Status:", error.status);
      console.error("Message:", error.message);
    }
  }
}

sendSMS();

Sending SMS

client.sms.send({
  recipients: string[],
  body: string,
  sender_id?: string
});

Parameters

| Field | Type | Required | Description | |------------|----------|----------|------------| | recipients | string[] | Yes | Phone numbers in international format | | body | string | Yes | SMS content | | sender_id | string | No | Custom sender ID |


Default Sender ID

If sender_id is not provided, the default sender ID is:

SMS

Configuration Options

const client = new StackVerify({
  apiKey: "sk_live_your_api_key",
  timeout: 10000, // default 10000ms
  retries: 2      // default 2 retries
});

Error Handling

The SDK throws StackVerifyError for API failures.

try {
  await client.sms.send({
    recipients: ["+254712345678"],
    body: "Test"
  });
} catch (error) {
  console.error(error);
}

Security Best Practices

  • Store your API key in environment variables
  • Do not expose your API key in frontend applications
  • Rotate your API keys periodically

Growth Program

We reward developers who build with StackVerify.

  • Start with 20 free SMS monthly
  • Share StackVerify with your community
  • Get increased monthly free SMS allocation

Contact support through your dashboard to increase your limits.


Production Ready

This SDK includes:

  • Automatic retry with exponential backoff
  • Request timeout handling
  • Structured error classes
  • CommonJS and ESM compatibility
  • TypeScript declarations

Built for real-world production usage.


Support

Website: https://stackverify.site
Email: [email protected]


License

MIT