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

@rajeev02/notify

v0.2.1

Published

Unified notification & messaging layer for React Native — local, push, in-app inbox, cross-device sync

Downloads

258

Readme

@rajeev02/notify

npm version license

Unified notification layer with cross-platform scheduling, priority-based delivery, quiet hours, grouped channels, and an in-app notification inbox.

Part of Rajeev SDK — cross-platform infrastructure libraries for building apps that work everywhere.

Why use this?

  • One API for all platforms — Schedule local/push notifications with a single call. Platform-specific config (APNs, FCM, Web Push) is handled via overrides.
  • Smart scheduling — Quiet hours, repeat intervals (daily/weekly/monthly), timezone-aware delivery
  • Priority system — Critical, high, normal, low — with platform-appropriate behavior
  • In-app inbox — Built-in notification inbox with read/unread, categories, actions, and persistence
  • Channel management — Grouped notification channels for Android (auto-created), categories for iOS
  • Pure TypeScript — No native dependencies. Drop in and use immediately.

⚠️ Important: Local State Management Only

This library manages notification scheduling logic and an in-app inbox entirely in TypeScript. It does NOT:

  • Send push notifications (FCM, APNs, Web Push)
  • Register push tokens with any service
  • Display OS-level notification banners or alerts
  • Access native notification APIs

The PlatformOverrides (iOS sound/badge, Android channel/icon) are configuration data structures that you pass to your actual notification delivery layer.

You need a notification delivery library to actually show notifications:

| Use case | Recommended library | | ------------------ | -------------------------------------------------------------------------------- | | Expo apps | expo-notifications | | Bare React Native | @notifee/react-native | | Push notifications | Firebase Cloud Messaging | | Web | Web Push API |

Think of this library as the scheduling brain + inbox state manager — you pair it with a delivery layer that actually displays notifications on device.

Platform Support

| Platform | Engine | Status | | -------- | ---------- | ------ | | iOS | TypeScript | ✅ | | Android | TypeScript | ✅ | | Web | TypeScript | ✅ | | watchOS | TypeScript | ✅ | | Wear OS | TypeScript | ✅ |

Installation

npm install @rajeev02/notify

Peer Dependencies

  • react >= 18.3.0
  • react-native >= 0.84.0 (optional)

Quick Start

Schedule Notifications

import { NotificationScheduler } from "@rajeev02/notify";

const scheduler = new NotificationScheduler();

// Schedule a daily reminder
scheduler.schedule({
  id: "meditation-001",
  title: "Time to meditate 🧘",
  body: "Your daily 10-minute session awaits",
  priority: "normal",
  schedule: { at: "2026-02-08T07:00:00", repeat: "day" },
});

// Schedule with platform-specific overrides
scheduler.schedule({
  id: "payment-received",
  title: "Payment received",
  body: "₹5,000 from Rajeev",
  priority: "high",
  platform: {
    ios: {
      sound: "payment.wav",
      badge: 1,
      categoryId: "payments",
      threadId: "transactions",
    },
    android: {
      channelId: "payments",
      smallIcon: "ic_payment",
      color: "#10B981",
      autoCancel: true,
    },
  },
});

// Cancel or manage
scheduler.cancel("meditation-001");
const pending = scheduler.getPending();

In-App Inbox

import { NotificationInbox } from "@rajeev02/notify";

const inbox = new NotificationInbox();

// Add notifications to inbox
inbox.add({
  id: "msg-001",
  title: "Order shipped!",
  body: "Your order #1234 is on its way",
  category: "orders",
  actions: [
    { id: "track", label: "Track Order" },
    { id: "details", label: "View Details" },
  ],
});

// Query inbox
const unread = inbox.getUnread();
const orders = inbox.getByCategory("orders");
const count = inbox.getUnreadCount(); // → 1

// Mark as read
inbox.markRead("msg-001");
inbox.markAllRead();

API Reference

NotificationScheduler

| Method | Returns | Description | | -------------------------- | ------------------------- | ----------------------------------------- | | schedule(notification) | string | Schedule a notification, returns ID | | cancel(id) | void | Cancel a scheduled notification | | cancelAll() | void | Cancel all scheduled notifications | | getPending() | ScheduledNotification[] | List all pending notifications | | reschedule(id, schedule) | void | Update schedule for existing notification |

NotificationInbox

| Method | Returns | Description | | -------------------- | --------------------- | --------------------- | | add(notification) | void | Add to inbox | | remove(id) | void | Remove from inbox | | markRead(id) | void | Mark as read | | markAllRead() | void | Mark all as read | | getAll() | InboxNotification[] | Get all inbox items | | getUnread() | InboxNotification[] | Get unread items | | getByCategory(cat) | InboxNotification[] | Filter by category | | getUnreadCount() | number | Count of unread items | | clear() | void | Clear entire inbox |

Full Documentation

📖 Complete API docs with platform-specific examples

License

MIT © 2026 Rajeev Kumar Joshi