Make a poster on ahara vidhi vidhan as par charaka samhita vimana sthana 1 st chapter
Charaka Samhita Vimana Sthana Chapter 1 Ahara Vidhi Vidhan rules of diet
https://www.carakasamhitaonline.com/index.php/Ahara_vidhi
A traditional Ayurvedic educational poster titled "AHARA VIDHI VIDHAN" with subtitle "Dietary Guidelines — Charaka Samhita, Vimana Sthana Ch. 1". Deep saffron/orange and forest green color scheme on a warm cream/parchment background with decorative Indian botanical borders and lotus motifs. The poster has 10 dietary rules arranged in two columns as numbered cards: 1. Ushnam Asniyat – Eat warm food; 2. Snigdham Asniyat – Eat unctuous/oily food; 3. Matravat Asniyat – Eat in proper quantity; 4. Jirnne Asniyat – Eat only after previous food is digested; 5. Virya Aviruddham – Avoid foods of contradictory potency; 6. Ishte Deshe – Eat in a pleasant, clean place; 7. Ishta Sarvopakaranam – Use proper utensils; 8. Na Atidrutam – Do not eat too fast; 9. Na Ativilambitam – Do not eat too slowly; 10. Ajalpan Ahasan Tanmana Bhunjita – Eat mindfully, without talking or laughing. Bottom section shows Sanskrit shloka text and attribution. Professional Ayurvedic poster with mandala design elements, traditional Indian typography and icons representing digestion, fire (agni), and nature.
ls /home/daytona/workspace/ 2>/dev/null || echo "workspace empty or not found"
mkdir -p /home/daytona/workspace/ahara-vidhi-poster
~/ahara-vidhi-poster/create_poster.js
const pptxgen = require("pptxgenjs");
let pres = new pptxgen();
pres.layout = 'LAYOUT_WIDE'; // 13.3" x 7.5" — poster-friendly wide format
pres.title = 'Ahara Vidhi Vidhan - Charaka Samhita';
// ─── COLOR PALETTE ─────────────────────────────────────────────────
const SAFFRON = "D4621A"; // Deep saffron/orange
const DARK_GREEN = "2D5016"; // Forest green
const MED_GREEN = "4A7C2B";
const GOLD = "C49A28";
const CREAM = "FDF5E6"; // Parchment/cream
const IVORY = "FFFDE7";
const DARK_BROWN = "4E2D0A";
const WHITE = "FFFFFF";
const LIGHT_ORG = "FBEBD4";
// ─── SLIDE ─────────────────────────────────────────────────────────
let slide = pres.addSlide();
// --- Background fill
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 13.3, h: 7.5,
fill: { color: CREAM }
});
// --- Top decorative border (saffron band)
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 13.3, h: 0.55,
fill: { color: SAFFRON }
});
// --- Bottom decorative border (green band)
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 7.1, w: 13.3, h: 0.4,
fill: { color: DARK_GREEN }
});
// --- Thin gold accent lines
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0.55, w: 13.3, h: 0.04,
fill: { color: GOLD }
});
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 7.09, w: 13.3, h: 0.04,
fill: { color: GOLD }
});
// --- Left margin green strip
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0.59, w: 0.12, h: 6.5,
fill: { color: DARK_GREEN }
});
// --- Right margin green strip
slide.addShape(pres.ShapeType.rect, {
x: 13.18, y: 0.59, w: 0.12, h: 6.5,
fill: { color: DARK_GREEN }
});
// ─── TITLE ─────────────────────────────────────────────────────────
slide.addText("ĀHĀRA VIDHI VIDHĀNA", {
x: 0.2, y: 0.03, w: 12.9, h: 0.52,
fontSize: 26, bold: true, color: WHITE,
fontFace: "Georgia", align: "center", valign: "middle",
charSpacing: 4
});
// ─── SUBTITLE BAR ──────────────────────────────────────────────────
slide.addShape(pres.ShapeType.rect, {
x: 0.12, y: 0.59, w: 13.06, h: 0.36,
fill: { color: DARK_BROWN }
});
slide.addText("Disciplined Dietary Guidelines • Charaka Samhita, Vimana Sthana – Chapter 1 (Ch.Vi.1)", {
x: 0.12, y: 0.59, w: 13.06, h: 0.36,
fontSize: 11, color: GOLD, align: "center", valign: "middle",
fontFace: "Georgia", bold: false, italic: true
});
// ─── SANSKRIT SHLOKA BOX ──────────────────────────────────────────
slide.addShape(pres.ShapeType.rect, {
x: 0.22, y: 1.0, w: 12.86, h: 0.7,
fill: { color: LIGHT_ORG },
line: { color: SAFFRON, width: 1.5 }
});
slide.addText([
{ text: "उष्णं स्निग्धं मात्रावत् जीर्णे वीर्याविरुद्धमिष्टे देशे इष्टसर्वोपकरणं ", options: { bold: true, color: DARK_BROWN } },
{ text: "न अतिद्रुतं न अतिविलम्बितं अजल्पन् अहसन् तन्मना भुञ्जीत आत्मानमभिसमीक्ष्य सम्यक्॥", options: { bold: false, color: DARK_BROWN, italic: true } }
], {
x: 0.3, y: 1.01, w: 12.7, h: 0.68,
fontSize: 10.5, fontFace: "Arial Unicode MS", align: "center", valign: "middle"
});
// ─── RULES GRID HEADER ────────────────────────────────────────────
slide.addShape(pres.ShapeType.rect, {
x: 0.22, y: 1.75, w: 12.86, h: 0.3,
fill: { color: DARK_GREEN }
});
slide.addText("✦ DASHA ĀHĀRA VIDHI – The Ten Rules of Eating ✦", {
x: 0.22, y: 1.75, w: 12.86, h: 0.3,
fontSize: 11, bold: true, color: GOLD,
align: "center", valign: "middle", charSpacing: 1
});
// ─── RULES: 5 per column ──────────────────────────────────────────
const rules = [
{
num: "01",
sanskrit: "Ushnam Asniyat",
title: "Eat Warm Food",
desc: "Fresh, warm food stimulates Agni (digestive fire), aids proper digestion, reduces Kapha & Vata, and enhances taste & nourishment."
},
{
num: "02",
sanskrit: "Snigdham Asniyat",
title: "Eat Unctuous Food",
desc: "Slightly oily/unctuous food kindles Agni, satisfies the senses, lubricates the channels (Srotas) and promotes complexion & strength."
},
{
num: "03",
sanskrit: "Matravat Asniyat",
title: "Eat in Proper Quantity",
desc: "Appropriate quantity (Matra) — neither too much nor too little — ensures smooth passage of food, prolongs life and prevents metabolic disorders."
},
{
num: "04",
sanskrit: "Jirnne Asniyat",
title: "Eat Only After Digestion",
desc: "Take the next meal only after complete digestion of the previous one. Eating before digestion immediately aggravates all three Doshas."
},
{
num: "05",
sanskrit: "Virya Aviruddham",
title: "Avoid Contradictory Foods",
desc: "Avoid foods of opposing potencies (e.g. fish + milk). Such Viruddhahara causes skin diseases (Kushtha), Visarpa, infertility & chronic disorders."
},
{
num: "06",
sanskrit: "Ishte Deshe Asniyat",
title: "Eat in a Pleasant Place",
desc: "Food should be consumed in a clean, comfortable, pleasant environment. Surroundings affect mind, Doshas, and therefore the quality of digestion."
},
{
num: "07",
sanskrit: "Ishta Sarvopakaranam",
title: "Use Proper Utensils",
desc: "Eat with appropriate and pleasing utensils. Wrong vessels or unpleasant settings produce psychological disturbances affecting digestion."
},
{
num: "08",
sanskrit: "Na Atidrutam Asniyat",
title: "Do Not Eat Too Fast",
desc: "Eating hurriedly leads to improper mixing with digestive juices, food going into the wrong channel, choking, and unsatisfactory digestion."
},
{
num: "09",
sanskrit: "Na Ativilambitam Asniyat",
title: "Do Not Eat Too Slowly",
desc: "Eating very slowly causes the food to become cold, leads to overeating, and results in irregular digestion — sometimes too fast, sometimes not at all."
},
{
num: "10",
sanskrit: "Ajalpan Ahasan Tanmana",
title: "Eat Mindfully",
desc: "Eat without talking, laughing, or distraction. Mindful eating — free from Chinta (anxiety), Shoka (grief), Bhaya (fear) and Krodha (anger) — ensures proper digestion."
}
];
const cardW = 6.2;
const cardH = 0.85;
const col1X = 0.22;
const col2X = 6.88;
const startY = 2.1;
const gap = 0.03;
rules.forEach((r, i) => {
const col = i < 5 ? 0 : 1;
const row = i < 5 ? i : i - 5;
const x = col === 0 ? col1X : col2X;
const y = startY + row * (cardH + gap);
// Card background
slide.addShape(pres.ShapeType.rect, {
x: x, y: y, w: cardW, h: cardH,
fill: { color: col === 0 ? IVORY : LIGHT_ORG },
line: { color: GOLD, width: 0.75 },
shadow: { type: "outer", blur: 3, offset: 1, angle: 45, color: "CCCCCC", opacity: 0.4 }
});
// Number badge
slide.addShape(pres.ShapeType.rect, {
x: x, y: y, w: 0.32, h: cardH,
fill: { color: col === 0 ? SAFFRON : DARK_GREEN }
});
slide.addText(r.num, {
x: x, y: y, w: 0.32, h: cardH,
fontSize: 10, bold: true, color: WHITE,
align: "center", valign: "middle", fontFace: "Georgia"
});
// Sanskrit name
slide.addText(r.sanskrit, {
x: x + 0.36, y: y + 0.02, w: 2.1, h: 0.28,
fontSize: 9.5, bold: true, italic: true,
color: col === 0 ? SAFFRON : MED_GREEN,
fontFace: "Georgia", valign: "top"
});
// Rule title
slide.addText(r.title, {
x: x + 0.36, y: y + 0.27, w: 2.1, h: 0.26,
fontSize: 8.5, bold: true, color: DARK_BROWN,
fontFace: "Arial", valign: "top"
});
// Divider line inside card
slide.addShape(pres.ShapeType.line, {
x: x + 2.5, y: y + 0.1, w: 0, h: cardH - 0.2,
line: { color: GOLD, width: 0.6 }
});
// Description text
slide.addText(r.desc, {
x: x + 2.56, y: y + 0.04, w: cardW - 2.92, h: cardH - 0.08,
fontSize: 7.8, color: "333333",
fontFace: "Arial", valign: "middle", wrap: true
});
});
// ─── EIGHT FACTORS FOOTER BOX ─────────────────────────────────────
slide.addShape(pres.ShapeType.rect, {
x: 0.22, y: 6.42, w: 12.86, h: 0.52,
fill: { color: DARK_BROWN },
line: { color: GOLD, width: 1 }
});
slide.addText([
{ text: "★ ASHTA ĀHĀRA VISHESHAYATANA (Eight Factors of Food): ", options: { bold: true, color: GOLD } },
{ text: "Prakriti • Karana • Samyoga • Rashi • Desha • Kala • Upayoga Samstha • Upayokta ", options: { color: CREAM, italic: false } },
{ text: "— Ch.Vi.1/22", options: { color: GOLD, italic: true } }
], {
x: 0.3, y: 6.42, w: 12.7, h: 0.52,
fontSize: 9, align: "center", valign: "middle", fontFace: "Georgia"
});
// ─── BOTTOM ATTRIBUTION ───────────────────────────────────────────
slide.addText("Reference: Charaka Samhita, Vimana Sthana – Adhyaya 1 (Rasa Vimana) | Acharya Charaka", {
x: 0.12, y: 7.1, w: 13.06, h: 0.38,
fontSize: 9, color: WHITE, align: "center", valign: "middle",
fontFace: "Georgia", italic: true
});
// ─── DECORATIVE CORNER DIAMONDS ───────────────────────────────────
[[0.14, 0.56], [13.1, 0.56], [0.14, 7.07], [13.1, 7.07]].forEach(([cx, cy]) => {
slide.addShape(pres.ShapeType.diamond, {
x: cx - 0.07, y: cy - 0.07, w: 0.14, h: 0.14,
fill: { color: GOLD }
});
});
// ─── WRITE FILE ───────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/ahara-vidhi-poster/Ahara_Vidhi_Vidhan_Poster.pptx" })
.then(() => console.log("✅ Poster saved successfully!"))
.catch(err => console.error("Error:", err));
cd /home/daytona/workspace/ahara-vidhi-poster && node create_poster.js

Ahara Vidhi Vidhan Poster
Presentation · PPTX
| # | Sanskrit Term | Rule |
|---|---|---|
| 1 | Ushnam Asniyat | Eat warm food — kindles Agni, aids digestion |
| 2 | Snigdham Asniyat | Eat unctuous food — lubricates Srotas, nourishes |
| 3 | Matravat Asniyat | Eat in proper quantity — not too much, not too little |
| 4 | Jirnne Asniyat | Eat only after previous food is digested |
| 5 | Virya Aviruddham | Avoid foods of contradictory potency (Viruddha Ahara) |
| 6 | Ishte Deshe | Eat in a pleasant, clean place |
| 7 | Ishta Sarvopakaranam | Use proper, pleasing utensils |
| 8 | Na Atidrutam | Do not eat too fast |
| 9 | Na Ativilambitam | Do not eat too slowly |
| 10 | Ajalpan Ahasan Tanmana | Eat mindfully — no talking, laughing, or anxiety |