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