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

@kiwa-lab/notification

v2.1.0

Published

Notification provider mock harness for kiwa — FCM / APNs (push) / Twilio (SMS) / AWS SNS を統一 interface で invoke する in-process mock。 sendPush / sendSMS / sendInApp / multi-channel dispatch / delivery event を real provider と同じ signature で叩ける test infra。

Readme

@kiwa-lab/notification

Multi-channel notification mock harness for kiwa — FCM / APNs push + Twilio SMS + AWS SNS + in-app を統一 interface で叩く test infra。

Installation

pnpm add -D @kiwa-lab/notification
# or
npm install -D @kiwa-lab/notification
# or
yarn add -D @kiwa-lab/notification

Supported providers

| Channel | Provider | Status | |---|---|---| | push | FCM (Firebase) | ✅ | | push | APNs (Apple) | ✅ | | sms | Twilio | ✅ | | sms | AWS SNS | ✅ | | in-app | native | ✅ |

Quick start

import { createNotificationClient, parseNotificationEvent } from '@kiwa-lab/notification';

const client = createNotificationClient({ pushProvider: 'fcm', smsProvider: 'twilio' });

const push = await client.sendPush({ deviceToken: 'tok', title: 'Hi', body: 'You have a new msg' });
const sms = await client.sendSMS({ to: '+1555', from: '+1666', body: 'code 1234' });
const inApp = await client.sendInApp({ userId: 'u1', title: 'Update', body: 'new feature' });

const dispatched = await client.dispatch(['push', 'sms'], {
  push: { deviceToken: 'tok', title: 'x', body: 'y' },
  sms: { to: '+1555', from: '+1666', body: 'x' },
});

const event = parseNotificationEvent({ provider: 'fcm', raw: { messageType: 'delivered' } });

API reference

  • createNotificationClient(options?): NotificationClient — 3 channel 統合 mock client 生成
  • NotificationClient.sendPush(msg: PushMessage): Promise<NotificationSendResult> — FCM / APNs
  • NotificationClient.sendSMS(msg: SmsMessage): Promise<NotificationSendResult> — Twilio / SNS
  • NotificationClient.sendInApp(msg: InAppMessage): Promise<NotificationSendResult> — in-app
  • NotificationClient.dispatch(channels, payload): Promise<NotificationSendResult[]> — multi-channel 同時送信
  • parseNotificationEvent(raw): NormalizedNotificationEvent — delivered / opened / clicked / failed 正規化

Test integration

import { describe, expect, it } from 'vitest';
import { createNotificationClient } from '@kiwa-lab/notification';

describe('order notification', () => {
  it('push + sms を両方 dispatch', async () => {
    const c = createNotificationClient();
    const [p, s] = await c.dispatch(['push', 'sms'], {
      push: { deviceToken: 't', title: 'Order', body: 'shipped' },
      sms: { to: '+1', from: '+2', body: 'shipped' },
    });
    expect(p.status).toBe('queued');
    expect(s.status).toBe('queued');
  });
});

/kiwa-notification skill を起動すると push + SMS + in-app + 統合 dispatch の test を生成できる。

License

UNLICENSED — see cardene777/kiwa for repo terms.