Synapse class predestination i want 15 slides matter

Asking for Preferences
Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Reading File
Reading File
Finding Sources
Reading File
Finding Sources
Finding Sources
Reading File
Finding Sources
Running Command

ls -la /home/daytona/workspace/ && mkdir -p /home/daytona/workspace/synapse-pptx

Writing File

~/synapse-pptx/build.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Synapse: Classification & Predestination";
pres.author = "Medical Education";

// ─── THEME ────────────────────────────────────────────────────────────────────
const BG       = "0D1B2A";   // deep navy – dominates
const ACCENT   = "00C9A7";   // teal-green – sharp accent
const ACCENT2  = "1A78C2";   // mid-blue – supporting
const LIGHT    = "E8F4FD";   // near-white text
const MID      = "A8C8E8";   // subdued text / labels
const GOLD     = "F4C430";   // highlight / key term

// helper – dark bg slide
function addSlide(bg) {
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: bg || BG }, line: { type: "none" } });
  return s;
}

// header bar helper
function header(s, title, sub) {
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.85, fill: { color: ACCENT2 }, line: { type: "none" } });
  s.addText(title, { x: 0.3, y: 0, w: 9.4, h: 0.85, fontSize: 22, bold: true, color: "FFFFFF", valign: "middle", fontFace: "Calibri", margin: 0 });
  if (sub) s.addText(sub, { x: 0.3, y: 0.82, w: 9.4, h: 0.32, fontSize: 11, color: ACCENT, italic: true, fontFace: "Calibri", margin: 0 });
}

// bullet helper
function bullets(s, items, x, y, w, h, opts) {
  const arr = items.map((item, i) => ({
    text: item,
    options: { bullet: { code: "25B6", indent: 10, color: ACCENT }, color: LIGHT, fontSize: opts && opts.fontSize ? opts.fontSize : 14, fontFace: "Calibri", breakLine: i < items.length - 1 }
  }));
  s.addText(arr, { x, y, w, h, valign: "top", margin: [4, 4, 4, 4] });
}

// accent box helper
function accentBox(s, text, x, y, w, h, bg, fc, fs) {
  s.addShape(pres.ShapeType.rect, { x, y, w, h, fill: { color: bg || ACCENT2 }, line: { color: ACCENT, pt: 1.5 }, rectRadius: 0.1 });
  s.addText(text, { x, y, w, h, fontSize: fs || 12, color: fc || "FFFFFF", bold: true, align: "center", valign: "middle", fontFace: "Calibri", margin: 0 });
}

// ─── SLIDE 1 – TITLE ──────────────────────────────────────────────────────────
{
  const s = addSlide();
  // gradient strip
  s.addShape(pres.ShapeType.rect, { x: 0, y: 4.2, w: 10, h: 1.425, fill: { color: ACCENT2 }, line: { type: "none" } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.15, h: 5.625, fill: { color: ACCENT }, line: { type: "none" } });

  s.addText("SYNAPSE", { x: 0.4, y: 0.5, w: 9.2, h: 1.1, fontSize: 56, bold: true, color: ACCENT, align: "left", fontFace: "Calibri", charSpacing: 8, margin: 0 });
  s.addText("Classification & Predestination", { x: 0.4, y: 1.55, w: 9.2, h: 0.7, fontSize: 26, color: LIGHT, align: "left", fontFace: "Calibri", margin: 0 });
  s.addText("For Medical & Nursing Students", { x: 0.4, y: 2.3, w: 9.2, h: 0.45, fontSize: 16, color: MID, align: "left", italic: true, fontFace: "Calibri", margin: 0 });

  s.addText([
    { text: "▸ Definitions & anatomy of the synapse", options: { color: LIGHT, fontSize: 13, breakLine: true } },
    { text: "▸ Electrical vs. chemical synapses", options: { color: LIGHT, fontSize: 13, breakLine: true } },
    { text: "▸ Structural classification (axodendritic, axosomatic…)", options: { color: LIGHT, fontSize: 13, breakLine: true } },
    { text: "▸ Functional classification (excitatory / inhibitory)", options: { color: LIGHT, fontSize: 13, breakLine: true } },
    { text: "▸ Synaptic predestination & directional specificity", options: { color: LIGHT, fontSize: 13 } }
  ], { x: 0.4, y: 2.85, w: 5.5, h: 1.35, valign: "top", margin: 0 });

  s.addText("Neuroscience: Exploring the Brain, 5e  |  Guyton & Hall Medical Physiology", { x: 0.4, y: 4.3, w: 9, h: 0.35, fontSize: 10, color: LIGHT, italic: true, margin: 0 });
}

