Skip to content

elianrc/DailyWord

Repository files navigation

Daily Word

Daily Word is a personal Next.js app that sends a daily Bible reading email using Vercel Cron, Resend, and local JSON files. It does not use a database or public subscription flow.

Environment

Create .env.local with:

RESEND_API_KEY=
CRON_SECRET=
DAILY_WORD_RECIPIENTS=elian_rc@yahoo.com

DAILY_WORD_RECIPIENTS is optional. If it is missing, the app falls back to src/config/daily-word.ts.

Data Files

The app reads these server-side files:

  • data/daily-word-bible.json
  • data/daily-word-reading-plan.json

Do not place the Bible JSON in public/.

Local Development

npm install
npm run dev

Preview a reading without sending:

/api/test/preview?date=2026-04-30&secret=YOUR_SECRET

Send a test email:

/api/test/send?date=2026-04-30&secret=YOUR_SECRET

Run the daily endpoint manually:

/api/cron/send-daily-reading?secret=YOUR_SECRET

The secret may also be sent as:

Authorization: Bearer YOUR_SECRET

Vercel

Set RESEND_API_KEY, CRON_SECRET, and optionally DAILY_WORD_RECIPIENTS in Vercel project settings.

Vercel Cron uses UTC. Puerto Rico is UTC-4, so:

{
  "path": "/api/cron/send-daily-reading",
  "schedule": "0 10 * * *"
}

This runs around 6:00 AM Puerto Rico time.

About

Daily Word is a Next.js app that automatically sends daily Bible reading portions by email. It uses a local Bible JSON file, a custom reading plan, scheduled serverless jobs, and an email API to deliver Scripture readings on a daily schedule.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors