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

meowtify-sdk-ts

v0.1.0

Published

TypeScript SDK for the Meowtify API

Readme

meowtify-sdk-ts

TypeScript SDK for Meowtify. It provides the shared environment types plus exactly three high-level classes:

  • Client for subscription management.
  • Producer for notification publishing and provider lifecycle.
  • Consumer for receiving delivery jobs from RabbitMQ.

Install

npm install meowtify-sdk-ts

Architecture

flowchart LR
  Producer[Producer SDK] -->|Notify| API[Meowtify API]
  Client[Client SDK] -->|Subscribe / Unsubscribe| API
  API -->|Match subscriptions| Links[(Links)]
  API -->|Publish delivery jobs| Rabbit[(RabbitMQ)]
  Rabbit -->|OnNotification| Consumer[Consumer SDK]

Client

Use Client when an application wants to list, create, or delete subscriptions.

import { Client } from "meowtify-sdk-ts";

const client = new Client({
  apiUrl: "http://localhost:8080",
  clientToken: "dev-client-token",
});

const link = await client.Subscribe(
  "twitch",
  "channel-42",
  { display_name: "Streamer" },
  "discord",
  "discord:123456789",
  { channel_id: "123456789" },
  { event_type: "stream.online" },
);

const subscriptions = await client.Subscriptions({
  producer_type: "twitch",
  consumer_type: "discord",
});

await client.Unsubscribe(link.id);

consumer_id is passed to Subscribe because one client may manage several consumer destinations. Subscriptions can still filter by consumer_id through its options. The misspelled Subcriptions method remains available for backward compatibility.

Producer

Use Producer inside a service that emits notifications.

import { Producer } from "meowtify-sdk-ts";

const producer = new Producer({
  apiUrl: "http://localhost:8080",
  producerToken: "dev-provider-token",
  producerType: "twitch",
});

await producer.Register({
  type: "twitch",
  id: "eventsub",
  display_name: "meowtify-p-twitch",
  base_url: "https://producer.example.com",
});

await producer.Notify({
  producer_id: "channel-42",
  producer_data: { display_name: "Streamer" },
  type: "stream.online",
  title: "Streamer is live",
  text: "Building a new integration",
  link: "https://twitch.tv/streamer",
  data: {
    category: "Science & Technology",
  },
});

const response = producer.healthcheck();

await producer.Unregister("eventsub");

healthcheck() returns a Fetch Response with {"status":"ok"} so it can be mounted directly in Fetch-compatible runtimes.

Consumer

Use Consumer in delivery workers that receive notifications from RabbitMQ.

import { Consumer } from "meowtify-sdk-ts";

const consumer = new Consumer({
  queueUrl: "amqp://guest:guest@localhost:5672/",
  consumerToken: "dev-consumer-token",
  exchangeName: "meowtify.deliveries",
  queueName: "meowtify.discord.deliveries",
  routingKey: "consumer.discord",
  prefetch: 10,
  requeueOnError: false,
});

await consumer.OnNotification(async (delivery) => {
  console.log(delivery.notification.type, delivery.consumer.consumer_id);
});