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

przypominamy

v2.0.0

Published

Klient API SMS przypominamy.com — wysyłka SMS z Node.js, Deno, Bun i Workers. Polska bramka SMS, REST, Bearer, webhooki HMAC.

Readme

przypominamy

Oficjalny klient API SMS przypominamy.com dla Node.js (≥ 18), Deno, Bun i Cloudflare Workers. Zero zależności, TypeScript, oparty o fetch.

Polska bramka SMS: jeden endpoint do wysyłki, historia, saldo, własny nadpis, webhooki podpisane HMAC. Pay-as-you-go, bez abonamentu.

npm install przypominamy

Szybki start

import { Przypominamy } from 'przypominamy';

const sms = new Przypominamy(process.env.PRZYPOMINAMY_API_KEY!); // pk_live_…

const msg = await sms.send({
  to: '+48600100200',
  text: 'Przypominamy o wizycie jutro o 10:00.',
  reference: 'wizyta-4711',           // Twój identyfikator, wraca w webhookach
  idempotencyKey: 'wizyta-4711-1',    // retry nie wyśle SMS-a drugi raz
});

console.log(msg.id, msg.status, msg.cost_grosze); // msg_… queued 9

Klucz API dostaniesz po założeniu konta na przypominamy.com/register (weryfikacja w 24 h).

Wysyłka masowa

const batch = await sms.send({
  to: ['+48600100200', '+48600100201'],   // do 500 numerów
  text: 'Promocja -20% do niedzieli. Kod: SMS20',
  from: 'SKLEP',                          // nadpis z listy sms.senders()
});
console.log(batch.accepted, 'z', batch.count, 'przyjęto, koszt', batch.total_cost_grosze / 100, 'zł');

Wysyłka odroczona

await sms.send({ to: '+48600100200', text: 'Wizyta dziś o 14:00.', sendAt: new Date('2026-09-18T08:00:00Z') });

Status, historia, konto

const m = await sms.get('msg_qY08hZ2mmDXAazdRTytS');
const page = await sms.list({ status: 'delivered', limit: 50 });   // page.data, page.next_cursor
const acc = await sms.account();                                    // acc.balance_grosze, acc.price_per_part_grosze
const { data: senders } = await sms.senders();
await sms.setSender('ZDROWKO');

Webhooki

const { webhook_secret } = await sms.setWebhook('https://twojadomena.pl/webhooks/sms');

W handlerze (Express — pamiętaj o surowym body):

import express from 'express';
import { verifyWebhook } from 'przypominamy';

app.post('/webhooks/sms', express.raw({ type: 'application/json' }), async (req, res) => {
  try {
    const event = await verifyWebhook(req.body, req.header('X-Przypominamy-Signature'), process.env.PRZYPOMINAMY_WEBHOOK_SECRET!);
    // event.type: message.sent | message.delivered | message.undelivered | message.failed | message.expired
    console.log(event.type, event.data.message.id, event.data.message.reference);
    res.sendStatus(200);
  } catch {
    res.sendStatus(403);
  }
});

Błędy

Każdy błąd API to PrzypominamyError z polami status, code (invalid_request, unauthorized, insufficient_funds, rate_limited, idempotency_conflict, provider_error…), param, requestId i retryAfter.

import { PrzypominamyError } from 'przypominamy';
try {
  await sms.send({ to: '+48600100200', text: 'Hej' });
} catch (e) {
  if (e instanceof PrzypominamyError && e.code === 'insufficient_funds') { /* doładuj konto */ }
}

Dokumentacja

MIT