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

@vynelix/vynemit-adapter-brevo

v1.0.0

Published

Brevo (formerly Sendinblue) transactional email adapter for Vynemit

Readme

@vynelix/vynemit-adapter-brevo

Brevo (formerly Sendinblue) transactional email adapter for Vynemit.

Sends transactional emails via the Brevo API v3 using the official @getbrevo/brevo SDK.

Installation

npm install @vynelix/vynemit-adapter-brevo

Prerequisites

Create a Brevo account and generate an API v3 key from
Settings → API keys → Create a new API key.

Quick Start

import { NotificationCenter } from '@vynelix/vynemit-core';
import { BrevoProvider } from '@vynelix/vynemit-adapter-brevo';

const center = new NotificationCenter({
  // ...storage, queue, etc.
  transports: [
    new BrevoProvider({
      apiKey: process.env.BREVO_API_KEY!,
      sender: {
        name: 'My App',
        email: '[email protected]',
      },
    }),
  ],
});

// Send a transactional email
await center.send({
  type: 'welcome',
  userId: 'user-42',
  title: 'Welcome to My App!',
  body: 'Thanks for signing up.',
  html: '<h1>Welcome!</h1><p>Thanks for signing up.</p>',
  channels: ['email'],
  data: {
    email: '[email protected]',
  },
});

Configuration

interface BrevoConfig {
  /** Brevo API v3 key (required) */
  apiKey: string;

  /** Default From sender (required) */
  sender: {
    name: string;
    email: string;
  };

  /** Optional default Reply-To address */
  replyTo?: {
    name: string;
    email: string;
  };

  /** Enable verbose console logging */
  debug?: boolean;
}

Recipient Email Resolution

The adapter resolves the recipient address in this priority order:

| Priority | Source | |---|---| | 1 | notification.data.email | | 2 | preferences.data.email | | 3 | notification.userId (if it is a valid email address) |

Per-Notification Overrides via data

You can pass extra delivery options inside notification.data:

| Field | Type | Description | |---|---|---| | email | string | Recipient email address | | recipientName | string | Recipient display name | | senderName | string | Override default sender name | | senderEmail | string | Override default sender email | | replyToEmail | string | Override Reply-To address | | replyToName | string | Override Reply-To display name | | templateId | number | Brevo template ID | | templateParams | object | Variables to inject into the template | | cc | Array<{ email, name? }> | CC recipients | | bcc | Array<{ email, name? }> | BCC recipients | | headers | Record<string, string> | Custom SMTP headers | | attachments | Array<{ content: string, name: string }> | Base-64 encoded attachments | | tags | string[] | Brevo tags for analytics |

Using a Brevo Template

await center.send({
  type: 'password-reset',
  userId: 'user-99',
  title: 'Reset your password',   // subject line
  body: '',
  channels: ['email'],
  data: {
    email: '[email protected]',
    templateId: 7,                 // Brevo template ID
    templateParams: {
      FIRST_NAME: 'Alice',
      RESET_LINK: 'https://myapp.com/reset?token=xyz',
    },
  },
});

Features

  • [x] Transactional email delivery via Brevo API v3
  • [x] Brevo template support with dynamic params
  • [x] Reply-To / CC / BCC / custom headers
  • [x] Base-64 attachment support
  • [x] Brevo tags for campaign analytics
  • [x] Batch delivery (sendBatch)
  • [x] Non-invasive health check (GET /account)
  • [x] Email address validation and resolution chain
  • [x] Full debug logging

License

MIT © Engr., Isaiah Pius E.