// ─── SLIDE 2 – WHAT IS A SYNAPSE? ─────────────────────────────────────────────
{
  const s = addSlide();
  header(s, "What Is a Synapse?", "Definition & Historical Context");

  s.addText([
    { text: "A synapse ", options: { bold: true, color: GOLD, fontSize: 15 } },
    { text: "is the specialized junction where one part of a neuron contacts and communicates with another neuron or non-neural cell (muscle, gland).", options: { color: LIGHT, fontSize: 15 } }
  ], { x: 0.35, y: 1.0, w: 9.3, h: 0.7, valign: "middle", fontFace: "Calibri", margin: 0 });

  const keyFacts = [
    "Term coined by Sir Charles Sherrington (1897) from Greek syn (together) + haptein (to clasp)",
    "Transfer of information at the synapse is called synaptic transmission",
    "Two fundamental types: Electrical and Chemical",
    "Direction of information flow defines sides: Presynaptic → Postsynaptic",
    "Synaptic transmission dysfunction underlies many neurological and psychiatric disorders"
  ];
  bullets(s, keyFacts, 0.35, 1.8, 6.0, 3.5, { fontSize: 13.5 });

  // side info box
  s.addShape(pres.ShapeType.rect, { x: 6.6, y: 1.1, w: 3.1, h: 3.9, fill: { color: "13263B" }, line: { color: ACCENT, pt: 1.5 } });
  s.addText("Key Terms", { x: 6.65, y: 1.15, w: 3.0, h: 0.4, fontSize: 12, bold: true, color: ACCENT, align: "center", fontFace: "Calibri", margin: 0 });
  const kts = [
    ["Presynaptic", "Initiates signal"],
    ["Postsynaptic", "Receives signal"],
    ["Synaptic cleft", "20–50 nm gap"],
    ["Active zone", "NT release site"],
    ["PSD", "Postsynaptic density"],
  ];
  kts.forEach(([term, def], i) => {
    s.addText([
      { text: term + ": ", options: { bold: true, color: GOLD } },
      { text: def, options: { color: LIGHT } }
    ], { x: 6.7, y: 1.6 + i * 0.62, w: 2.95, h: 0.5, fontSize: 11, fontFace: "Calibri", margin: 0 });
  });
}

// ─── SLIDE 3 – ANATOMY OF THE SYNAPSE ─────────────────────────────────────────
{
  const s = addSlide();
  header(s, "Anatomical Structure of the Chemical Synapse", "Structural components");

  const parts = [
    ["Presynaptic Terminal", "Axon bouton containing synaptic vesicles, mitochondria, and active zones"],
    ["Synaptic Vesicles", "Small (~50 nm) membrane-enclosed spheres storing neurotransmitter"],
    ["Dense-Core Vesicles", "Larger (~100 nm); store peptide neurotransmitters / secretory granules"],
    ["Synaptic Cleft", "20–50 nm gap filled with fibrous extracellular protein matrix (acts as glue)"],
    ["Active Zone", "Presynaptic membrane proteins from which vesicles undergo exocytosis"],
    ["Postsynaptic Density (PSD)", "Thick protein accumulation beneath postsynaptic membrane containing neurotransmitter receptors"],
    ["Postsynaptic Membrane", "Contains ionotropic or metabotropic receptors that transduce chemical signal"]
  ];

  parts.forEach(([term, desc], i) => {
    const col = i % 2 === 0 ? "13263B" : "0A1E30";
    s.addShape(pres.ShapeType.rect, { x: 0.2, y: 0.95 + i * 0.65, w: 9.6, h: 0.6, fill: { color: col }, line: { type: "none" } });
    s.addText([
      { text: term + "  ", options: { bold: true, color: GOLD, fontSize: 12 } },
      { text: desc, options: { color: MID, fontSize: 11.5 } }
    ], { x: 0.35, y: 0.95 + i * 0.65, w: 9.3, h: 0.6, valign: "middle", fontFace: "Calibri", margin: 0 });
  });

  s.addText("Source: Neuroscience – Exploring the Brain, 5e", { x: 0.35, y: 5.35, w: 9, h: 0.25, fontSize: 9, color: MID, italic: true, margin: 0 });
}

// ─── SLIDE 4 – ELECTRICAL SYNAPSES ────────────────────────────────────────────
{
  const s = addSlide();
  header(s, "Electrical Synapses", "Gap junctions – direct ionic coupling");

  bullets(s, [
    "Formed at gap junctions – membranes separated by only ~3 nm (vs 20–50 nm in chemical synapses)",
    "Bridged by connexin proteins → 6 connexins form a connexon; two connexons form a gap junction channel",
    "~20 subtypes of connexins; ~half found in the brain",
    "Channel pore ~1–2 nm: large enough for major ions and small organic molecules",
    "Bidirectional transmission – signals pass in both directions (unlike chemical synapses)",
    "Fast & synchronous – no delay of neurotransmitter diffusion",
    "Found between: dendrites, cell bodies, occasionally axons; also in cardiac/smooth muscle, glia, epithelium"
  ], 0.35, 0.95, 5.8, 4.3, { fontSize: 13 });

  // function boxes
  const fns = ["Synchronise large neuron groups", "Detect coincident subthreshold depolarisations", "Coordinate hypothalamic hormone secretion", "Enable rapid escape responses"];
  fns.forEach((f, i) => {
    accentBox(s, f, 6.25, 1.05 + i * 0.97, 3.5, 0.82, "0D2840", ACCENT, 11);
  });
  s.addText("Functions", { x: 6.25, y: 0.9, w: 3.5, h: 0.4, fontSize: 12, bold: true, color: GOLD, align: "center", fontFace: "Calibri", margin: 0 });
  s.addText("Source: Guyton & Hall, 14e  |  Neuroscience – Exploring the Brain, 5e", { x: 0.35, y: 5.35, w: 9, h: 0.25, fontSize: 9, color: MID, italic: true, margin: 0 });
}

