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

@simplens/resend

v1.0.0

Published

Send notifications via Resend

Downloads

8

Readme

@simplens/resend

Resend email provider plugin for SimpleNS.

Features

  • 📧 Send HTML emails via Resend
  • 🖼️ Automatic base64 image extraction to CID attachments
  • 🔄 Template variable replacement ({{var}}, ${var}, {var}, $var)
  • ⚡ Built-in rate limiting (configurable)
  • ✅ Full TypeScript support

Installation

npm install @simplens/resend

Configuration

Add to your simplens.config.yaml or generate using npx @simplens/config-gen gen @simplens/resend:

providers:
  - package: '@simplens/resend'
    id: email-resend
    credentials:
      RESEND_API_KEY: ${RESEND_API_KEY}
      FROM_EMAIL: ${FROM_EMAIL}
    options:
      rateLimit:
        maxTokens: 100      # Max emails in bucket
        refillRate: 100     # Tokens refilled per interval
        refillInterval: day # second | minute | hour | day

Required Credentials

| Credential | Description | |------------|-------------| | RESEND_API_KEY | Your Resend API key (get one here) | | FROM_EMAIL | Verified sender email address (verify domain) |

Notification Schema

| Field | Type | Required | Description | |-------|------|----------|-------------| | channel | 'email' | ✅ | Must be 'email' | | recipient.user_id | string | ✅ | User identifier | | recipient.email | string | ✅ | Valid email address | | content.subject | string | ✅ | Email subject line | | content.html | string | ✅ | HTML content (must contain at least one HTML tag) | | variables | Record<string, unknown> | ❌ | Template variables |

Rate Limiting

Resend free tier allows 100 emails/day. Configure based on your plan:

| Plan | Suggested Config | |------|------------------| | Free | maxTokens: 100, refillRate: 100, refillInterval: day | | Pro | maxTokens: 5000, refillRate: 5000, refillInterval: day |

Development

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Manual test (requires .env with RESEND_API_KEY, FROM_EMAIL, TO_EMAIL)
npm run test:send

License

MIT

Author

SimpleNS Team