https://github.com/resend/resend-svelte-kit-example
This example shows how to use Resend with SvelteKit
https://github.com/resend/resend-svelte-kit-example
Last synced: 9 months ago
JSON representation
This example shows how to use Resend with SvelteKit
- Host: GitHub
- URL: https://github.com/resend/resend-svelte-kit-example
- Owner: resend
- License: mit
- Created: 2025-08-11T13:12:01.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-09T20:58:17.000Z (10 months ago)
- Last Synced: 2025-10-02T11:49:04.270Z (9 months ago)
- Language: TypeScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Resend with SvelteKit
This example shows how to use Resend with [SvelteKit](https://svelte.dev/docs/kit).
## Prerequisites
To get the most out of this guide, you’ll need to:
* [Create an API key](https://resend.com/api-keys)
* [Verify your domain](https://resend.com/domains)
## Instructions
1. Define environment variables in `.env`
```
cp .env.example .env
```
2. Update the `RESEND_API_KEY` in `.env` with your API key.
You can create an API key in the [Resend dashboard](https://resend.com/api-keys).
3. Install dependencies:
```sh
npm install
```
4. Execute the following command:
```sh
npm dev
```
5. Make a curl request:
```sh
curl -X POST http://localhost:5173/send
```
## License
MIT License