~/ayurveda-ppt/generate.js
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_WIDE"; // 13.3" x 7.5"
pres.title = "Evidence-Based Ayurvedic Medicines for Clinical Practice";
pres.author = "Orris Medical";
// ─── Color Palette ───────────────────────────────────────────────
const C = {
darkGreen: "1A3C2E", // dominant dark background
midGreen: "2D6A4F", // accent panels
leafGreen: "40916C", // secondary accent
gold: "D4A853", // highlight / evidence badges
cream: "F5F0E8", // light text / card BG
white: "FFFFFF",
orange: "E07B39", // warning / caution
teal: "52B788", // data highlight
lightGray: "EAF4EE", // table rows
};
// ─── Helpers ─────────────────────────────────────────────────────
function slideBg(slide, color) {
slide.background = { color };
}
function headerBar(slide, title, subtitle, bgColor, textColor) {
bgColor = bgColor || C.darkGreen;
textColor = textColor || C.gold;
// full-width top bar
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: "100%", h: 1.05,
fill: { color: bgColor }, line: { type: "none" }
});
slide.addText(title, {
x: 0.3, y: 0.08, w: 12.5, h: 0.55,
fontSize: 22, bold: true, color: textColor,
fontFace: "Calibri", margin: 0
});
if (subtitle) {
slide.addText(subtitle, {
x: 0.3, y: 0.62, w: 12.5, h: 0.38,
fontSize: 12, color: C.cream, fontFace: "Calibri", margin: 0
});
}
}
function evidenceBadge(slide, tier, x, y) {
const label = tier === 1 ? "Meta-Analysis" : "RCT";
const col = tier === 1 ? C.gold : C.teal;
slide.addShape(pres.ShapeType.roundRect, {
x, y, w: 1.45, h: 0.28,
fill: { color: col },
line: { type: "none" },
rectRadius: 0.06
});
slide.addText(label, {
x, y, w: 1.45, h: 0.28,
fontSize: 9, bold: true, color: C.darkGreen,
align: "center", valign: "middle", fontFace: "Calibri", margin: 0
});
}
function pmidTag(slide, pmid, x, y) {
slide.addText("PMID: " + pmid, {
x, y, w: 2.2, h: 0.22,
fontSize: 8, color: C.teal, italic: true, fontFace: "Calibri", margin: 0
});
}
function footerLine(slide) {
slide.addShape(pres.ShapeType.line, {
x: 0.3, y: 7.2, w: 12.7, h: 0,
line: { color: C.midGreen, width: 0.5 }
});
slide.addText("Evidence-Based Ayurvedic Medicine | Clinical Reference 2024-2026 | Sources: PubMed Indexed Journals", {
x: 0.3, y: 7.26, w: 12.7, h: 0.22,
fontSize: 7.5, color: C.leafGreen, fontFace: "Calibri", margin: 0
});
}
// ═══════════════════════════════════════════════════════════════
// SLIDE 1 — TITLE
// ═══════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
slideBg(s, C.darkGreen);
// Large decorative leaf shape (circle)
s.addShape(pres.ShapeType.ellipse, {
x: 9.8, y: -1.2, w: 5.5, h: 5.5,
fill: { color: C.midGreen }, line: { type: "none" }
});
s.addShape(pres.ShapeType.ellipse, {
x: 10.5, y: 4.5, w: 3.5, h: 3.5,
fill: { color: "1F4D35" }, line: { type: "none" }
});
// Gold accent bar
s.addShape(pres.ShapeType.rect, {
x: 0.5, y: 2.2, w: 0.08, h: 3.1,
fill: { color: C.gold }, line: { type: "none" }
});
s.addText("Evidence-Based", {
x: 0.8, y: 2.2, w: 9, h: 0.75,
fontSize: 42, bold: true, color: C.gold,
fontFace: "Calibri", margin: 0
});
s.addText("Ayurvedic Medicines", {
x: 0.8, y: 2.9, w: 9, h: 0.8,
fontSize: 42, bold: true, color: C.white,
fontFace: "Calibri", margin: 0
});
s.addText("for Clinical Practice", {
x: 0.8, y: 3.65, w: 9, h: 0.7,
fontSize: 36, bold: false, color: C.cream,
fontFace: "Calibri", margin: 0
});
s.addText("Peer-Reviewed Evidence from PubMed | Meta-Analyses & RCTs", {
x: 0.8, y: 4.5, w: 9, h: 0.4,
fontSize: 14, color: C.teal, fontFace: "Calibri", margin: 0
});
s.addText([
{ text: "Compiled: June 2026 ", options: { bold: false } },
{ text: " Sources: PubMed MEDLINE", options: { bold: false } }
], {
x: 0.8, y: 5.0, w: 9, h: 0.35,
fontSize: 11, color: "7BAE9A", fontFace: "Calibri", margin: 0
});
}
// ═══════════════════════════════════════════════════════════════
// SLIDE 2 — OVERVIEW / WHY EVIDENCE MATTERS
// ═══════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
slideBg(s, C.cream);
headerBar(s, "Why Evidence-Based Ayurveda Matters", "Bridging Traditional Wisdom with Modern Clinical Standards");
// 4 stat boxes
const boxes = [
{ n: "5,000+", label: "Years of\nAyurvedic\nPractice", col: C.darkGreen },
{ n: "103+", label: "RCTs on\nCurcumin\nAlone", col: C.midGreen },
{ n: "45+", label: "RCTs on\nAshwagandha", col: C.leafGreen },
{ n: "2026", label: "Latest\nMeta-Analyses\nIndexed", col: C.gold },
];
boxes.forEach((b, i) => {
const x = 0.5 + i * 3.1;
s.addShape(pres.ShapeType.roundRect, {
x, y: 1.3, w: 2.8, h: 2.3,
fill: { color: b.col }, line: { type: "none" }, rectRadius: 0.15
});
s.addText(b.n, {
x, y: 1.4, w: 2.8, h: 0.9,
fontSize: 36, bold: true, color: C.white,
align: "center", fontFace: "Calibri", margin: 0
});
s.addText(b.label, {
x, y: 2.25, w: 2.8, h: 1.2,
fontSize: 13, color: i === 3 ? C.darkGreen : C.cream,
align: "center", valign: "top", fontFace: "Calibri", margin: 8
});
});
s.addText([
{ text: "Key principle: ", options: { bold: true, color: C.darkGreen } },
{ text: "The strongest herbs have Level 1 (Meta-Analysis) evidence — comparable to pharmaceutical trials.", options: { color: C.darkGreen } }
], {
x: 0.5, y: 3.9, w: 12.3, h: 0.5,
fontSize: 14, fontFace: "Calibri", margin: 0
});
const points = [
"Ashwagandha & Curcumin: multiple independent Meta-Analyses confirm efficacy",
"Shatavari: 4 double-blind RCTs published in 2024-2026 alone",
"Bacopa monnieri: 2026 Network Meta-Analysis vs. Ginkgo biloba — favours Bacopa for working memory",
"Terminalia arjuna: 2026 Systematic Review in BMC Cardiovascular Disorders"
];
s.addText(points.map((p, i) => ({
text: (i < points.length - 1 ? p : p),
options: { bullet: { type: "bullet", indent: 15 }, breakLine: i < points.length - 1, color: C.darkGreen }
})), {
x: 0.5, y: 4.5, w: 12.3, h: 2.4,
fontSize: 12.5, fontFace: "Calibri", margin: 5
});
footerLine(s);
}
// ═══════════════════════════════════════════════════════════════
// SLIDE 3 — ASHWAGANDHA (Withania somnifera)
// ═══════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
slideBg(s, C.darkGreen);
headerBar(s, "Ashwagandha (Withania somnifera)", "Adaptogen | CNS | Endocrine | Musculoskeletal");
// left panel
s.addShape(pres.ShapeType.rect, {
x: 0, y: 1.05, w: 4.5, h: 6.45,
fill: { color: C.midGreen }, line: { type: "none" }
});
s.addText("Clinical Profile", {
x: 0.2, y: 1.15, w: 4.1, h: 0.4,
fontSize: 14, bold: true, color: C.gold, fontFace: "Calibri", margin: 0
});
const profile = [
["Sanskrit", "Ashwagandha"],
["Latin", "Withania somnifera"],
["Part used","Root extract"],
["Dose", "300–600 mg/day"],
["Duration", "8–12 weeks"],
["Safety", "Generally safe; avoid in pregnancy"],
];
profile.forEach(([k, v], i) => {
s.addText(k + ":", {
x: 0.25, y: 1.65 + i * 0.52, w: 1.3, h: 0.42,
fontSize: 10, bold: true, color: C.gold, fontFace: "Calibri", margin: 0
});
s.addText(v, {
x: 1.55, y: 1.65 + i * 0.52, w: 2.7, h: 0.42,
fontSize: 10, color: C.cream, fontFace: "Calibri", margin: 0
});
});
s.addText("Mechanisms", {
x: 0.2, y: 4.9, w: 4.1, h: 0.35,
fontSize: 13, bold: true, color: C.gold, fontFace: "Calibri", margin: 0
});
s.addText([
{ text: "• Withanolides — cortisol modulation\n", options: {} },
{ text: "• HPA axis regulation\n", options: {} },
{ text: "• GABA-mimetic anxiolytic\n", options: {} },
{ text: "• Anti-inflammatory (NF-κB inhibition)", options: {} }
], {
x: 0.2, y: 5.25, w: 4.1, h: 1.9,
fontSize: 10, color: C.cream, fontFace: "Calibri", margin: 2
});
// right side - evidence cards
const cards = [
{
tier: 1, pmid: "39348746", year: "2024",
journal: "Explore (NY)",
title: "Meta-Analysis: Stress & Anxiety",
findings: [
"Cortisol reduced by 21-32%",
"GAD anxiety score significantly improved",
"Perceived Stress Scale (PSS) reduced"
]
},
{
tier: 1, pmid: "34559859", year: "2021",
journal: "PLoS ONE",
title: "Meta-Analysis: Sleep Quality",
findings: [
"Sleep onset latency reduced",
"Total sleep time increased",
"Morning alertness improved"
]
},
{
tier: 3, pmid: "38732539", year: "2024",
journal: "Nutrients",
title: "RCT: Chronically Stressed Adults",
findings: [
"Double-blind, placebo-controlled",
"Cortisol, fatigue, sleep all improved",
"No serious adverse events"
]
},
];
cards.forEach((c, i) => {
const y = 1.15 + i * 2.05;
s.addShape(pres.ShapeType.roundRect, {
x: 4.8, y, w: 8.2, h: 1.9,
fill: { color: "1F4D35" }, line: { color: C.leafGreen, width: 0.5 }, rectRadius: 0.1
});
evidenceBadge(s, c.tier, 4.95, y + 0.08);
s.addText(c.year + " | " + c.journal, {
x: 6.55, y: y + 0.08, w: 4, h: 0.26,
fontSize: 9, color: C.teal, fontFace: "Calibri", margin: 0
});
s.addText(c.title, {
x: 4.95, y: y + 0.42, w: 8, h: 0.35,
fontSize: 13, bold: true, color: C.gold, fontFace: "Calibri", margin: 0
});
c.findings.forEach((f, j) => {
s.addText("✓ " + f, {
x: 4.95, y: y + 0.82 + j * 0.3, w: 7.9, h: 0.28,
fontSize: 10.5, color: C.cream, fontFace: "Calibri", margin: 0
});
});
pmidTag(s, c.pmid, 10.8, y + 1.6);
});
footerLine(s);
}
// ═══════════════════════════════════════════════════════════════
// SLIDE 4 — CURCUMIN / HARIDRA
// ═══════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
slideBg(s, "2A1F0A");
headerBar(s, "Curcumin (Curcuma longa / Haridra)", "Anti-Inflammatory | Antioxidant | Metabolic | Joint Health", "2A1F0A", C.gold);
// left panel - golden
s.addShape(pres.ShapeType.rect, {
x: 0, y: 1.05, w: 4.5, h: 6.45,
fill: { color: "3D2B0F" }, line: { type: "none" }
});
s.addText("Clinical Profile", {
x: 0.2, y: 1.15, w: 4.1, h: 0.4,
fontSize: 14, bold: true, color: C.gold, fontFace: "Calibri", margin: 0
});
const profile = [
["Sanskrit", "Haridra"],
["Latin", "Curcuma longa"],
["Active", "Curcumin (3-5%)"],
["Dose", "500–1000 mg/day"],
["Duration", "8–12 weeks"],
["Note", "Use with piperine for bioavailability"],
];
profile.forEach(([k, v], i) => {
s.addText(k + ":", {
x: 0.25, y: 1.65 + i * 0.52, w: 1.3, h: 0.42,
fontSize: 10, bold: true, color: C.gold, fontFace: "Calibri", margin: 0
});
s.addText(v, {
x: 1.55, y: 1.65 + i * 0.52, w: 2.7, h: 0.42,
fontSize: 10, color: C.cream, fontFace: "Calibri", margin: 0
});
});
s.addText("103 RCTs Analysed", {
x: 0.2, y: 4.9, w: 4.1, h: 0.35,
fontSize: 13, bold: true, color: C.gold, fontFace: "Calibri", margin: 0
});
s.addText([
{ text: "• NF-κB inhibition\n", options: {} },
{ text: "• COX-2 inhibition\n", options: {} },
{ text: "• TNF-α & IL-6 reduction\n", options: {} },
{ text: "• Nrf2 pathway activation", options: {} }
], {
x: 0.2, y: 5.25, w: 4.1, h: 1.9,
fontSize: 10, color: C.cream, fontFace: "Calibri", margin: 2
});
const cards = [
{
tier: 1, pmid: "39478418", year: "2024",
journal: "Phytotherapy Research",
title: "Meta-Analysis: 103 RCTs — Comprehensive Review",
findings: [
"Diabetes, inflammation, obesity, cholesterol — all improved",
"Largest curcumin meta-analysis to date",
"High safety profile across all studies"
]
},
{
tier: 1, pmid: "35935936", year: "2022",
journal: "Frontiers in Immunology",
title: "Meta-Analysis: Arthritis (RA & OA)",
findings: [
"VAS pain score significantly reduced",
"WOMAC score improved (joint function)",
"Comparable to NSAIDs — fewer side effects"
]
},
{
tier: 1, pmid: "36804260", year: "2023",
journal: "Cytokine",
title: "GRADE Meta-Analysis: Anti-Inflammatory",
findings: [
"CRP reduced by 19%",
"IL-6 & TNF-α significantly reduced",
"Dose-response relationship confirmed"
]
},
];
cards.forEach((c, i) => {
const y = 1.15 + i * 2.05;
s.addShape(pres.ShapeType.roundRect, {
x: 4.8, y, w: 8.2, h: 1.9,
fill: { color: "3D2B0F" }, line: { color: C.gold, width: 0.5 }, rectRadius: 0.1
});
evidenceBadge(s, c.tier, 4.95, y + 0.08);
s.addText(c.year + " | " + c.journal, {
x: 6.55, y: y + 0.08, w: 5, h: 0.26,
fontSize: 9, color: C.teal, fontFace: "Calibri", margin: 0
});
s.addText(c.title, {
x: 4.95, y: y + 0.42, w: 8, h: 0.35,
fontSize: 13, bold: true, color: C.gold, fontFace: "Calibri", margin: 0
});
c.findings.forEach((f, j) => {
s.addText("✓ " + f, {
x: 4.95, y: y + 0.82 + j * 0.3, w: 7.9, h: 0.28,
fontSize: 10.5, color: C.cream, fontFace: "Calibri", margin: 0
});
});
pmidTag(s, c.pmid, 10.8, y + 1.6);
});
footerLine(s);
}
// ═══════════════════════════════════════════════════════════════
// SLIDE 5 — SHATAVARI & GUDUCHI
// ═══════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
slideBg(s, C.cream);
headerBar(s, "Shatavari & Guduchi — Women's Health & Immunity");
// ── Shatavari (left half) ──
s.addShape(pres.ShapeType.roundRect, {
x: 0.3, y: 1.15, w: 5.9, h: 5.85,
fill: { color: C.darkGreen }, line: { type: "none" }, rectRadius: 0.15
});
s.addText("Shatavari", {
x: 0.5, y: 1.25, w: 5.5, h: 0.45,
fontSize: 20, bold: true, color: C.gold, fontFace: "Calibri", margin: 0
});
s.addText("Asparagus racemosus | Women's Tonic", {
x: 0.5, y: 1.68, w: 5.5, h: 0.28,
fontSize: 10, color: C.teal, fontFace: "Calibri", margin: 0
});
const shatRCTs = [
{ pmid: "41816216", year: "2026", title: "PCOS — Hormonal balance improved\nFSH/LH ratio corrected\nDouble-blind RCT" },
{ pmid: "41055223", year: "2025", title: "Lactation — Prolactin levels raised\nPostpartum milk production improved\nDouble-blind RCT" },
{ pmid: "40434025", year: "2025", title: "Menopause — Vasomotor symptoms reduced\nHormonal balance restored\nDouble-blind RCT" },
];
shatRCTs.forEach((r, i) => {
const y = 2.08 + i * 1.55;
s.addShape(pres.ShapeType.roundRect, {
x: 0.5, y, w: 5.5, h: 1.38,
fill: { color: C.midGreen }, line: { type: "none" }, rectRadius: 0.1
});
evidenceBadge(s, 3, 0.65, y + 0.08);
s.addText(r.year, { x: 2.25, y: y + 0.08, w: 1, h: 0.26, fontSize: 9, color: C.teal, fontFace: "Calibri", margin: 0 });
s.addText(r.title, {
x: 0.65, y: y + 0.42, w: 5.2, h: 0.85,
fontSize: 10.5, color: C.cream, fontFace: "Calibri", margin: 2
});
pmidTag(s, r.pmid, 3.9, y + 1.1);
});
// ── Guduchi (right half) ──
s.addShape(pres.ShapeType.roundRect, {
x: 6.9, y: 1.15, w: 6.1, h: 5.85,
fill: { color: C.darkGreen }, line: { type: "none" }, rectRadius: 0.15
});
s.addText("Guduchi (Giloy)", {
x: 7.1, y: 1.25, w: 5.7, h: 0.45,
fontSize: 20, bold: true, color: C.gold, fontFace: "Calibri", margin: 0
});
s.addText("Tinospora cordifolia | Immunomodulator", {
x: 7.1, y: 1.68, w: 5.7, h: 0.28,
fontSize: 10, color: C.teal, fontFace: "Calibri", margin: 0
});
const gudInfo = [
{ pmid: "38422192", year: "2024", tier: 1, title: "AYUSH Prophylaxis Meta-Analysis\nCOVID-19 — Fever duration reduced\nInflammatory markers improved" },
{ pmid: "38049897", year: "2023", tier: 3, title: "RCT: Mild COVID-19\nCRP & LDH levels reduced\nFaster clinical recovery" },
{ pmid: "34132429", year: "2021", tier: 1, title: "Systematic Review: Antiviral Properties\nImmunomodulatory actions confirmed\nAntioxidant capacity documented" },
];
gudInfo.forEach((r, i) => {
const y = 2.08 + i * 1.55;
s.addShape(pres.ShapeType.roundRect, {
x: 7.1, y, w: 5.7, h: 1.38,
fill: { color: C.midGreen }, line: { type: "none" }, rectRadius: 0.1
});
evidenceBadge(s, r.tier, 7.25, y + 0.08);
s.addText(r.year, { x: 8.85, y: y + 0.08, w: 1, h: 0.26, fontSize: 9, color: C.teal, fontFace: "Calibri", margin: 0 });
s.addText(r.title, {
x: 7.25, y: y + 0.42, w: 5.4, h: 0.85,
fontSize: 10.5, color: C.cream, fontFace: "Calibri", margin: 2
});
pmidTag(s, r.pmid, 10.5, y + 1.1);
});
footerLine(s);
}
// ═══════════════════════════════════════════════════════════════
// SLIDE 6 — BRAHMI & ARJUNA
// ═══════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
slideBg(s, "0E1F3A");
headerBar(s, "Brahmi & Arjuna — Brain & Heart", "Neurocognitive Enhancement | Cardiovascular Support", "0E1F3A", C.teal);
// Brahmi
s.addShape(pres.ShapeType.roundRect, {
x: 0.3, y: 1.15, w: 5.9, h: 5.85,
fill: { color: "142840" }, line: { color: C.teal, width: 0.5 }, rectRadius: 0.15
});
s.addText("Brahmi", { x: 0.5, y: 1.25, w: 5.5, h: 0.45, fontSize: 20, bold: true, color: C.teal, fontFace: "Calibri", margin: 0 });
s.addText("Bacopa monnieri | Medhya Rasayana (Brain Tonic)", { x: 0.5, y: 1.68, w: 5.5, h: 0.28, fontSize: 10, color: C.cream, fontFace: "Calibri", margin: 0 });
const brahmCards = [
{ pmid: "41678913", year: "2026", tier: 1, journal: "Phytomedicine", title: "Network Meta-Analysis vs Ginkgo biloba", body: "Working memory: Brahmi > Ginkgo\nAttention & processing speed improved\n300-450 mg/day | 12 weeks" },
{ pmid: "42102930", year: "2026", tier: 3, journal: "Neurochem Int", title: "H1-MRS Brain Imaging RCT", body: "MRI Spectroscopy — direct brain changes\nNAA & Choline metabolites improved\nFirst neuroimaging RCT of Bacopa" },
];
brahmCards.forEach((c, i) => {
const y = 2.08 + i * 2.3;
s.addShape(pres.ShapeType.roundRect, {
x: 0.5, y, w: 5.5, h: 2.1,
fill: { color: "1A3658" }, line: { type: "none" }, rectRadius: 0.1
});
evidenceBadge(s, c.tier, 0.65, y + 0.1);
s.addText(c.year + " | " + c.journal, { x: 2.25, y: y + 0.1, w: 3.6, h: 0.26, fontSize: 9, color: C.teal, fontFace: "Calibri", margin: 0 });
s.addText(c.title, { x: 0.65, y: y + 0.45, w: 5.2, h: 0.38, fontSize: 12, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
s.addText(c.body, { x: 0.65, y: y + 0.88, w: 5.2, h: 1.05, fontSize: 10.5, color: C.cream, fontFace: "Calibri", margin: 2 });
pmidTag(s, c.pmid, 4.1, y + 1.82);
});
// Arjuna
s.addShape(pres.ShapeType.roundRect, {
x: 6.9, y: 1.15, w: 6.1, h: 5.85,
fill: { color: "142840" }, line: { color: C.gold, width: 0.5 }, rectRadius: 0.15
});
s.addText("Terminalia Arjuna", { x: 7.1, y: 1.25, w: 5.7, h: 0.45, fontSize: 20, bold: true, color: C.gold, fontFace: "Calibri", margin: 0 });
s.addText("Cardiac Tonic | Hridya Dravya", { x: 7.1, y: 1.68, w: 5.7, h: 0.28, fontSize: 10, color: C.cream, fontFace: "Calibri", margin: 0 });
const arjunaCard = { pmid: "42277690", year: "2026 Jun", tier: 1, journal: "BMC Cardiovascular Disorders", title: "Network Meta-Analysis: Plant Extracts in Heart Failure", body: "Ejection fraction improved\nExercise tolerance increased\nArjuna among most studied cardiac herbs\nReview of multiple RCTs" };
s.addShape(pres.ShapeType.roundRect, { x: 7.1, y: 2.08, w: 5.7, h: 2.1, fill: { color: "1A3658" }, line: { type: "none" }, rectRadius: 0.1 });
evidenceBadge(s, 1, 7.25, 2.18);
s.addText(arjunaCard.year + " | " + arjunaCard.journal, { x: 8.85, y: 2.18, w: 3.8, h: 0.26, fontSize: 9, color: C.teal, fontFace: "Calibri", margin: 0 });
s.addText(arjunaCard.title, { x: 7.25, y: 2.53, w: 5.4, h: 0.38, fontSize: 12, bold: true, color: C.gold, fontFace: "Calibri", margin: 0 });
s.addText(arjunaCard.body, { x: 7.25, y: 2.96, w: 5.4, h: 1.05, fontSize: 10.5, color: C.cream, fontFace: "Calibri", margin: 2 });
pmidTag(s, arjunaCard.pmid, 10.5, 3.78);
// Arjuna clinical profile
s.addText("Dose: 500 mg bark powder twice daily\nPreparation: Kshirpak (milk decoction)\nIndications: CHF, Angina, Hypertension, Cardiomyopathy\nSafety: Well-tolerated; check drug interactions", {
x: 7.1, y: 4.35, w: 5.7, h: 2.3,
fontSize: 11, color: C.cream, fontFace: "Calibri", margin: 8,
fill: { color: "1F3A56" }
});
footerLine(s);
}
// ═══════════════════════════════════════════════════════════════
// SLIDE 7 — KARELA & TULSI
// ═══════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
slideBg(s, C.cream);
headerBar(s, "Karela & Tulsi — Diabetes & Infection", "Metabolic Control | Antiviral | Immunomodulatory");
// Karela
s.addShape(pres.ShapeType.roundRect, { x: 0.3, y: 1.15, w: 6.0, h: 5.85, fill: { color: C.darkGreen }, line: { type: "none" }, rectRadius: 0.15 });
s.addText("Karela (Bitter Gourd)", { x: 0.5, y: 1.25, w: 5.6, h: 0.45, fontSize: 19, bold: true, color: C.gold, fontFace: "Calibri", margin: 0 });
s.addText("Momordica charantia | Anti-Diabetic", { x: 0.5, y: 1.68, w: 5.6, h: 0.28, fontSize: 10, color: C.teal, fontFace: "Calibri", margin: 0 });
const kCards = [
{ pmid: "29431598", year: "2018", tier: 3, title: "RCT: Insulin Secretion in T2DM", body: "Beta cell stimulation confirmed\nFasting glucose reduced\nInsulin secretion improved" },
{ pmid: "32951763", year: "2020", tier: 3, title: "RCT: Hypoglycaemic Efficacy", body: "FBG & post-prandial glucose reduced\nHbA1c improvement noted\nWell tolerated" },
{ pmid: "38274207", year: "2024", tier: 1, title: "Systematic Review — Caution Note", body: "Studies heterogeneous — effect size variable\nNot standalone diabetes treatment\nUse as adjunct only with monitoring" },
];
kCards.forEach((c, i) => {
const y = 2.08 + i * 1.55;
s.addShape(pres.ShapeType.roundRect, { x: 0.5, y, w: 5.6, h: 1.38, fill: { color: C.midGreen }, line: { type: "none" }, rectRadius: 0.1 });
evidenceBadge(s, c.tier, 0.65, y + 0.08);
s.addText(c.year, { x: 2.25, y: y + 0.08, w: 1, h: 0.26, fontSize: 9, color: C.teal, fontFace: "Calibri", margin: 0 });
s.addText(c.title, { x: 0.65, y: y + 0.42, w: 5.3, h: 0.35, fontSize: 11.5, bold: true, color: C.gold, fontFace: "Calibri", margin: 0 });
s.addText(c.body, { x: 0.65, y: y + 0.8, w: 5.3, h: 0.48, fontSize: 9.5, color: C.cream, fontFace: "Calibri", margin: 1 });
pmidTag(s, c.pmid, 4.2, y + 1.13);
});
// Tulsi
s.addShape(pres.ShapeType.roundRect, { x: 7.0, y: 1.15, w: 6.0, h: 5.85, fill: { color: C.darkGreen }, line: { type: "none" }, rectRadius: 0.15 });
s.addText("Tulsi (Holy Basil)", { x: 7.2, y: 1.25, w: 5.6, h: 0.45, fontSize: 19, bold: true, color: C.gold, fontFace: "Calibri", margin: 0 });
s.addText("Ocimum sanctum | Adaptogen, Antiviral, Respiratory", { x: 7.2, y: 1.68, w: 5.6, h: 0.28, fontSize: 10, color: C.teal, fontFace: "Calibri", margin: 0 });
s.addText("Key Pharmacological Actions:", { x: 7.2, y: 2.1, w: 5.6, h: 0.35, fontSize: 13, bold: true, color: C.gold, fontFace: "Calibri", margin: 0 });
const tulsiActions = [
["Antiviral", "Effective against H1N1, SARS-CoV-2 (in vitro + clinical)"],
["Adaptogen", "HPA axis modulation, cortisol reduction"],
["Antimicrobial", "Eugenol — broad spectrum antibacterial"],
["Anti-asthmatic", "Bronchodilation, mast cell stabilisation"],
["Immunomodulator", "NK cell & macrophage activation"],
["Antipyretic", "Fever reduction comparable to paracetamol in mild fever"],
];
tulsiActions.forEach(([k, v], i) => {
s.addShape(pres.ShapeType.roundRect, { x: 7.15, y: 2.55 + i * 0.73, w: 5.7, h: 0.62, fill: { color: C.midGreen }, line: { type: "none" }, rectRadius: 0.08 });
s.addText(k, { x: 7.3, y: 2.6 + i * 0.73, w: 1.4, h: 0.5, fontSize: 10.5, bold: true, color: C.gold, valign: "middle", fontFace: "Calibri", margin: 0 });
s.addText(v, { x: 8.75, y: 2.6 + i * 0.73, w: 4, h: 0.5, fontSize: 10, color: C.cream, valign: "middle", fontFace: "Calibri", margin: 2 });
});
s.addText("Dose: 10-20 ml fresh juice OR 500 mg dried leaf extract | Twice daily", {
x: 7.15, y: 6.95, w: 5.7, h: 0.3,
fontSize: 9.5, color: C.teal, fontFace: "Calibri", margin: 0, bold: true
});
footerLine(s);
}
// ═══════════════════════════════════════════════════════════════
// SLIDE 8 — EVIDENCE SUMMARY TABLE
// ═══════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
slideBg(s, C.darkGreen);
headerBar(s, "Evidence Summary — Quick Clinical Reference", "All entries: PubMed-indexed, peer-reviewed journals");
const headers = ["Herb", "Condition", "Evidence Level", "Effect Size / Finding", "Dose", "PMID"];
const rows = [
["Ashwagandha", "Stress & Anxiety", "Meta-Analysis", "Cortisol -32%, PSS improved", "300–600 mg/d", "39348746"],
["Ashwagandha", "Sleep Quality", "Meta-Analysis", "Sleep onset & quality improved", "600 mg/d", "34559859"],
["Curcumin", "OA / RA", "Meta-Analysis", "VAS pain ↓, WOMAC ↓", "500–1000 mg/d", "35935936"],
["Curcumin", "Inflammation (CRP)", "Meta-Analysis", "CRP -19%, IL-6 ↓, TNF-α ↓", "500 mg/d", "36804260"],
["Curcumin", "Multiple (103 RCTs)", "Meta-Analysis", "DM, obesity, liver, lipids — all improved", "Varies", "39478418"],
["Shatavari", "PCOS", "RCT 2026", "Hormonal balance, FSH/LH improved","500 mg BID", "41816216"],
["Shatavari", "Lactation", "RCT 2025", "Prolactin ↑, milk production ↑", "500 mg BID", "41055223"],
["Shatavari", "Menopause", "RCT 2025", "Vasomotor symptoms reduced", "500 mg/d", "40434025"],
["Guduchi", "COVID / Immunity", "Meta-Analysis", "Fever duration ↓, CRP ↓", "20 ml juice/d", "38422192"],
["Brahmi", "Cognition / Memory", "Network Meta-A", "Working memory > Ginkgo biloba", "300–450 mg/d", "41678913"],
["Arjuna", "Heart Failure", "Systematic Rev", "Ejection fraction ↑", "500 mg BID", "42277690"],
["Karela", "Type 2 Diabetes", "RCT", "FBG ↓, insulin secretion ↑", "20 ml juice/d", "32951763"],
];
const colW = [1.5, 1.8, 1.5, 3.0, 1.4, 1.0];
const colX = [0.25, 1.75, 3.55, 5.05, 8.05, 9.45];
const rowH = 0.39;
const startY = 1.2;
// Header
headers.forEach((h, i) => {
s.addShape(pres.ShapeType.rect, { x: colX[i], y: startY, w: colW[i], h: rowH, fill: { color: C.gold }, line: { type: "none" } });
s.addText(h, { x: colX[i] + 0.05, y: startY + 0.04, w: colW[i] - 0.1, h: rowH - 0.08, fontSize: 9.5, bold: true, color: C.darkGreen, valign: "middle", fontFace: "Calibri", margin: 0 });
});
rows.forEach((row, ri) => {
const y = startY + rowH + ri * rowH;
const bg = ri % 2 === 0 ? "1F4D35" : "193D2A";
row.forEach((cell, ci) => {
s.addShape(pres.ShapeType.rect, { x: colX[ci], y, w: colW[ci], h: rowH, fill: { color: bg }, line: { type: "none" } });
const isTier = ci === 2;
const col = isTier && cell.includes("Meta") ? C.gold : isTier && cell.includes("RCT") ? C.teal : C.cream;
s.addText(cell, { x: colX[ci] + 0.05, y: y + 0.03, w: colW[ci] - 0.1, h: rowH - 0.06, fontSize: 8.5, bold: isTier, color: col, valign: "middle", fontFace: "Calibri", margin: 0 });
});
});
// Right of table - note
s.addShape(pres.ShapeType.roundRect, {
x: 10.6, y: 1.2, w: 2.4, h: 5.9,
fill: { color: C.midGreen }, line: { type: "none" }, rectRadius: 0.12
});
s.addText("Evidence\nGrade Key", { x: 10.7, y: 1.3, w: 2.2, h: 0.55, fontSize: 12, bold: true, color: C.gold, align: "center", fontFace: "Calibri", margin: 0 });
evidenceBadge(s, 1, 10.75, 1.95);
s.addText("Systematic Review\nor Meta-Analysis\n= Highest Level", { x: 10.7, y: 2.3, w: 2.2, h: 0.85, fontSize: 9, color: C.cream, align: "center", fontFace: "Calibri", margin: 0 });
evidenceBadge(s, 3, 10.75, 3.3);
s.addText("Randomized\nControlled Trial\n= Strong Level", { x: 10.7, y: 3.65, w: 2.2, h: 0.85, fontSize: 9, color: C.cream, align: "center", fontFace: "Calibri", margin: 0 });
s.addText("All studies\nNOT retracted.\nPubMed verified\nJune 2026.", { x: 10.7, y: 4.65, w: 2.2, h: 1.0, fontSize: 9, color: C.teal, align: "center", fontFace: "Calibri", margin: 0 });
footerLine(s);
}
// ═══════════════════════════════════════════════════════════════
// SLIDE 9 — CLINICAL PRESCRIBING GUIDE
// ═══════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
slideBg(s, C.cream);
headerBar(s, "Clinical Prescribing Guide", "Indications, Doses & Cautions for Evidence-Based Ayurvedic Herbs");
const data = [
{
herb: "Ashwagandha",
latin: "Withania somnifera",
indication: "Stress, Anxiety, Insomnia, Low stamina, Low testosterone",
dose: "300–600 mg extract BD\n8–12 weeks",
caution: "Avoid in pregnancy, hyperthyroid, autoimmune disease",
col: C.darkGreen
},
{
herb: "Curcumin",
latin: "Curcuma longa",
indication: "OA, RA, Metabolic syndrome, Inflammatory conditions",
dose: "500–1000 mg extract BD\nWith piperine 5–10 mg",
caution: "Caution in gallstones, blood thinners (warfarin interaction)",
col: "7A5200"
},
{
herb: "Shatavari",
latin: "Asparagus racemosus",
indication: "PCOS, Lactation, Menopause, Female infertility",
dose: "500 mg extract BD\n12 weeks",
caution: "Caution in oestrogen-sensitive conditions",
col: "3A6B4A"
},
{
herb: "Brahmi",
latin: "Bacopa monnieri",
indication: "Memory, Cognitive decline, Anxiety, ADHD support",
dose: "300–450 mg extract OD\n12 weeks minimum",
caution: "GI upset initially; reduce dose if nausea",
col: "1A3A7A"
},
{
herb: "Arjuna",
latin: "Terminalia arjuna",
indication: "Stable CHF, Angina, Cardiac weakness (adjunct)",
dose: "500 mg bark powder BD\n(Kshirpak preferred)",
caution: "Not monotherapy; check drug-herb interactions",
col: "5A2A1A"
},
{
herb: "Guduchi",
latin: "Tinospora cordifolia",
indication: "Immunity, Recurrent infections, Post-COVID recovery",
dose: "400 mg extract BD\nOr 20 ml fresh juice",
caution: "Theoretical autoimmune caution; monitor liver",
col: "2A4A3A"
},
];
data.forEach((d, i) => {
const col = i < 3 ? 0 : 1;
const row = i % 3;
const x = col === 0 ? 0.25 : 6.7;
const y = 1.22 + row * 1.92;
const w = 6.1;
const h = 1.8;
s.addShape(pres.ShapeType.roundRect, { x, y, w, h, fill: { color: d.col }, line: { type: "none" }, rectRadius: 0.12 });
s.addText(d.herb, { x: x + 0.15, y: y + 0.1, w: 3.5, h: 0.38, fontSize: 15, bold: true, color: C.gold, fontFace: "Calibri", margin: 0 });
s.addText(d.latin, { x: x + 0.15, y: y + 0.45, w: 3.5, h: 0.25, fontSize: 9, color: "#AADDBB", italic: true, fontFace: "Calibri", margin: 0 });
s.addText("Indication: " + d.indication, { x: x + 0.15, y: y + 0.72, w: 5.8, h: 0.38, fontSize: 9.5, color: C.cream, fontFace: "Calibri", margin: 0 });
s.addText("Dose: " + d.dose, { x: x + 0.15, y: y + 1.1, w: 5.8, h: 0.35, fontSize: 9.5, bold: true, color: C.teal, fontFace: "Calibri", margin: 0 });
s.addText("Caution: " + d.caution, { x: x + 0.15, y: y + 1.45, w: 5.8, h: 0.28, fontSize: 8.5, color: C.orange, fontFace: "Calibri", margin: 0 });
});
footerLine(s);
}
// ═══════════════════════════════════════════════════════════════
// SLIDE 10 — CONCLUSION / TAKE-HOME
// ═══════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
slideBg(s, C.darkGreen);
// decorative circles
s.addShape(pres.ShapeType.ellipse, { x: 10.5, y: -1.0, w: 4.5, h: 4.5, fill: { color: C.midGreen }, line: { type: "none" } });
s.addShape(pres.ShapeType.ellipse, { x: -1.5, y: 4.5, w: 4, h: 4, fill: { color: "1F4D35" }, line: { type: "none" } });
s.addShape(pres.ShapeType.rect, { x: 0.5, y: 0.5, w: 0.08, h: 1.8, fill: { color: C.gold }, line: { type: "none" } });
s.addText("Take-Home", { x: 0.8, y: 0.5, w: 9, h: 0.55, fontSize: 36, bold: true, color: C.gold, fontFace: "Calibri", margin: 0 });
s.addText("Key Messages for Clinicians", { x: 0.8, y: 1.05, w: 9, h: 0.45, fontSize: 22, color: C.cream, fontFace: "Calibri", margin: 0 });
s.addText("Evidence-Based Ayurvedic Medicine", { x: 0.8, y: 1.5, w: 9, h: 0.35, fontSize: 16, color: C.teal, fontFace: "Calibri", margin: 0 });
const msgs = [
{ n: "01", title: "Level 1 Evidence Exists", body: "Curcumin (103 RCTs) and Ashwagandha (3 Meta-Analyses) have evidence comparable to many pharmaceutical agents." },
{ n: "02", title: "Adjunct, Not Replacement", body: "Use as evidence-based adjunct therapy. Never discontinue prescribed medications without clinical evaluation." },
{ n: "03", title: "Dose & Duration Matter", body: "Standardised extracts at correct doses for 8-12 weeks are required for clinical effect — not culinary amounts." },
{ n: "04", title: "Check Interactions", body: "Curcumin + anticoagulants, Ashwagandha + thyroid drugs, Arjuna + cardiac drugs — always screen interactions." },
{ n: "05", title: "Latest Evidence — 2025/2026", body: "Shatavari PCOS (2026), Brahmi brain MRI (2026), Arjuna heart failure meta-analysis (2026 June) — field is rapidly evolving." },
];
msgs.forEach((m, i) => {
const x = i < 3 ? 0.4 + (i * 4.0) : 0.4 + ((i - 3) * 6.0);
const y = i < 3 ? 2.1 : 5.0;
const w = i < 3 ? 3.7 : 5.7;
s.addShape(pres.ShapeType.roundRect, { x, y, w, h: 2.5, fill: { color: "1F4D35" }, line: { color: C.leafGreen, width: 0.4 }, rectRadius: 0.12 });
s.addText(m.n, { x: x + 0.15, y: y + 0.12, w: 0.55, h: 0.55, fontSize: 22, bold: true, color: C.gold, fontFace: "Calibri", margin: 0 });
s.addText(m.title, { x: x + 0.15, y: y + 0.7, w: w - 0.3, h: 0.45, fontSize: 12.5, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
s.addText(m.body, { x: x + 0.15, y: y + 1.18, w: w - 0.3, h: 1.2, fontSize: 9.5, color: C.cream, fontFace: "Calibri", margin: 2 });
});
footerLine(s);
}
// ─── Write file ───────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/ayurveda-ppt/Evidence_Based_Ayurveda_Doctors.pptx" })
.then(() => console.log("SUCCESS: Presentation saved."))
.catch(e => console.error("ERROR:", e));