[FEAT] Add weekly email digest via Resend
Summary
Send users a weekly email digest every Monday with their key stats from the past week: commits, streak status, top repo, PR summary, and goal progress.
Motivation
Push users back to DevTrack even when they haven't visited. A weekly "Your week in code" email is a proven engagement driver.
Acceptance Criteria
- [ ] New
POST /api/digest/sendendpoint (called by a scheduled job or manual trigger) - [ ] Uses Resend for email delivery (
npm install resend) - [ ] Email template rendered with
@react-email/components(or simple HTML string) - [ ] Content: current streak, commits this week, PRs merged this week, top repo, goal progress
- [ ] User opt-in setting in Settings page (new DB column
digest_email_enabled BOOLEAN DEFAULT false) - [ ] Unsubscribe link in footer (sets flag to false)
- [ ] Requires new env vars:
RESEND_API_KEY,RESEND_FROM_EMAIL - [ ] Add both to
.env.example
New Dependencies
resend@react-email/components(optional, for HTML email template)
Files to Touch
- New:
src/app/api/digest/send/route.ts src/app/dashboard/settings/page.tsxsupabase/schema.sql
Hi @Priyanshu-byte-coder I would like to work on this issue, please assign this issue to me under lable: gssoc:approved as well.
Hi @Priyanshu-byte-coder , I’d like to work on this issue under GSSOC 26.
This looks like a really interesting backend feature involving scheduled jobs, email delivery, and user engagement workflows.
My approach would be to:
- Implement the
POST /api/digest/sendendpoint for triggering weekly digest emails - Integrate Resend for email delivery
- Build a clean email template using
@react-email/components(or fallback HTML if preferred) - Include weekly stats like streak status, commits, merged PRs, top repo, and goal progress
- Add the opt-in setting in the Settings page along with the required DB schema update
- Implement unsubscribe handling securely by updating the
digest_email_enabledflag - Document all required environment variables in
.env.example
I’d be happy to work on this if it’s available. Thanks!
Hi @Priyanshu-byte-coder, I would like to work on this issue under GSSoC 2026. I have experience working with backend integrations and email workflows, and I’m interested in implementing the weekly email digest feature using Resend. Please assign this issue to me. Thanks!
Hi , I would like to work on this issue under GSSoC'26. Kindly assign this issue to me. Thank you!
Hey @Priyanshu-byte-coder, I'm a GSSoC 26 contributor and would like to work on this issue. Please assign it to me. /claim /assign
Hi @Priyanshu-byte-coder 👋
I would like to work on this issue under GSSoC 2026.
I have reviewed the requirements . I’m interested in contributing to this issue and would appreciate it if you could assign it to me.
Thank you!
@manisha2008-creator This issue is already taken by @abdullahxyz85. Check other open issues!
Hey @abdullahxyz85 — this issue was assigned a while back with no recent activity. Unassigning so it's available for Hacktoberfest contributors. Still working on it? Comment and we'll reassign you.
Assigned to @Priyanshu-byte-coder! You have 7 days to open a PR. No PR after 7 days = auto-unassigned so others can pick it up. Good luck!
Done: the weekly digest email runs from /api/cron/weekly-digest.
✅ Closed as completed!
If DevTrack has been useful, a ⭐ star on the repo helps the project grow and reach more developers.