// ─── SLIDE 5 – CHEMICAL SYNAPSES ──────────────────────────────────────────────
{
  const s = addSlide();
  header(s, "Chemical Synapses", "Neurotransmitter-mediated signal transduction");

  const steps = [
    ["1", "Action potential reaches presynaptic terminal"],
    ["2", "Membrane depolarisation opens voltage-gated Ca²⁺ channels"],
    ["3", "Ca²⁺ influx → vesicle fusion at active zones (exocytosis)"],
    ["4", "Neurotransmitter diffuses across synaptic cleft (20–50 nm)"],
    ["5", "NT binds postsynaptic receptors → ion channel opening or 2nd messenger cascade"],
    ["6", "NT cleared: reuptake, enzymatic degradation, or diffusion"]
  ];

  steps.forEach(([n, text], i) => {
    s.addShape(pres.ShapeType.rect, { x: 0.2, y: 1.0 + i * 0.73, w: 0.55, h: 0.6, fill: { color: ACCENT }, line: { type: "none" } });
    s.addText(n, { x: 0.2, y: 1.0 + i * 0.73, w: 0.55, h: 0.6, fontSize: 16, bold: true, color: BG, align: "center", valign: "middle", fontFace: "Calibri", margin: 0 });
    s.addText(text, { x: 0.85, y: 1.0 + i * 0.73, w: 8.8, h: 0.6, fontSize: 13.5, color: LIGHT, valign: "middle", fontFace: "Calibri", margin: 0 });
  });

  // key characteristics bar
  s.addShape(pres.ShapeType.rect, { x: 0, y: 5.15, w: 10, h: 0.475, fill: { color: ACCENT2 }, line: { type: "none" } });
  s.addText("One-way conduction  |  Amplification of signal  |  Modifiable (plasticity)  |  Delay ~0.5–2 ms  |  Most synapses in the CNS are chemical",
    { x: 0.3, y: 5.15, w: 9.4, h: 0.475, fontSize: 11, color: "FFFFFF", align: "center", valign: "middle", fontFace: "Calibri", margin: 0 });
}

// ─── SLIDE 6 – ELECTRICAL vs CHEMICAL ─────────────────────────────────────────
{
  const s = addSlide();
  header(s, "Electrical vs. Chemical Synapses: Comparison", "Two fundamental synapse types");

  const rows = [
    ["Feature", "Electrical Synapse", "Chemical Synapse"],
    ["Structural gap", "~3 nm (gap junction)", "20–50 nm (synaptic cleft)"],
    ["Direction of transmission", "Bidirectional (usually)", "Unidirectional only"],
    ["Speed", "Extremely fast (no delay)", "Delay ~0.5–2 ms"],
    ["Signal amplification", "None (1:1 ionic current)", "Yes (cascade amplification)"],
    ["Modifiability", "Limited", "Highly modifiable (plasticity)"],
    ["Mediator", "Ions through connexons", "Neurotransmitter + receptors"],
    ["Example location", "Cardiac muscle, CNS interneurons", "Most CNS & PNS synapses"],
    ["Synchronisation", "Excellent", "Poor"],
  ];

  rows.forEach(([a, b, c], i) => {
    const isHeader = i === 0;
    const bg = isHeader ? ACCENT2 : (i % 2 === 0 ? "13263B" : "0A1E30");
    const fc = isHeader ? "FFFFFF" : LIGHT;
    const fs = isHeader ? 12 : 11.5;
    s.addShape(pres.ShapeType.rect, { x: 0.15, y: 0.92 + i * 0.51, w: 2.95, h: 0.48, fill: { color: bg }, line: { color: isHeader ? ACCENT : "1A3050", pt: 0.5 } });
    s.addShape(pres.ShapeType.rect, { x: 3.2,  y: 0.92 + i * 0.51, w: 3.0,  h: 0.48, fill: { color: isHeader ? ACCENT2 : bg }, line: { color: isHeader ? ACCENT : "1A3050", pt: 0.5 } });
    s.addShape(pres.ShapeType.rect, { x: 6.3,  y: 0.92 + i * 0.51, w: 3.5,  h: 0.48, fill: { color: isHeader ? ACCENT2 : bg }, line: { color: isHeader ? ACCENT : "1A3050", pt: 0.5 } });
    [[a, 0.15, 2.95], [b, 3.2, 3.0], [c, 6.3, 3.5]].forEach(([txt, x, w]) => {
      s.addText(txt, { x, y: 0.92 + i * 0.51, w, h: 0.48, fontSize: fs, bold: isHeader, color: isHeader ? "FFFFFF" : (a === "Feature" ? GOLD : fc), align: "center", valign: "middle", fontFace: "Calibri", margin: 0 });
    });
  });
}

