{"id":19683902,"url":"https://github.com/prisma/pulse-resend-demo","last_synced_at":"2025-08-30T16:33:19.744Z","repository":{"id":186685541,"uuid":"675564593","full_name":"prisma/pulse-resend-demo","owner":"prisma","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-27T11:18:28.000Z","size":108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-07T01:39:24.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prisma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-08-07T08:04:47.000Z","updated_at":"2024-05-17T16:55:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"55ed9274-62c3-4a43-b44f-19df5053fb7d","html_url":"https://github.com/prisma/pulse-resend-demo","commit_stats":null,"previous_names":["ankur-arch/pulse-test","prisma/pulse-resend-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prisma/pulse-resend-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fpulse-resend-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fpulse-resend-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fpulse-resend-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fpulse-resend-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prisma","download_url":"https://codeload.github.com/prisma/pulse-resend-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fpulse-resend-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260875192,"owners_count":23075906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T18:16:01.636Z","updated_at":"2025-06-20T03:42:54.310Z","avatar_url":"https://github.com/prisma.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prisma Pulse and Resend Integration Example\n\nThis repository contains an example Node.js application that demonstrates how to integrate Prisma with the Pulse extension and Resend for sending emails upon user creation events.\n\n---\n\n## Prerequisite\n\n1. Setup a Pulse compatible PostgreSQL database. Read the requirements for Pulse [here](https://www.prisma.io/docs/data-platform/pulse/getting-started#1-database-setup). To easily get started, you can watch the Pulse setup with Railway video below.\n   [![Watch the video](https://img.youtube.com/vi/DrTnowASuqo/0.jpg)](https://www.youtube.com/watch?v=DrTnowASuqo)\n2. Visit [Prisma Data Platform](https://pris.ly/pdp) and enable Pulse\n3. Resend API key. Create an account [here](https://resend.com/).\n\n## Getting Started\n\nTo get started, follow these steps:\n\n1. Clone the repo into your local machine.\n2. Install dependencies\n\n   ```bash\n   pnpm install\n   ```\n\n3. Create a .env file in the root directory and provide your Database URL, Pulse and Resend API keys:\n\n   ```bash\n   DATABASE_URL=\"\"\n   PULSE_API_KEY=\"\"\n   RESEND_API_KEY=\"\"\n   ```\n\n## Running the Application\n\n1. Start the script\n\n   ```bash\n   pnpm run dev\n   ```\n\n2. Add a new user record with a valid email to the `User` table in the database using Prisma Studio or any other database tool\n\n   ```bash\n   pnpm prisma studio\n   ```\n\n   ![Insert image](./images/insert.png)\n\n3. Check the inserted email account and you should receive an email\n   ![image.png](./images/email.png)\n\n## Conclusion\n\nThis example demonstrates how to integrate Prisma with the Pulse extension and Resend to send emails upon user creation events.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Fpulse-resend-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprisma%2Fpulse-resend-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Fpulse-resend-demo/lists"}