Problem: Bible readers benefit enormously from commentary — scholarly explanations that illuminate the meaning and context of verses. Matthew Henry's Complete Commentary (1706) is one of the most beloved and comprehensive Protestant commentaries ever written, still widely read three centuries later.
Solution: BibleWeb includes the full Matthew Henry commentary as one of three tabbed commentary sources accessible from any verse. Users can read verse-by-verse exposition alongside the Bible text.
Not included: Abridged or modern-language versions of Matthew Henry. This is the complete, original text.
When a user opens the commentary for any verse, they can read Matthew Henry's exposition on that passage. The commentary appears in a right-side drawer with tabs for switching between available commentary sources.
User flow:
Edge cases:
Tab interface:
Drawer:
Text rendering:
Data:
commentaries — columns: id (PK), verse_id (FK → verses.id), source (text), text (text), text_nl (text, nullable)'matthew_henry'idx_commentaries_verse on verse_idData source: Imported from BibleGame source database (~/Code/BibleGame/Data/output/bible.db) via scripts/seed-commentaries.ts. Originally collected by BibleGame's 12_import_commentaries.py Python script.
API:
GET /api/commentaries/[bookId]/[chapter]/[verse] — returns all commentary sources for a versecommentaries (Pro+)max-age=86400 (24 hours)Query: getCommentaries(verseId) in apps/web/src/lib/server/queries/commentaries.ts
Component: CommentaryDrawer.svelte — fetches API, groups by source, renders tabs. Tab order defined in SOURCE_ORDER: Matthew Henry → John Gill → Kanttekeningen.
Files:
apps/web/src/lib/components/bible/CommentaryDrawer.svelte — drawer + tabsapps/web/src/routes/api/commentaries/[bookId]/[chapter]/[verse]/+server.ts — API endpointapps/web/src/lib/server/queries/commentaries.ts — DB queriesscripts/seed-commentaries.ts — import script from BibleGame DBCurrent: DONE Milestone: v2 Priority: High — cornerstone study feature
History:
Dependencies: