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

@secretdef/resend

v0.0.1

Published

Secret definitions for Resend

Readme

@secretdef/resend

Like @types but for environment variables — so your app (and AI coding agents) know exactly which secrets are needed before runtime.

Pre-built secretdef definitions for Resend (resend) environment variables.

This package declares the secrets required by resend. It does not install or replace the official SDK — install both side by side.

Install

npm install resend @secretdef/resend secretdef

Usage

Every import of a @secretdef/* package calls defineSecrets() under the hood, registering its secrets globally. You then call validateSecrets() once at startup — with no arguments — to validate everything that was defined:

// app entry point
import { validateSecrets } from 'secretdef';

import '@secretdef/resend';
// import '@secretdef/...';  ← other services

// Validates ALL secrets defined by any prior defineSecrets() call
validateSecrets();

You can also compose explicitly in a secrets.ts file — useful if you want to add your own app secrets alongside:

// secrets.ts
import { defineSecrets } from 'secretdef';
import { secrets as resendSecrets } from '@secretdef/resend';

export const secrets = defineSecrets({
  ...resendSecrets,
  // Add your own app secrets
  // MY_APP_SECRET: { description: 'My app secret' },
});
// app entry point
import { validateSecrets } from 'secretdef';
import './secrets'; // defineSecrets() was called, secrets are registered

validateSecrets(); // no args — validates everything

Note: validateSecrets() can also accept an explicit secrets object if you prefer full control: validateSecrets(secrets).

Secrets

| Variable | Description | Required | |----------|-------------|----------| | RESEND_API_KEY | Resend API key | Yes | | RESEND_BASE_URL | Override Resend API base URL | No |

What are Secret Definitions?

secretdef is an open standard for declaring which environment variables (secrets) a package or app requires — their names, descriptions, and constraints.

Instead of discovering missing secrets through cryptic runtime errors, secret definitions let you validate everything at startup with clear, actionable error messages. AI coding agents can also read these definitions to configure secrets automatically.

Learn more at secretdef.com

Links