Edit on val.town ↗

Get a daily email digest of an RSS feed

Instead of signing up for a feed-reader-to-email service, you can run the whole thing as one cron-triggered val: fetch the feed daily, diff against the last-run timestamp stored in blob storage, and email yourself the new items with std/email. If nothing new was published, no email is sent.

The template splits the rest of the work into small files: rss.ts fetches and parses the feed (any RSS or Atom feed works), digest.tsx renders the email HTML, and email.ts wraps std/email with a small retry since sends can fail transiently.

  1. Remix this template — click the Remix button in the top right corner.
  2. In main.tsx, set FEED_URL to the feed you want.
  3. Optional: click Run on main.tsx to test it immediately. On the first run it looks back 24 hours.

No API keys or environment variables are needed.

Last updated