This val is a daily cron that fetches an RSS feed, finds the items published since its last run, and emails you a digest. The last-run timestamp is stored in blob storage, so you never get the same item twice. If nothing new was published, no email is sent.
main.tsx, set FEED_URL to the feed you want (any RSS or Atom feed works).main.tsx in the editor if you want a different time — cron expressions run in UTC.main.tsx to test it immediately. On the first run it looks back 24 hours.The digest is sent to your Val Town account email via std/email. No API keys or environment variables are needed.
main.tsx — the cron handler: load lastRunAt from blob, fetch new items, send the digest, save the new timestamprss.ts — fetches and parses the feed (rss-parser), filters items newer than sincedigest.tsx — renders the email HTML with Hono JSXemail.ts — std/email wrapper with a small retry, since sends can fail transiently