Resend starter module
Email provider
Centralizes the Resend client behind a provider contract your app can replace later.
- Files
- 5
- Lines
- 646
- Languages
- TypeScript
Included files
This page lists paths and purposes, not source contents.
FilePurposeLanguageLines
src/lib/app-adapter.ts
Connects generic Resend handlers to your app's database and email records.
TypeScript
203 lines
src/lib/env.ts
Reads Resend and app settings from the environment and rejects missing values.
TypeScript
105 lines
src/lib/message-catalog.ts
The one trusted list of every message this app can send.
TypeScript
95 lines
src/lib/resend-client.ts
Calls the Resend REST API directly with fetch.
TypeScript
123 lines
src/lib/types.ts
Shared types for the email adapter contract and delivery event handling.
TypeScript
120 lines