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

@concile/notifications

v0.1.5

Published

Multi-channel notifications for concile: send email, SMS, push, and in-app messages from your mutations through a pluggable provider seam, with durable retries, per-user preferences and topics, and a reactive in-app inbox.

Readme

@concile/notifications

Multi-channel notifications for concile: send email, SMS, push, and in-app messages from your mutations through a pluggable provider seam, with durable retries, per-user preferences and topics, and a reactive in-app inbox.

Install

bun add @concile/notifications

Enable

Components are opt-in per project. defineNotifications(opts) takes a channels map; each channel gets a provider and named templates:

// concile.config.ts
import { defineConfig } from "@concile/component";
import { defineNotifications, consoleEmail, twilioSms } from "@concile/notifications";

export default defineConfig({
  components: [
    defineNotifications({
      channels: {
        email: {
          provider: consoleEmail(), // zero-config dev provider: logs to the server console
          from: "[email protected]",
          templates: {
            welcome: (d) => ({ subject: `Welcome ${d.name}`, text: `Hi ${d.name}!` }),
          },
        },
        sms: {
          provider: twilioSms({ accountSid: process.env.TWILIO_SID!, authToken: process.env.TWILIO_TOKEN! }),
          from: "+15550000000",
        },
        in_app: {
          enabled: true,
          templates: {
            welcome: (d) => ({ title: "Welcome", body: `Hi ${d.name}!` }),
          },
        },
      },
    }),
  ],
});

Usage

ctx.notifications.send(args) is available in every mutation. It writes through the calling mutation's own transaction, so an enqueue rolls back with the mutation and fans out reactively on commit:

export const welcome = mutation({
  handler: async (ctx, { userId, email, name }) => {
    await ctx.notifications.send({
      to: { userId, email },           // channel-addressed recipient
      channels: ["in_app", "email"],   // which configured channels to deliver on
      template: "welcome",             // a registered template key (or an inline template)
      data: { name },                  // rendered with this payload
    });
  },
});

send returns { messageIds, suppressed, deferred }. Actions get a send-focused facade too (send, sendNow, sendToTopic).

Features

  • Four channels: email, sms, push, in_app. In-app rows are written in the same transaction and push to live inbox subscriptions instantly; outbound channels write a queued row that a background driver delivers outside the transaction (network I/O never runs inside a mutation).
  • Built-in providers: consoleEmail/consoleSms (dev), resendEmail, twilioSms, and push via expoPush/fcmPush/apnsPush — or implement the provider interface yourself.
  • Delivery reliability: retries with backoff, dead-lettering, stuck-send reclaim, and ordered provider fallbacks tried within a single delivery attempt.
  • Per-user preferences and topics, enforced at the send chokepoint, with a critical server-side bypass for transactional sends (OTPs, security notices) and config-level critical categories.
  • Email digests: batch a category into periodic per-user summaries instead of one email per event.
  • idempotencyKey on send for safe re-invocation.
  • Provider delivery-status webhooks (verified before any write) update message rows, so delivery state is observable in the dashboard.
  • Templates are plain functions per channel ((data) => content), registered in config or passed inline.

No required dependency on other components; the background delivery loop runs on the engine's recurring-driver seam.

Part of Concile — docs at https://concile-six.vercel.app/docs

License: FSL-1.1-Apache-2.0