// ─── SLIDE 7 – STRUCTURAL CLASSIFICATION ──────────────────────────────────────
{
  const s = addSlide();
  header(s, "Structural Classification of Synapses", "Named by pre→post contact site");

  const types = [
    { name: "Axodendritic", icon: "A→D", desc: "Axon terminal contacts a dendrite. Most common synapse in the CNS. Modulates integration of inputs on dendritic tree.", color: ACCENT },
    { name: "Axosomatic", icon: "A→S", desc: "Axon terminal contacts the cell body (soma). Often inhibitory; powerfully controls neuronal firing threshold.", color: ACCENT2 },
    { name: "Axoaxonic", icon: "A→A", desc: "Axon terminal contacts another axon. Mediates presynaptic inhibition/facilitation by modulating NT release from the postsynaptic axon.", color: GOLD },
    { name: "Axospinous", icon: "A→Sp", desc: "Axon contacts a dendritic spine specifically. Site of many excitatory synapses; key substrate for synaptic plasticity (LTP).", color: "FF6B6B" },
    { name: "Dendrodendritic", icon: "D↔D", desc: "Dendrite-to-dendrite synapse. Found in olfactory bulb and retina; can be bidirectional, mediating local circuit processing.", color: "C77DFF" },
  ];

  types.forEach((t, i) => {
    const bx = (i % 2) * 4.9 + 0.2;
    const by = Math.floor(i / 2) * 1.65 + 1.0;
    const isLast = i === 4;
    const bxF = isLast ? 2.65 : bx;

    s.addShape(pres.ShapeType.rect, { x: bxF, y: by, w: 4.7, h: 1.5, fill: { color: "0A1E30" }, line: { color: t.color, pt: 2 }, rectRadius: 0.12 });
    s.addShape(pres.ShapeType.rect, { x: bxF, y: by, w: 1.1, h: 1.5, fill: { color: t.color }, line: { type: "none" } });
    s.addText(t.icon, { x: bxF, y: by, w: 1.1, h: 1.5, fontSize: 14, bold: true, color: BG, align: "center", valign: "middle", fontFace: "Calibri", margin: 0 });
    s.addText(t.name, { x: bxF + 1.15, y: by + 0.05, w: 3.45, h: 0.42, fontSize: 13, bold: true, color: t.color, fontFace: "Calibri", margin: 0 });
    s.addText(t.desc, { x: bxF + 1.15, y: by + 0.42, w: 3.45, h: 1.0, fontSize: 10.5, color: LIGHT, fontFace: "Calibri", valign: "top", margin: 0 });
  });
}

// ─── SLIDE 8 – FUNCTIONAL CLASSIFICATION ──────────────────────────────────────
{
  const s = addSlide();
  header(s, "Functional Classification: Excitatory vs. Inhibitory", "Effect on postsynaptic membrane potential");

  // Excitatory panel
  s.addShape(pres.ShapeType.rect, { x: 0.2, y: 1.0, w: 4.6, h: 4.35, fill: { color: "0A2010" }, line: { color: "00C853", pt: 2 } });
  s.addText("EXCITATORY SYNAPSE", { x: 0.35, y: 1.05, w: 4.3, h: 0.5, fontSize: 13, bold: true, color: "00C853", align: "center", fontFace: "Calibri", margin: 0 });
  s.addShape(pres.ShapeType.line, { x: 0.35, y: 1.55, w: 4.3, h: 0, line: { color: "00C853", pt: 1 } });
  const exPoints = [
    "Generates EPSP (Excitatory Postsynaptic Potential)",
    "Increases Na⁺ / Ca²⁺ conductance → membrane depolarisation",
    "Moves Vm toward threshold (~−55 mV)",
    "Key NTs: Glutamate (AMPA/NMDA), Acetylcholine (nicotinic)",
    "Typically axodendritic or axospinous location",
    "Gray type I synapses – wide cleft, thick PSD",
    "Summation of EPSPs triggers action potential"
  ];
  bullets(s, exPoints, 0.3, 1.6, 4.4, 3.6, { fontSize: 11.5 });

  // Inhibitory panel
  s.addShape(pres.ShapeType.rect, { x: 5.2, y: 1.0, w: 4.6, h: 4.35, fill: { color: "200A0A" }, line: { color: "FF4444", pt: 2 } });
  s.addText("INHIBITORY SYNAPSE", { x: 5.35, y: 1.05, w: 4.3, h: 0.5, fontSize: 13, bold: true, color: "FF4444", align: "center", fontFace: "Calibri", margin: 0 });
  s.addShape(pres.ShapeType.line, { x: 5.35, y: 1.55, w: 4.3, h: 0, line: { color: "FF4444", pt: 1 } });
  const inhPoints = [
    "Generates IPSP (Inhibitory Postsynaptic Potential)",
    "Increases Cl⁻ or K⁺ conductance → hyperpolarisation",
    "Moves Vm away from threshold (more negative)",
    "Key NTs: GABA (GABA-A/B receptors), Glycine",
    "Often axosomatic location – strong control of firing",
    "Gray type II synapses – narrow cleft, thin PSD",
    "Shunting inhibition: reduces EPSP amplitude"
  ];
  bullets(s, inhPoints, 5.3, 1.6, 4.4, 3.6, { fontSize: 11.5 });
}

