← Back to projects

Publishing and creative applications

Esoteric Vernacular

A daily moment of Scripture and reflection.

Availability
Publicly accessible website
Esoteric Vernacular daily devotional website showing a Bible verse, an AI-generated devotional reflection, and a nature photograph backdrop
Esoteric Vernacular daily reading experience pairing Scripture, an AI-generated reflection, and nature photography.

Overview

Esoteric Vernacular brings together Scripture (World English Bible), original nature photography, and short AI-generated devotional reflections in a daily reading experience. Rather than a static devotional site updated by hand, it is an automated content publishing system that selects source photography and verses, generates reflections using Gemini, processes responsive imagery, and publishes new entries on a daily schedule.

The problem

Maintaining a consistent daily devotional combining original photography and Scripture requires recurring image preparation, selection tracking so verses and photos do not repeat prematurely, text generation, cache rollover, and archive publishing.

What I built

A Next.js and TypeScript publishing platform backed by Firebase and Google Cloud that automates daily devotional generation, responsive image processing, public reading and archive routes, and administrative management.

Key capabilities

  • Syncs source JPEG photography from a configured Google Drive folder into Cloud Firestore and manages eligible Scripture passages so verses and photographs rotate cleanly.
  • Runs a scheduled nightly generation pipeline (Firebase Cloud Functions v2) that downloads the selected photograph, produces responsive WebP hero sizes (2560px, 1600px, 1080px), archive thumbnails (400px), and Open Graph JPEGs using sharp, and uploads them to Cloud Storage.
  • Generates a devotional title and short reflection via the Gemini API (with primary/fallback model configuration and Zod output validation) and commits the published entry atomically to Cloud Firestore.
  • Presents the daily entry over responsive full-bleed photography using a custom Next.js image loader, alongside an archive filterable by year, month, and Scripture book, a /random devotional route, and an RSS feed.
  • Includes a Firebase Auth–protected administrative panel for syncing Google Drive photos, reviewing photo and verse catalogs, editing or previewing devotionals, running manual generations or historical backfills, and inspecting audit logs.

Technical architecture

Built with Next.js (App Router), TypeScript, and Tailwind CSS, hosted on Firebase App Hosting (Cloud Run) and backed by Cloud Firestore, Cloud Storage, Firebase Authentication, and Firebase App Check. Scheduled Firebase Cloud Functions v2 run nightly generation and morning publication health checks, with secrets managed in Google Cloud Secret Manager, Cloud Monitoring log-based alerts, and DST-aware midnight Eastern cache rollover plus authenticated tag revalidation.

Engineering decisions

Pre-generating each day’s entry in an atomic Firestore batch write with stale-lock recovery prevents partial publishes and reverts source photo status if a run fails. Generating sized WebP assets during publishing and pairing them with a custom Next.js image loader keeps full-screen nature photography responsive without on-the-fly image resizing.

Availability & notes

Publicly accessible website at www.esotericvernacular.com, free to read with no account required. Source code is private. Devotional reflections are explicitly AI-generated with Google Gemini from curated Scripture passages and paired with my photography.