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

@marinade.finance/ts-subscription-client

v1.0.0

Published

TypeScript client for the Marinade notification subscription API. Allows users to subscribe/unsubscribe to notifications and list active subscriptions.

Readme

ts-subscription-client

TypeScript client for the Marinade notification subscription API. Allows users to subscribe/unsubscribe to notifications and list active subscriptions.

Usage

import {
  createSubscriptionClient,
  subscribeMessage,
  unsubscribeMessage,
  listSubscriptionsMessage,
} from '@marinade.finance/ts-subscription-client'

const client = createSubscriptionClient({
  base_url: 'https://notifications.marinade.finance',
})

The message format is built by helper functions (subscribeMessage, unsubscribeMessage, listSubscriptionsMessage). Each request includes a signature and message for server-side authentication.

For local development and testing subscriptions end-to-end, see notification-service/DEV_GUIDE.md.

Channels

A "channel" is a delivery medium for notifications. Each subscription binds a user to a channel + address pair.

telegram

Telegram subscriptions use a two-phase activation flow:

  1. Subscribe — the client sends a POST /subscriptions request with channel=telegram. The server creates a pending activation record and returns a deep_link in the response (e.g., https://t.me/MarinadeBot?start=<token>). At this point the subscription exists but cannot receive messages.

  2. Activate — the user opens the deep link in Telegram and presses "Start". The bot receives the token via its webhook, links the user's Telegram chat to the subscription, and confirms activation. From this point on, notifications are delivered as Telegram messages.

If the user has already activated, the response returns telegram_status: 'already_activated' instead of a new deep link.

Blocking the bot automatically unsubscribes all Telegram subscriptions for that chat.

api

The API channel stores notifications in a server-side outbox. Clients pull them via the read API (notifications endpoint). No activation step is needed — subscribing is sufficient.

Notification types

bonds

Bond risk notifications for validators in the SAM auction. Subscribing requires proof of authority over a bond — the signer must be the bond authority, validator identity, or vote account owner. The server verifies this against on-chain bond accounts.

The additional_data field for subscribe/unsubscribe should include:

{
  config_address: string // bonds program config
  vote_account: string // validator vote account
  bond_pubkey: string // derived bond PDA
}

For listing subscriptions (GET /subscriptions), no additional_data is needed — the server performs a reverse lookup from the pubkey.