// ─── SLIDE 9 – NEUROTRANSMITTERS ──────────────────────────────────────────────
{
  const s = addSlide();
  header(s, "Neurotransmitters: Classification & Examples", "Chemical mediators of synaptic transmission");

  const cats = [
    {
      cat: "Amino Acids", color: ACCENT,
      items: ["Glutamate – major excitatory NT of CNS (AMPA, NMDA, Kainate receptors)", "GABA – major inhibitory NT of CNS (GABA-A, GABA-B)", "Glycine – inhibitory NT in spinal cord & brainstem", "Aspartate – excitatory co-transmitter"]
    },
    {
      cat: "Biogenic Amines", color: GOLD,
      items: ["Acetylcholine (ACh) – NMJ, ANS, basal forebrain", "Dopamine – reward, motor control (nigrostriatal)", "Serotonin (5-HT) – mood, sleep, cognition", "Norepinephrine – arousal, autonomic", "Histamine – hypothalamic modulation"]
    },
    {
      cat: "Peptides", color: "C77DFF",
      items: ["Substance P – pain transmission", "Endorphins/Enkephalins – pain modulation", "Neuropeptide Y – energy balance", "Stored in dense-core vesicles; released under high-frequency stimulation"]
    }
  ];

  cats.forEach((c, i) => {
    const bx = i * 3.25 + 0.2;
    s.addShape(pres.ShapeType.rect, { x: bx, y: 1.0, w: 3.1, h: 4.35, fill: { color: "0A1E30" }, line: { color: c.color, pt: 2 } });
    s.addShape(pres.ShapeType.rect, { x: bx, y: 1.0, w: 3.1, h: 0.55, fill: { color: c.color }, line: { type: "none" } });
    s.addText(c.cat, { x: bx, y: 1.0, w: 3.1, h: 0.55, fontSize: 13, bold: true, color: BG, align: "center", valign: "middle", fontFace: "Calibri", margin: 0 });
    bullets(s, c.items, bx + 0.08, 1.6, 2.94, 3.6, { fontSize: 11 });
  });
}

// ─── SLIDE 10 – SYNAPTIC PREDESTINATION ───────────────────────────────────────
{
  const s = addSlide();
  header(s, "Synaptic Predestination", "Directional specificity of chemical synapses");

  s.addShape(pres.ShapeType.rect, { x: 0.2, y: 1.0, w: 9.6, h: 1.05, fill: { color: "102030" }, line: { color: GOLD, pt: 2 } });
  s.addText([
    { text: "Definition: ", options: { bold: true, color: GOLD, fontSize: 14 } },
    { text: "Synaptic predestination refers to the inherent, structurally fixed directionality of chemical synaptic transmission — signals can only flow from the presynaptic neuron to the postsynaptic neuron, never in reverse.", options: { color: LIGHT, fontSize: 13.5 } }
  ], { x: 0.35, y: 1.0, w: 9.3, h: 1.05, valign: "middle", fontFace: "Calibri", margin: 0 });

  const reasons = [
    ["Asymmetric structure", "Synaptic vesicles and active zones are exclusively on the presynaptic side; receptors only on the postsynaptic side"],
    ["Neurotransmitter storage", "NT is packaged in vesicles at the presynaptic terminal — postsynaptic membrane has no vesicles to release NT retrogradely"],
    ["Receptor distribution", "Neurotransmitter receptors are clustered in the postsynaptic density (PSD); absent or sparse presynaptically"],
    ["Active zone machinery", "Ca²⁺-triggered exocytosis machinery (SNARE proteins, RIM, Munc13) is restricted to the presynaptic terminal"],
    ["Diffusion geometry", "NT is released focally into the cleft and diffuses toward the postsynaptic density — not away from it"],
  ];

  reasons.forEach(([title, desc], i) => {
    s.addShape(pres.ShapeType.rect, { x: 0.2, y: 2.15 + i * 0.67, w: 2.3, h: 0.6, fill: { color: ACCENT2 }, line: { type: "none" } });
    s.addText(title, { x: 0.2, y: 2.15 + i * 0.67, w: 2.3, h: 0.6, fontSize: 11, bold: true, color: "FFFFFF", align: "center", valign: "middle", fontFace: "Calibri", margin: 0 });
    s.addShape(pres.ShapeType.rect, { x: 2.6, y: 2.15 + i * 0.67, w: 7.2, h: 0.6, fill: { color: i % 2 === 0 ? "0D2035" : "0A1A2B" }, line: { type: "none" } });
    s.addText(desc, { x: 2.7, y: 2.15 + i * 0.67, w: 7.0, h: 0.6, fontSize: 12, color: LIGHT, valign: "middle", fontFace: "Calibri", margin: 0 });
  });
}

