Skip to content

[FEAT] Add weekly email digest via Resend #171

Closed

Description

@Priyanshu-byte-coder

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/send endpoint (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.tsx
  • supabase/schema.sql

Activity

  1. added
    enhancement
    ~8h
    level:intermediate
    on May 16, 2026
  2. abdullahxyz85 commented on May 17, 2026

    @abdullahxyz85
    Contributor

    Hi @Priyanshu-byte-coder I would like to work on this issue, please assign this issue to me under lable:
    gssoc:approved as well.

  3. maria-453 commented on May 17, 2026

    @maria-453

    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/send endpoint 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_enabled flag
    • Document all required environment variables in .env.example

    I’d be happy to work on this if it’s available. Thanks!

  4. Aarya1402 commented on May 19, 2026

    @Aarya1402

    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!

  5. mahi0097 commented on May 19, 2026

    @mahi0097

    Hi , I would like to work on this issue under GSSoC'26. Kindly assign this issue to me. Thank you!

  6. PrishaNagpal commented on Jun 21, 2026

    @PrishaNagpal

    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

  7. manisha2008-creator commented on Jun 29, 2026

    @manisha2008-creator
    Contributor

    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!

  8. github-actions commented on Jun 29, 2026

    @github-actions

    @manisha2008-creator This issue is already taken by @abdullahxyz85. Check other open issues!

  9. Priyanshu-byte-coder commented on Oct 14, 2026

    @Priyanshu-byte-coder
    OwnerAuthor

    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.

  10. github-actions commented on Oct 14, 2026

    @github-actions

    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!

  11. added
    hacktoberfest
    on Oct 14, 2026
  12. removed their assignment
    on Oct 14, 2026
  13. Priyanshu-byte-coder commented on Nov 4, 2026

    @Priyanshu-byte-coder
    OwnerAuthor

    Done: the weekly digest email runs from /api/cron/weekly-digest.

  14. github-actions commented on Nov 4, 2026

    @github-actions

    ✅ Closed as completed!

    If DevTrack has been useful, a ⭐ star on the repo helps the project grow and reach more developers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhacktoberfestlevel:intermediate~8h

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions