CLAUDE.md — peptide.diy

Guidance for Claude Code working in this repo. Read before making changes.

What this is

peptide.diy — a Jekyll static site (research-led peptide protocols, guides, glossary, and a reconstitution calculator), hosted on GitHub Pages (FletcherPoole/peptide.diy) at the apex custom domain peptide.diy. DNS is on Namecheap (registrar-servers.com nameservers). British/en-GB audience and spelling.

Deploy / build

Architecture

The calculator (js/app.js)

Reconstitution calculator on calculator.html (full) and index.html (home, injection-only). Features: injection/cream/nasal modes, live-updating results, aria-live region, URL-param deep-linking + persistence (state is written to the URL so results are shareable/bookmarkable), copy-link and save-as-PNG (canvas, no external libs), a barebones vial-duration estimate, and an SVG syringe fill visual. Protocol pages deep-link into it via the calc: front-matter block → calc-cta.html. GA events: calculator_used, calculator_share_link, calculator_save_image, contact_submit.

Conventions

Protocol pages — the important workflow

Single-peptide protocol pages follow a fixed template: see _drafts/_PROTOCOL-TEMPLATE.md (front-matter, 13-section order, HTML skeleton, formatting rules). Read it before creating or editing any protocol page.

Key rules:

Content workflow the owner wants: research (peptidedosages.com articles + the studies they link, deep-dived, + FDA labels/PubMed) → bullet-point draft in _drafts/ first for point-level review → expand to full per-size HTML only after sign-off. Reconcile cross-link slugs to real filenames at build time.

Working style