// ─── SLIDE 11 – WHY PREDESTINATION MATTERS ────────────────────────────────────
{
  const s = addSlide();
  header(s, "Why Synaptic Predestination Matters", "Functional significance & clinical relevance");

  const points = [
    {
      title: "Directed Signal Routing",
      desc: "One-way conduction enables signals to be directed to specific targets — allows the nervous system to perform sensation, motor control, memory, and countless other functions without 'noise' from reverse transmission.",
      col: ACCENT
    },
    {
      title: "Neural Circuit Architecture",
      desc: "Predestination allows construction of feed-forward and feed-back circuits, reflex arcs, and complex networks with defined information flow.",
      col: ACCENT2
    },
    {
      title: "Pharmacological Targeting",
      desc: "Because NT release, receptor binding, and clearance are pre-destined to specific sides, drugs can selectively target presynaptic (e.g. reserpine, MAOIs) or postsynaptic (e.g. receptor antagonists, antipsychotics) mechanisms.",
      col: GOLD
    },
    {
      title: "Synaptic Amplification",
      desc: "A small bolus of NT from a chemical synapse can trigger an amplifying cascade of molecular events on the postsynaptic side — this amplification would be lost if signalling were bidirectional.",
      col: "C77DFF"
    }
  ];

  points.forEach((p, i) => {
    const bx = (i % 2) * 4.9 + 0.15;
    const by = Math.floor(i / 2) * 2.1 + 1.0;
    s.addShape(pres.ShapeType.rect, { x: bx, y: by, w: 4.7, h: 1.95, fill: { color: "0A1E30" }, line: { color: p.col, pt: 2 } });
    s.addShape(pres.ShapeType.rect, { x: bx, y: by, w: 4.7, h: 0.5, fill: { color: p.col }, line: { type: "none" } });
    s.addText(p.title, { x: bx + 0.1, y: by, w: 4.5, h: 0.5, fontSize: 12.5, bold: true, color: BG, align: "center", valign: "middle", fontFace: "Calibri", margin: 0 });
    s.addText(p.desc, { x: bx + 0.1, y: by + 0.55, w: 4.5, h: 1.35, fontSize: 11, color: LIGHT, valign: "top", fontFace: "Calibri", margin: 0 });
  });
}

// ─── SLIDE 12 – PRESYNAPTIC INHIBITION ────────────────────────────────────────
{
  const s = addSlide();
  header(s, "Presynaptic Inhibition & Facilitation", "Axoaxonic synapses modulate predestined pathways");

  s.addText([
    { text: "Presynaptic inhibition ", options: { bold: true, color: GOLD, fontSize: 14 } },
    { text: "is a mechanism by which an axoaxonic synapse reduces neurotransmitter release from the target axon — modulating information flow WITHOUT changing the postsynaptic neuron's threshold.", options: { color: LIGHT, fontSize: 13 } }
  ], { x: 0.3, y: 1.0, w: 9.4, h: 0.9, valign: "middle", fontFace: "Calibri", margin: 0 });

  const mechRows = [
    ["Mechanism", "Detail"],
    ["GABA-B receptor activation", "G-protein coupled → ↓ Ca²⁺ channel opening → less Ca²⁺ influx → fewer vesicles release NT"],
    ["K⁺ channel opening", "Axon terminal hyperpolarisation shortens action potential duration → less NT release"],
    ["Direct inhibition of exocytosis", "GABA-B can also directly inhibit the vesicle fusion machinery"],
    ["Net effect", "Reduces EPSP amplitude at the postsynaptic neuron without directly acting on it"],
    ["Presynaptic facilitation", "Opposite: e.g. serotonin-mediated ↑ Ca²⁺ → enhanced NT release at target synapse"],
  ];

  mechRows.forEach(([a, b], i) => {
    const isH = i === 0;
    const bg = isH ? ACCENT2 : (i % 2 === 0 ? "0D2035" : "0A1A2B");
    s.addShape(pres.ShapeType.rect, { x: 0.2, y: 2.0 + i * 0.54, w: 3.2, h: 0.5, fill: { color: bg }, line: { color: "1A3050", pt: 0.5 } });
    s.addShape(pres.ShapeType.rect, { x: 3.5, y: 2.0 + i * 0.54, w: 6.3, h: 0.5, fill: { color: bg }, line: { color: "1A3050", pt: 0.5 } });
    s.addText(a, { x: 0.25, y: 2.0 + i * 0.54, w: 3.1, h: 0.5, fontSize: isH ? 12 : 11, bold: isH, color: isH ? "FFFFFF" : GOLD, valign: "middle", fontFace: "Calibri", margin: 0 });
    s.addText(b, { x: 3.55, y: 2.0 + i * 0.54, w: 6.15, h: 0.5, fontSize: isH ? 12 : 11, bold: isH, color: isH ? "FFFFFF" : LIGHT, valign: "middle", fontFace: "Calibri", margin: 0 });
  });

  s.addShape(pres.ShapeType.rect, { x: 0.2, y: 5.1, w: 9.6, h: 0.35, fill: { color: "102030" }, line: { type: "none" } });
  s.addText("Clinical note: Baclofen (GABA-B agonist) exploits presynaptic inhibition at spinal cord synapses to treat spasticity.",
    { x: 0.3, y: 5.1, w: 9.3, h: 0.35, fontSize: 10.5, color: ACCENT, italic: true, fontFace: "Calibri", margin: 0 });
}

// ─── SLIDE 13 – SYNAPTIC VESICLE TYPES ────────────────────────────────────────
{
  const s = addSlide();
  header(s, "Synaptic Vesicle Types & NT Storage", "Predetermines what is released");

  const vTypes = [
    {
      name: "Small Clear Vesicles", size: "~50 nm", color: ACCENT,
      content: "Amino acids & amines (Glutamate, GABA, ACh, Glycine)",
      release: "Released in response to single or low-frequency action potentials",
      location: "Clustered at active zones"
    },
    {
      name: "Large Dense-Core Vesicles (LDCV)", size: "~100 nm", color: GOLD,
      content: "Peptide neurotransmitters (Substance P, Enkephalins, NPY, CRH)",
      release: "Require high-frequency burst stimulation for adequate Ca²⁺ levels",
      location: "Distributed throughout terminal, not restricted to active zones"
    },
    {
      name: "Co-release", size: "Mixed", color: "C77DFF",
      content: "Same terminal often contains both types – amine + peptide co-transmission",
      release: "Differential release based on firing pattern: low freq → amine; high freq → peptide",
      location: "Frequency-dependent modulation of postsynaptic response"
    }
  ];

  vTypes.forEach((v, i) => {
    const bx = i * 3.25 + 0.15;
    s.addShape(pres.ShapeType.rect, { x: bx, y: 1.0, w: 3.1, h: 4.35, fill: { color: "0A1E30" }, line: { color: v.color, pt: 2 } });
    s.addShape(pres.ShapeType.ellipse, { x: bx + 1.1, y: 1.1, w: 0.9, h: 0.9, fill: { color: v.color }, line: { type: "none" } });
    s.addText(v.size, { x: bx + 1.1, y: 1.1, w: 0.9, h: 0.9, fontSize: 9, bold: true, color: BG, align: "center", valign: "middle", fontFace: "Calibri", margin: 0 });
    s.addText(v.name, { x: bx + 0.1, y: 2.1, w: 2.9, h: 0.55, fontSize: 12, bold: true, color: v.color, align: "center", fontFace: "Calibri", margin: 0 });
    [["Content:", v.content], ["Release:", v.release], ["Location:", v.location]].forEach(([lbl, val], j) => {
      s.addText([
        { text: lbl + " ", options: { bold: true, color: GOLD } },
        { text: val, options: { color: LIGHT } }
      ], { x: bx + 0.1, y: 2.7 + j * 0.78, w: 2.9, h: 0.72, fontSize: 10.5, fontFace: "Calibri", valign: "top", margin: 0 });
    });
  });
}

// ─── SLIDE 14 – SYNAPTIC PLASTICITY ───────────────────────────────────────────
{
  const s = addSlide();
  header(s, "Synaptic Plasticity", "Activity-dependent modification of predestined connections");

  s.addText("Synaptic predestination establishes the direction of communication; plasticity modifies its strength.",
    { x: 0.3, y: 0.92, w: 9.4, h: 0.4, fontSize: 13, color: ACCENT, italic: true, fontFace: "Calibri", margin: 0 });

  const plastitypes = [
    { type: "Short-term Facilitation", time: "ms–s", mech: "Residual Ca²⁺ in terminal → enhanced vesicle fusion on repeated stimulation", sig: "Boosts high-frequency signal transmission", col: ACCENT },
    { type: "Short-term Depression", time: "ms–s", mech: "Vesicle pool depletion at high-P synapses → reduced NT release per AP", sig: "Low-pass filter effect on repetitive inputs", col: ACCENT2 },
    { type: "Long-term Potentiation (LTP)", time: "hours–years", mech: "NMDA receptor activation → Ca²⁺ influx → AMPA receptor insertion, CaMKII phosphorylation", sig: "Molecular basis of learning and memory", col: GOLD },
    { type: "Long-term Depression (LTD)", time: "hours–years", mech: "Low-level Ca²⁺ rise → AMPA receptor internalisation (endocytosis)", sig: "Synaptic pruning, motor learning, forgetting", col: "C77DFF" },
    { type: "Homeostatic (Synaptic Scaling)", time: "days", mech: "Global up/down regulation of all synapses to maintain network stability", sig: "Prevents runaway excitation or silencing", col: "FF6B6B" },
  ];

  plastitypes.forEach((p, i) => {
    s.addShape(pres.ShapeType.rect, { x: 0.15, y: 1.38 + i * 0.81, w: 2.8, h: 0.72, fill: { color: p.col }, line: { type: "none" } });
    s.addText([{ text: p.type, options: { bold: true, color: BG, fontSize: 11 } }, { text: "\n" + p.time, options: { color: BG, fontSize: 9, italic: true } }],
      { x: 0.15, y: 1.38 + i * 0.81, w: 2.8, h: 0.72, align: "center", valign: "middle", fontFace: "Calibri", margin: 0 });
    s.addShape(pres.ShapeType.rect, { x: 3.05, y: 1.38 + i * 0.81, w: 3.6, h: 0.72, fill: { color: "0A1E30" }, line: { color: p.col, pt: 1 } });
    s.addText(p.mech, { x: 3.1, y: 1.38 + i * 0.81, w: 3.5, h: 0.72, fontSize: 10, color: LIGHT, valign: "middle", fontFace: "Calibri", margin: 0 });
    s.addShape(pres.ShapeType.rect, { x: 6.75, y: 1.38 + i * 0.81, w: 3.1, h: 0.72, fill: { color: "0A1E30" }, line: { color: p.col, pt: 1 } });
    s.addText(p.sig, { x: 6.8, y: 1.38 + i * 0.81, w: 3.0, h: 0.72, fontSize: 10, color: GOLD, italic: true, valign: "middle", fontFace: "Calibri", margin: 0 });
  });

  // column headers
  ["Type  |  Timescale", "Mechanism", "Significance"].forEach((h, i) => {
    const xArr = [0.15, 3.05, 6.75]; const wArr = [2.8, 3.6, 3.1];
    s.addText(h, { x: xArr[i], y: 1.2, w: wArr[i], h: 0.32, fontSize: 11, bold: true, color: ACCENT, align: "center", fontFace: "Calibri", margin: 0 });
  });
}

// ─── SLIDE 15 – SUMMARY & CLINICAL PEARLS ─────────────────────────────────────
{
  const s = addSlide();
  header(s, "Summary & Clinical Pearls", "Key concepts for exams & clinical practice");

  // 6 summary boxes
  const summaries = [
    { txt: "Synapse = specialized junction; classified by structure & function", col: ACCENT },
    { txt: "Electrical (gap junction): fast, bidirectional, connexins; Chemical: NT-mediated, unidirectional, amplifiable", col: ACCENT2 },
    { txt: "Structural types: Axodendritic > Axosomatic > Axoaxonic > Axospinous > Dendrodendritic", col: GOLD },
    { txt: "Functional: Excitatory (EPSP, Glu/ACh) vs Inhibitory (IPSP, GABA/Glycine) — Gray type I vs II", col: "00C853" },
    { txt: "Predestination = one-way transmission because vesicles & active zones are presynaptic; receptors postsynaptic", col: "C77DFF" },
    { txt: "Plasticity (LTP/LTD) modifies synaptic strength — molecular basis of memory, learning, and drug action", col: "FF6B6B" },
  ];

  summaries.forEach((sm, i) => {
    const bx = (i % 2) * 4.9 + 0.15;
    const by = Math.floor(i / 2) * 1.45 + 1.0;
    s.addShape(pres.ShapeType.rect, { x: bx, y: by, w: 4.7, h: 1.3, fill: { color: "0A1E30" }, line: { color: sm.col, pt: 2 } });
    s.addShape(pres.ShapeType.rect, { x: bx, y: by, w: 0.25, h: 1.3, fill: { color: sm.col }, line: { type: "none" } });
    s.addText(sm.txt, { x: bx + 0.35, y: by + 0.1, w: 4.2, h: 1.1, fontSize: 11.5, color: LIGHT, valign: "middle", fontFace: "Calibri", margin: 0 });
  });

  // clinical pearls strip
  s.addShape(pres.ShapeType.rect, { x: 0, y: 5.2, w: 10, h: 0.425, fill: { color: ACCENT2 }, line: { type: "none" } });
  s.addText("Clinical Pearls: Myasthenia Gravis (ACh-R antibodies) | Botulinum toxin (SNARE cleavage) | Parkinson's (dopaminergic synapse loss) | Benzodiazepines (GABA-A agonists) | SSRIs (serotonin reuptake inhibition)",
    { x: 0.2, y: 5.2, w: 9.6, h: 0.425, fontSize: 9.5, color: "FFFFFF", align: "center", valign: "middle", fontFace: "Calibri", margin: 0 });
}

pres.writeFile({ fileName: "/home/daytona/workspace/synapse-pptx/Synapse_Classification_Predestination.pptx" })
  .then(() => console.log("DONE"))
  .catch(e => console.error(e));
Running Command

cd /home/daytona/workspace/synapse-pptx && node build.js 2>&1

Running Command

ls -lh /home/daytona/workspace/synapse-pptx/

Your PowerPoint is ready. Download it here:

Synapse Classification Predestination

Presentation · PPTX


What's inside — all 15 slides

#Slide Title
1Title Slide – Synapse: Classification & Predestination
2What Is a Synapse? – Definition, Sherrington's coinage, key terms
3Anatomical Structure – Presynaptic terminal, vesicles, cleft, PSD, active zones
4Electrical Synapses – Gap junctions, connexins/connexons, bidirectional, functions
5Chemical Synapses – Step-by-step transmission (AP → Ca²⁺ → exocytosis → receptor)
6Electrical vs. Chemical Comparison Table – 9-row side-by-side
7Structural Classification – Axodendritic, Axosomatic, Axoaxonic, Axospinous, Dendrodendritic
8Functional Classification – Excitatory (EPSP, Glutamate) vs Inhibitory (IPSP, GABA/Glycine)
9Neurotransmitters – Amino acids, Biogenic amines, Peptides with key examples
10Synaptic Predestination – Definition, 5 structural reasons for one-way transmission
11Why Predestination Matters – Signal routing, circuits, pharmacology, amplification
12Presynaptic Inhibition & Facilitation – Axoaxonic mechanisms, GABA-B, clinical note (Baclofen)
13Synaptic Vesicle Types – Small clear vs. large dense-core vs. co-release
14Synaptic Plasticity – Facilitation, Depression, LTP, LTD, Homeostatic scaling
15Summary & Clinical Pearls – MG, Botox, Parkinson's, BZDs, SSRIs
Design: Deep navy background with teal/blue accents — professional and readable for medical education.
This is a shared conversation. Sign in to Orris to start your own chat.