In this section
- Youengineer Code Review — Index Page render · youengineer-code-review / index.html lines 1–161
- Myth Reader render · youengineer-code-review / myth-reader.js lines 1–168
- Myths render · youengineer-code-review / myths.css lines 1–195
- Myths render · youengineer-code-review / myths.js lines 1–90
Youengineer Code Review — Index Page
A web page that reads inputs for myth and myth group. Published at https://ventusltd.github.io/youengineer-code-review/.
renderyouengineer-code-review / index.html · lines 1–161 of 161 · Entry point
- What it does
- It draws its content. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- README: "Download or clone the repo, then open `index.html` or `civilisation-atlas-v8/index.html` in a browser."
- Inputs & outputs
- In: form fields (user input). Out: web page.
- Downstream impact
- Used directly by 1 file: Civilisation Map (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-map.html). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/.
- What it achieves
- Medusa's Time Temple.
- Why it matters
- Loaded by the Civilisation Map page at https://ventusltd.github.io/youengineer-code-review/civilisation-map.html.
- Application
- youengineer-code-review · / · page
- Uses
- Youengineer Code Review — Styles Style Sheet (stylesheet), Myths (stylesheet), Myths (script src), Youengineer Code Review — Script (script src), Myth Reader (script src), Youengineer Code Review — Civilisation Atlas V8 Page (link), Youengineer Code Review — World Cup Knockout Page (link)
- Used by
- linked from Civilisation Map (link)
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- youengineer-code-review@929a6d4a955524122e4fd18bd3c85ceaf1a86c56 index.html:1-161 · blob be76324791f32d336626673da59f4a5a31be882a · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: unknown · users: none · canonical: unknown
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Medusa's Time Temple</title>
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="myths.css" />
<script src="myths.js" defer></script>
<script src="script.js" defer></script>
<script src="myth-reader.js" defer></script>
</head>
<body>
<main class="temple-shell">
<section class="hero">
<p class="eyebrow">YouEngineer Mini Project 01</p>
<h1>Medusa's Time Temple</h1>
<p class="subtitle">
A classical civilisation inspired calendar, clock and Greek mythology reader for learning HTML, CSS and JavaScript.
</p>
<p class="frieze">ΑΘΗΝΑ · ΧΡΟΝΟΣ · ΜΕΔΟΥΣΑ · ΣΟΦΙΑ</p>
<p class="subtitle">
<a href="civilisation-atlas-v8/">Open Mini Project 02: Civilisation Atlas V8</a>
</p>
<p class="subtitle">
<a href="world-cup-knockout/">Open Mini Project 03: World Cup Knockout Predictor</a>
</p>
</section>
<section class="dashboard" aria-label="Medusa calendar and clock dashboard">
<article class="panel medusa-panel">
<div class="medusa-art" aria-hidden="true">
<span class="snake snake-one">∿</span>
<span class="snake snake-two">∿</span>
<span class="snake snake-three">∿</span>
<span class="snake snake-four">∿</span>
<div class="face">
<div class="eye left-eye"></div>
<div class="eye right-eye"></div>
<div class="nose"></div>
<div class="mouth"></div>
</div>
</div>
<h2>Gorgon Clock</h2>
<p class="myth-note" id="mythNote">The temple is waking up...</p>
<div class="clock" aria-label="Analogue clock">
<div class="clock-ring"></div>
<div class="hand hour-hand" id="hourHand"></div>
<div class="hand minute-hand" id="minuteHand"></div>
<div class="hand second-hand" id="secondHand"></div>
<div class="clock-centre"></div>
<span class="clock-number twelve">XII</span>
<span class="clock-number three">III</span>
<span class="clock-number six">VI</span>
<span class="clock-number nine">IX</span>
</div>
<p class="digital-time" id="digitalTime">--:--:--</p>
<p class="digital-date" id="digitalDate">Loading date...</p>
</article>
<article class="panel calendar-panel">
<div class="calendar-header">
<button type="button" id="previousMonth" aria-label="Previous month">←</button>
<h2 id="monthTitle">Month</h2>
<button type="button" id="nextMonth" aria-label="Next month">→</button>
</div>
<div class="calendar-grid weekday-row" aria-hidden="true">
<span>Mon</span>
<span>Tue</span>
<span>Wed</span>
<span>Thu</span>
<span>Fri</span>
<span>Sat</span>
<span>Sun</span>
</div>
<div class="calendar-grid days-grid" id="calendarDays" aria-label="Calendar days"></div>
<button type="button" class="today-button" id="todayButton">Return to Today</button>
<section class="quest-box" aria-label="Learning quests">
<h3>Learning Quests</h3>
<ul>
<li>Find the JavaScript function that builds the calendar.</li>
<li>Change one colour in <code>styles.css</code>.</li>
<li>Add one new myth note in <code>script.js</code>.</li>
<li>Commit the change with a clear message.</li>
</ul>
</section>
</article>
</section>
<section class="myth-library" aria-label="Greek mythology library">
<div class="library-intro">
<p class="eyebrow">Greek Mythology Library</p>
<h2>Choose a favourite figure or story</h2>
<p>
Search the temple archive, filter by theme, or choose a random myth. Each entry is short enough to read quickly and structured enough to inspect in code review.
</p>
<p class="entry-count" id="mythCount">Loading mythology entries...</p>
</div>
<div class="library-controls" aria-label="Mythology selection controls">
<label class="control-group">
Search
<input id="mythSearch" type="search" placeholder="Try Athena, Hades, heroes, underworld..." />
</label>
<label class="control-group">
Theme
<select id="mythGroup" aria-label="Choose mythology theme"></select>
</label>
<label class="control-group">
Figure or story
<select id="mythSelect" aria-label="Choose mythology entry"></select>
</label>
<button type="button" class="random-button" id="randomMyth">Random myth</button>
</div>
<article class="myth-card" aria-live="polite">
<div class="myth-symbol" id="mythSymbol" aria-hidden="true">🏛️</div>
<div>
<p class="myth-category" id="mythCategory">Greek mythology</p>
<h2 id="mythName">Loading...</h2>
<p class="myth-summary" id="mythSummary">Preparing the archive.</p>
<p class="myth-story" id="mythStory"></p>
<p class="learning-line"><strong>Learning prompt:</strong> <span id="mythLesson"></span></p>
<div class="tag-row" id="mythTags" aria-label="Mythology tags"></div>
</div>
</article>
<div class="library-footer">
<section class="quest-box" aria-label="Mythology code quests">
<h3>Mythology Code Quests</h3>
<ul>
<li>Add one new entry to <code>myths.js</code>.</li>
<li>Change the filter order in <code>myth-reader.js</code>.</li>
<li>Improve the mobile layout in <code>myths.css</code>.</li>
<li>Make a pull request explaining the change.</li>
</ul>
</section>
<section class="quest-box" aria-label="Public showcase notes">
<h3>Public Showcase Notes</h3>
<ul>
<li>No personal names are required for the page to work.</li>
<li>The mythology content is local to the repo, so the site does not depend on a third-party API.</li>
<li>The data structure is simple enough for beginner code review.</li>
</ul>
</section>
</div>
</section>
</main>
</body>
</html>Myth Reader
A JavaScript file in Youengineer Code Review that gets searchable (`getSearchableText`) and filtered myths (`getFilteredMyths`) and renders empty (`renderEmptyState`). Served with the page at https://ventusltd.github.io/youengineer-code-review/.
renderyouengineer-code-review / myth-reader.js · lines 1–168 of 168 · Entry point
- What it does
- It draws its content. Defines 9 functions or classes, including normaliseText, getSearchableText, getFilteredMyths, populateGroupSelect, populateMythSelect. Side effects: changes the web page (DOM).
- Downstream impact
- Used directly by 1 file: Youengineer Code Review — Index Page (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/). Reached from 1 other entry point, including Civilisation Map (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-map.html). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/.
- What it achieves
- It normalises text (`normaliseText`), gets searchable text (`getSearchableText`) and gets filtered myths (`getFilteredMyths`). Defines `normaliseText`, `getSearchableText`, `getFilteredMyths` and 6 more. It responds to change, input and click events.
- Why it matters
- Loaded by the Youengineer Code Review page at https://ventusltd.github.io/youengineer-code-review/.
- Application
- youengineer-code-review · / · script
- Uses
- none found
- Used by
- loaded by Youengineer Code Review — Index Page (script src)
- Produces
- normaliseText, getSearchableText, getFilteredMyths, populateGroupSelect, populateMythSelect, renderEmptyState, renderMyth, selectRandomMyth, initialiseMythLibrary
- Defines here
- normaliseText, getSearchableText, getFilteredMyths, populateGroupSelect, populateMythSelect, renderEmptyState, renderMyth, selectRandomMyth, initialiseMythLibrary
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- youengineer-code-review@929a6d4a955524122e4fd18bd3c85ceaf1a86c56 myth-reader.js:1-168 · blob a01d04b191dd4b25be62cc705f9b286b2d338401 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: unknown · users: none · canonical: unknown
const mythSearch = document.getElementById("mythSearch");
const mythGroup = document.getElementById("mythGroup");
const mythSelect = document.getElementById("mythSelect");
const randomMythButton = document.getElementById("randomMyth");
const mythCount = document.getElementById("mythCount");
const mythSymbol = document.getElementById("mythSymbol");
const mythCategory = document.getElementById("mythCategory");
const mythName = document.getElementById("mythName");
const mythSummary = document.getElementById("mythSummary");
const mythStory = document.getElementById("mythStory");
const mythLesson = document.getElementById("mythLesson");
const mythTags = document.getElementById("mythTags");
const greekMyths = Array.isArray(window.GREEK_MYTHS) ? window.GREEK_MYTHS : [];
let activeMyths = [...greekMyths];
function normaliseText(value) {
return String(value || "").toLowerCase().trim();
}
function getSearchableText(myth) {
return [
myth.name,
myth.category,
myth.summary,
myth.story,
myth.lesson,
...(myth.tags || [])
].join(" ");
}
function getFilteredMyths() {
const searchTerm = normaliseText(mythSearch?.value);
const selectedGroup = mythGroup?.value || "All";
return greekMyths.filter((myth) => {
const matchesGroup = selectedGroup === "All" || myth.category === selectedGroup;
const matchesSearch = !searchTerm || normaliseText(getSearchableText(myth)).includes(searchTerm);
return matchesGroup && matchesSearch;
});
}
function populateGroupSelect() {
if (!mythGroup) {
return;
}
const groups = ["All", ...new Set(greekMyths.map((myth) => myth.category))].sort((a, b) => {
if (a === "All") return -1;
if (b === "All") return 1;
return a.localeCompare(b);
});
mythGroup.innerHTML = "";
groups.forEach((group) => {
const option = document.createElement("option");
option.value = group;
option.textContent = group;
mythGroup.appendChild(option);
});
}
function populateMythSelect(preferredId) {
if (!mythSelect) {
return;
}
activeMyths = getFilteredMyths();
mythSelect.innerHTML = "";
if (!activeMyths.length) {
const option = document.createElement("option");
option.textContent = "No myths found";
option.value = "";
mythSelect.appendChild(option);
renderEmptyState();
return;
}
activeMyths.forEach((myth) => {
const option = document.createElement("option");
option.value = myth.id;
option.textContent = `${myth.name} · ${myth.category}`;
mythSelect.appendChild(option);
});
const selectedMyth = activeMyths.find((myth) => myth.id === preferredId) || activeMyths[0];
mythSelect.value = selectedMyth.id;
renderMyth(selectedMyth);
}
function renderEmptyState() {
if (mythCount) {
mythCount.textContent = "0 entries";
}
if (mythSymbol) mythSymbol.textContent = "🏛️";
if (mythCategory) mythCategory.textContent = "No match";
if (mythName) mythName.textContent = "No myth found";
if (mythSummary) mythSummary.textContent = "Try a broader search or choose another theme.";
if (mythStory) mythStory.textContent = "";
if (mythLesson) mythLesson.textContent = "Search is part of the interface logic. Inspect how filtering works in myth-reader.js.";
if (mythTags) mythTags.innerHTML = "";
}
function renderMyth(myth) {
if (!myth) {
renderEmptyState();
return;
}
if (mythCount) {
mythCount.textContent = `${activeMyths.length} of ${greekMyths.length} entries`;
}
if (mythSymbol) mythSymbol.textContent = myth.symbol;
if (mythCategory) mythCategory.textContent = myth.category;
if (mythName) mythName.textContent = myth.name;
if (mythSummary) mythSummary.textContent = myth.summary;
if (mythStory) mythStory.textContent = myth.story;
if (mythLesson) mythLesson.textContent = myth.lesson;
if (mythTags) {
mythTags.innerHTML = "";
(myth.tags || []).forEach((tag) => {
const tagElement = document.createElement("span");
tagElement.className = "myth-tag";
tagElement.textContent = tag;
mythTags.appendChild(tagElement);
});
}
}
function selectRandomMyth() {
if (!activeMyths.length) {
return;
}
const randomIndex = Math.floor(Math.random() * activeMyths.length);
const myth = activeMyths[randomIndex];
mythSelect.value = myth.id;
renderMyth(myth);
}
function initialiseMythLibrary() {
if (!mythSelect || !greekMyths.length) {
return;
}
populateGroupSelect();
populateMythSelect("medusa");
mythSelect.addEventListener("change", () => {
const selectedMyth = activeMyths.find((myth) => myth.id === mythSelect.value);
renderMyth(selectedMyth);
});
mythGroup.addEventListener("change", () => {
populateMythSelect();
});
mythSearch.addEventListener("input", () => {
populateMythSelect(mythSelect.value);
});
randomMythButton.addEventListener("click", selectRandomMyth);
}
initialiseMythLibrary();Myths
A style sheet in Youengineer Code Review. Served with the page at https://ventusltd.github.io/youengineer-code-review/.
renderyouengineer-code-review / myths.css · lines 1–195 of 195 · Entry point
- What it does
- Side effects: changes the web page (DOM).
- Downstream impact
- Used directly by 1 file: Youengineer Code Review — Index Page (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/). Reached from 1 other entry point, including Civilisation Map (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-map.html). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- Loaded by the Youengineer Code Review page at https://ventusltd.github.io/youengineer-code-review/.
- Application
- youengineer-code-review · / · style sheet
- Uses
- none found
- Used by
- loaded by Youengineer Code Review — Index Page (stylesheet)
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- youengineer-code-review@929a6d4a955524122e4fd18bd3c85ceaf1a86c56 myths.css:1-195 · blob 6f26138425c499588f5156a948db7890b9c64734 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: unknown · users: none · canonical: unknown
.myth-library {
padding: 0 28px 34px;
}
.library-intro {
padding: 28px;
margin: 0 0 24px;
border: 3px solid rgba(158, 107, 46, 0.32);
border-radius: 24px;
background:
linear-gradient(135deg, rgba(95, 111, 58, 0.1), rgba(158, 107, 46, 0.12)),
var(--marble);
box-shadow: 0 14px 35px rgba(36, 25, 15, 0.12);
}
.library-intro h2 {
margin: 0 0 10px;
font-size: clamp(2rem, 4vw, 3.6rem);
line-height: 1;
}
.library-intro p:last-child {
max-width: 780px;
margin-bottom: 0;
}
.library-controls {
display: grid;
grid-template-columns: 1.1fr 1fr 1.25fr auto;
gap: 14px;
align-items: end;
margin-bottom: 22px;
}
.control-group {
display: grid;
gap: 7px;
font-weight: bold;
}
.control-group input,
.control-group select {
width: 100%;
min-height: 46px;
border: 2px solid rgba(158, 107, 46, 0.45);
border-radius: 14px;
background: #fffdf3;
color: var(--ink);
font: inherit;
padding: 10px 12px;
}
.random-button {
min-height: 46px;
padding: 10px 16px;
white-space: nowrap;
}
.myth-card {
display: grid;
grid-template-columns: 116px 1fr;
gap: 24px;
align-items: start;
padding: 28px;
border: 4px double var(--bronze);
border-radius: 26px;
background:
radial-gradient(circle at top left, rgba(158, 107, 46, 0.18), transparent 32%),
var(--marble);
box-shadow: 0 18px 42px rgba(36, 25, 15, 0.16);
}
.myth-symbol {
display: grid;
place-items: center;
width: 108px;
height: 108px;
border: 4px solid rgba(158, 107, 46, 0.45);
border-radius: 50%;
background: #f7e4b9;
font-size: 3.2rem;
box-shadow: inset 0 0 0 8px rgba(255, 248, 231, 0.7);
}
.myth-card h2 {
margin: 4px 0 12px;
font-size: clamp(2rem, 4vw, 3.4rem);
line-height: 1;
}
.myth-category {
margin: 0;
color: var(--olive);
font-size: 0.82rem;
font-weight: bold;
letter-spacing: 0.18em;
text-transform: uppercase;
}
.myth-summary {
margin: 0 0 14px;
font-size: 1.16rem;
font-weight: bold;
}
.myth-story {
margin: 0 0 16px;
line-height: 1.62;
}
.learning-line {
margin: 0 0 14px;
padding: 14px 16px;
border-left: 5px solid var(--bronze);
border-radius: 12px;
background: rgba(95, 111, 58, 0.1);
}
.tag-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}
.myth-tag {
border: 1px solid rgba(158, 107, 46, 0.48);
border-radius: 999px;
background: rgba(255, 255, 255, 0.52);
padding: 6px 10px;
color: var(--olive);
font-size: 0.84rem;
font-weight: bold;
}
.library-footer {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-top: 24px;
}
.library-footer .quest-box {
border: 3px solid rgba(158, 107, 46, 0.28);
border-radius: 22px;
padding: 22px;
background: rgba(255, 248, 231, 0.75);
}
.entry-count {
margin: 8px 0 0;
color: var(--bronze);
font-weight: bold;
}
@media (max-width: 980px) {
.library-controls {
grid-template-columns: 1fr 1fr;
}
.random-button {
grid-column: span 2;
}
.library-footer {
grid-template-columns: 1fr;
}
}
@media (max-width: 680px) {
.myth-library {
padding: 0 18px 24px;
}
.library-controls {
grid-template-columns: 1fr;
}
.random-button {
grid-column: auto;
}
.myth-card {
grid-template-columns: 1fr;
text-align: center;
}
.myth-symbol {
margin: 0 auto;
}
.tag-row {
justify-content: center;
}
}Myths
A JavaScript file in Youengineer Code Review. Served with the page at https://ventusltd.github.io/youengineer-code-review/.
renderyouengineer-code-review / myths.js · lines 1–90 of 90 · Entry point
- What it does
- It lists and searches its content. Side effects: changes the web page (DOM).
- Downstream impact
- Used directly by 1 file: Youengineer Code Review — Index Page (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/). Reached from 1 other entry point, including Civilisation Map (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-map.html). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- Loaded by the Youengineer Code Review page at https://ventusltd.github.io/youengineer-code-review/.
- Application
- youengineer-code-review · / · script
- Uses
- none found
- Used by
- loaded by Youengineer Code Review — Index Page (script src)
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- youengineer-code-review@929a6d4a955524122e4fd18bd3c85ceaf1a86c56 myths.js:1-90 · blob 2d594bff539457003232d5db8783411b94780609 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: unknown · users: none · canonical: unknown
const mythSource = `id|name|category|symbol|summary|story|lesson|tags
medusa|Medusa|Monsters and transformations|🐍|A mortal Gorgon whose image became one of the strongest symbols in Greek myth.|Medusa is remembered for a gaze that could turn people to stone. Perseus defeats her by using reflection, patience and timing rather than charging blindly.|Inspect a difficult problem before acting on it.|Gorgon, Perseus, reflection, courage
athena|Athena|Olympians|🦉|Goddess of wisdom, strategy, craft and disciplined skill.|Athena helps heroes through plans, tools and calm judgement. Her power is intelligence under pressure.|Good engineering is judgement, structure and clarity.|wisdom, strategy, craft, owl
hades|Hades|Underworld|🪙|Ruler of the underworld and guardian of the hidden realm.|Hades is stern and ordered. His kingdom is a place of rules, thresholds, memory and consequence.|Design systems with clear boundaries and protected gates.|underworld, rules, threshold, wealth
persephone|Persephone|Underworld|🌺|Queen of the underworld and figure of seasonal return.|Persephone connects spring growth with the shadowed world below. Her story is often read as a myth of cycles, change and renewal.|Projects have seasons: design, build, rest, review and renew.|seasons, return, underworld, spring
demeter|Demeter|Olympians|🌾|Goddess of grain, harvest and the rhythm of the earth.|Demeter stands for cultivation, patience and the labour behind abundance. Her story gives mythic weight to the changing year.|Small daily improvements become a harvest.|harvest, earth, patience, growth
hecate|Hecate|Underworld|🗝️|Goddess of crossroads, night, thresholds and hidden knowledge.|Hecate appears where paths divide and choices become serious. Torches and keys make her a guide at uncertain crossings.|When code branches, name the paths clearly.|crossroads, keys, night, choices
melinoe|Melinoe|Underworld|🌑|A mysterious underworld figure associated with night and spirits.|Melinoe belongs to later Orphic tradition and suggests a world between light and darkness. She is useful for exploring mystery and layered identity.|Explore contrast in design: visible and hidden, simple and advanced.|night, spirits, mystery, Orphic
chronos|Chronos|Cosmic powers|⏳|Personification of time.|Chronos represents time as a force that measures, changes and reveals. In a clock project, he is the mythic logic behind every second.|Timing bugs become visible every second.|time, clock, cosmos, change
nyx|Nyx|Cosmic powers|🌌|Primordial goddess of night.|Nyx is older than many Olympian stories and represents the deep night from which other powers emerge. Mystery is not emptiness.|A blank screen is a starting point for structure.|night, primordial, mystery, cosmos
hypnos|Hypnos|Cosmic powers|💤|Personification of sleep.|Hypnos shows that rest is a force, not a failure of effort. Even heroes need recovery before judgement returns.|Debugging improves after rest.|sleep, rest, dreams, recovery
thanatos|Thanatos|Cosmic powers|🪽|Personification of peaceful death in Greek myth.|Thanatos marks the boundary of mortal life. He reminds readers that limits give action meaning.|Respect limits in memory, time, scope and attention.|limit, boundary, wings, mortality
nemesis|Nemesis|Cosmic powers|⚖️|Goddess of balance, consequence and measured justice.|Nemesis appears when pride grows beyond proportion. She restores balance where excess becomes dangerous.|Code review checks confidence against evidence.|balance, justice, consequence, measure
the-fates|The Fates|Cosmic powers|🧵|Three figures who spin, measure and cut the thread of life.|Clotho spins, Lachesis measures and Atropos cuts. Together they turn life into a thread with pattern, length and ending.|Create, measure and close tasks cleanly.|thread, destiny, measure, closure
zeus|Zeus|Olympians|⚡|King of the Olympian gods and wielder of the thunderbolt.|Zeus rules from Olympus and is linked with storms, law, hospitality and authority. His stories ask how power should be used.|Admin power needs restraint and accountability.|thunder, authority, Olympus, law
hera|Hera|Olympians|🦚|Queen of Olympus, linked with dignity, status and sovereignty.|Hera is majestic and formidable. Her myths often explore loyalty, rivalry and wounded honour.|A polished interface should have dignity and consistency.|queen, peacock, dignity, Olympus
poseidon|Poseidon|Olympians|🌊|God of the sea, earthquakes and horses.|Poseidon represents restless force: waves, storms, shaking ground and sudden change. Sailors respect him because the sea is never fully controlled.|Build resilient code for changing conditions.|sea, storm, trident, horses
apollo|Apollo|Olympians|☀️|God of light, music, healing, prophecy and order.|Apollo brings clarity and harmony, but also discipline. His oracle at Delphi became a symbol of difficult knowledge.|Readable code is clear, proportioned and tuned.|light, music, prophecy, Delphi
artemis|Artemis|Olympians|🏹|Goddess of the hunt, wild places and independence.|Artemis moves through forests with focus and self-command. She protects boundaries and values freedom.|A good project needs independent modules and clear boundaries.|hunt, moon, wild, bow
hermes|Hermes|Olympians|🪽|Messenger god of travellers, trade, language and clever movement.|Hermes crosses boundaries quickly. He guides travellers, carries messages and turns speed into communication.|APIs carry messages between parts of a system.|messenger, travel, language, speed
aphrodite|Aphrodite|Olympians|🕊️|Goddess of beauty, attraction and desire.|Aphrodite shows that beauty can move people as powerfully as force. In myth, attraction changes the path of kings and heroes.|Visual design matters because people engage with grace.|beauty, dove, attraction, design
hephaestus|Hephaestus|Olympians|⚒️|God of fire, metalwork, invention and the workshop.|Hephaestus makes extraordinary objects through craft, patience and technical skill. His forge is the workshop of Olympus.|Makers win by building useful things.|forge, craft, metalwork, invention
dares|Ares|Olympians|🛡️|God of war and direct conflict.|Ares represents heat, force and confrontation. Greek myth often contrasts him with Athena's disciplined strategy.|Do not attack bugs blindly; use strategy before force.|war, shield, conflict, force
dionysus|Dionysus|Olympians|🍇|God of theatre, wine, masks and transformation.|Dionysus breaks rigid order and reveals hidden emotion. He is linked with performance, surprise and the freedom of theatre.|Creative projects need play and experimentation.|theatre, masks, grapes, transformation
hestia|Hestia|Olympians|🔥|Goddess of the hearth and steady centre.|Hestia is quiet but essential. The hearth is the centre that makes a place ordered and safe.|Every project needs a stable centre: README, structure and purpose.|hearth, home, centre, stability
prometheus|Prometheus|Titans and rebels|🔥|Titan associated with foresight, human craft and stolen fire.|Prometheus brings fire to humanity and becomes a symbol of risky help, invention and defiance. His name suggests thinking ahead.|Technology is powerful, so build with foresight.|fire, foresight, invention, Titan
pandora|Pandora|Titans and rebels|📦|A figure linked with curiosity and the famous jar of troubles.|Pandora opens a container that releases many troubles, yet hope remains. The story turns curiosity into a serious force.|Before importing anything, ask what it may release.|curiosity, hope, jar, consequence
atlas|Atlas|Titans and rebels|🌍|Titan imagined as bearing the heavens.|Atlas stands under an immense burden. His image became a symbol of endurance and responsibility.|Do not let one file carry the whole project.|burden, Titan, heavens, endurance
perseus|Perseus|Heroes|🪞|Hero known for defeating Medusa with reflected sight.|Perseus succeeds by using gifts wisely: a reflective shield, winged sandals and careful planning. The story rewards preparation over panic.|Tools matter when used thoughtfully.|hero, Medusa, mirror, planning
theseus|Theseus|Heroes|🧶|Hero linked with the Labyrinth and the Minotaur.|Theseus enters the Labyrinth and survives by following a thread. The myth turns navigation into the difference between courage and confusion.|Leave a thread through the maze: comments, tests and commits.|Labyrinth, thread, Minotaur, navigation
ariadne|Ariadne|Heroes|🧵|Keeper of the thread that guides Theseus through the Labyrinth.|Ariadne's thread is simple but decisive. It proves that a small guide can make a difficult system understandable.|A clear guide can beat a complex feature.|thread, guide, Labyrinth, clarity
minotaur|The Minotaur|Monsters and transformations|🐂|A bull-headed creature hidden in the Labyrinth.|The Minotaur represents what a society hides at the centre of a maze. The monster is frightening, but the maze is also part of the danger.|Ask whether the bug is the monster or the architecture around it.|Labyrinth, monster, maze, Crete
daedalus|Daedalus|Wisdom and craft|🛠️|Master craftsman, inventor and designer of the Labyrinth.|Daedalus is brilliant, but his inventions carry consequences. His work shows that intelligence without judgement can trap the maker too.|Designers are responsible for the systems they create.|craft, Labyrinth, invention, design
icarus|Icarus|Heroes|🪽|The flyer whose wings became a warning about excess.|Icarus flies with crafted wings but ignores the safe path. His story is not against ambition; it is against ignoring constraints.|Ambition needs testing, limits and humility.|flight, wings, risk, limits
odysseus|Odysseus|Heroes|⛵|Hero of long travel, cunning, endurance and return.|Odysseus faces monsters, temptation, delay and disguise on the journey home. His strength is adaptability.|Long projects need navigation, patience and recovery from detours.|voyage, cunning, return, Ithaca
penelope|Penelope|Heroes|🧶|A figure of patience, intelligence and strategic delay.|Penelope weaves and unweaves while preserving order through uncertainty. Her patience is active, not passive.|Sometimes slow the process until clarity returns.|weaving, patience, strategy, Ithaca
circe|Circe|Monsters and transformations|✨|Enchantress associated with transformation and hidden knowledge.|Circe changes visitors into animals in the Odyssey. Her island tests judgement, identity and self-control.|Interfaces can transform user behaviour, so design ethically.|magic, island, transformation, Odyssey
achilles|Achilles|Trojan cycle|🛡️|The greatest Greek warrior of the Trojan War tradition.|Achilles is almost unbeatable in battle but deeply vulnerable in honour, friendship and fate. His story asks what glory costs.|Strength in one area does not remove vulnerability in another.|Troy, warrior, glory, vulnerability
patroclus|Patroclus|Trojan cycle|🤝|Companion of Achilles and key figure in the Iliad.|Patroclus acts when others hesitate, and his fate changes the direction of the war story. He shows loyalty and consequence.|One action can change a project path.|loyalty, Iliad, friendship, consequence
hector|Hector|Trojan cycle|🏛️|Trojan defender known for duty, courage and family honour.|Hector fights for city, household and obligation. His dignity makes him one of the most human figures in the Trojan story.|Responsibility can be the highest form of courage.|Troy, duty, defender, honour
helen|Helen|Trojan cycle|🌟|A figure whose beauty becomes tied to the Trojan War tradition.|Helen's story is surrounded by questions of choice, blame, beauty and consequence. She is more than a symbol in a world of power.|Avoid reducing complex people or problems to one label.|Troy, beauty, complexity, war
paris|Paris|Trojan cycle|🍎|Trojan prince linked with the judgement of the golden apple.|Paris chooses between divine promises, and his judgement becomes a spark in a larger conflict. The myth shows how incentives shape choices.|Decision-making matters because incentives shape outcomes.|Troy, apple, choice, consequence
cassandra|Cassandra|Trojan cycle|🔮|Prophetess of Troy whose warnings are not believed.|Cassandra sees danger clearly but cannot persuade others. Her tragedy is lack of trust from the audience, not lack of insight.|Data is not enough; communication and credibility matter.|prophecy, Troy, warning, trust
orpheus|Orpheus|Journeys and transformations|🎵|Musician whose song could move nature and the underworld.|Orpheus journeys below to recover Eurydice, relying on music rather than weapons. Art becomes a force that can open impossible doors.|Skill and beauty can persuade where force fails.|music, underworld, journey, art
eurydice|Eurydice|Journeys and transformations|🌿|The lost beloved at the centre of Orpheus's underworld journey.|Eurydice is often quiet in the surviving story, yet everything turns around her absence and possible return. She gives the myth emotional gravity.|What is missing can shape a system as strongly as what is present.|underworld, return, loss, Orpheus
heracles|Heracles|Heroes|🦁|Hero known for strength, endurance and the Twelve Labours.|Heracles faces tasks that require more than muscle: courage, persistence, help and planning. His labours make huge work divisible.|Large projects become possible when broken into labours.|labours, strength, lion, endurance
atalanta|Atalanta|Heroes|🏃|Swift huntress and athlete known for speed and independence.|Atalanta outruns expectations as much as opponents. Her stories emphasise skill, discipline and refusal to be underestimated.|Performance comes from training and focus.|speed, huntress, race, skill
jason|Jason|Voyages|🐏|Leader of the Argonauts in the quest for the Golden Fleece.|Jason's quest depends on a crew, a ship and help from others. The voyage reminds us that heroic work can be collaborative.|Repositories are ships; structure them for a crew.|Argonauts, fleece, ship, quest
medea|Medea|Journeys and transformations|🧪|A powerful sorceress whose story explores intelligence, exile and dangerous anger.|Medea is one of the most intense figures in Greek drama. She combines brilliance, injury and destructive resolve.|Powerful knowledge needs ethical control.|magic, exile, drama, power
sisyphus|Sisyphus|Underworld|🪨|A clever king condemned to roll a stone forever.|Sisyphus is punished with a task that repeats without completion. His story became a symbol of pointless labour and stubborn endurance.|Automate repeated work; do not roll the same stone by hand.|stone, repetition, underworld, automation
tantalus|Tantalus|Underworld|🍎|A punished figure surrounded by things he cannot reach.|Tantalus stands near food and water that always withdraw. The myth gives us the word tantalise: desire without access.|Do not promise interface actions that cannot work.|desire, punishment, access, underworld
narcissus|Narcissus|Journeys and transformations|🌼|A youth associated with reflection and self-absorption.|Narcissus becomes fixed on his own reflection and cannot turn outward. Looking is not the same as understanding.|Build for users and feedback, not self-admiration.|reflection, flower, self, warning
echo|Echo|Journeys and transformations|🔁|A nymph linked with repeated speech.|Echo can only repeat what she hears. Her myth turns voice, repetition and silence into a memorable transformation.|Do not only echo code; understand it, then improve it.|voice, repetition, nymph, sound
arachne|Arachne|Wisdom and craft|🕸️|A brilliant weaver whose contest with Athena becomes a transformation myth.|Arachne is gifted and proud. Her story explores talent, rivalry and the danger of skill without humility.|Skill grows stronger with respect and teachability.|weaving, craft, Athena, humility
pygmalion|Pygmalion|Wisdom and craft|🗿|A sculptor whose artwork becomes central to a myth of creation.|Pygmalion creates an image so beautiful that the boundary between art and life becomes the question. It is a story about makers and values.|Creators should ask what values they build into their work.|sculpture, art, creation, maker
eros-and-psyche|Eros and Psyche|Journeys and transformations|🦋|A story of trust, tasks and the soul's journey.|Psyche must complete difficult tasks and learn trust after doubt breaks a hidden agreement. Her name became linked with soul and mind.|Complex goals need perseverance, help and repaired trust.|soul, trust, tasks, butterfly
the-muses|The Muses|Wisdom and craft|🎭|Nine goddesses of inspiration, memory and the arts.|The Muses preside over song, history, dance, poetry, astronomy and more. They show that knowledge and creativity belong together.|A good project can combine code, story, design and memory.|arts, inspiration, memory, learning
the-sirens|The Sirens|Monsters and transformations|🎼|Singers whose voices lure sailors from the safe route.|The Sirens offer irresistible sound and dangerous distraction. Odysseus survives by planning how to hear without being destroyed.|Build safeguards against distraction before it arrives.|song, sea, Odyssey, temptation
cerberus|Cerberus|Underworld|🐕|The many-headed hound guarding the entrance to the underworld.|Cerberus marks the boundary between the living world and the realm below. He is a guardian, not just a monster.|Access control matters; guard important gates.|guardian, underworld, hound, boundary
charon|Charon|Underworld|⛴️|The ferryman who carries souls across the river of the dead.|Charon moves travellers across a threshold that cannot be crossed casually. The coin for passage makes transition part of the ritual.|Every system needs clear handoff points.|ferry, river, transition, underworld
the-furies|The Furies|Underworld|🔥|Ancient powers of pursuit, guilt and moral consequence.|The Furies hunt wrongdoing that cannot be ignored. In later stories they can become balanced guardians of justice.|Good systems surface unresolved errors instead of hiding them.|justice, pursuit, order, consequence
pegasus|Pegasus|Monsters and transformations|🐎|The winged horse linked with inspiration and heroic flight.|Pegasus rises into stories of heroes, springs and skyward movement. The image suggests power made graceful.|A good feature should feel powerful but light to use.|horse, wings, flight, inspiration
chimera|The Chimera|Monsters and transformations|🐐|A hybrid monster made of several creatures in one form.|The Chimera combines parts that do not naturally belong together. It is dangerous partly because it is difficult to classify.|Beware tangled code that mixes too many responsibilities.|hybrid, monster, classification, Bellerophon
hydra|The Hydra|Monsters and transformations|🐉|A many-headed creature fought by Heracles.|When one head is cut, more can appear. The Hydra is the perfect myth for problems that multiply when attacked carelessly.|Fix root causes, not only visible symptoms.|Heracles, heads, root cause, labour
scylla|Scylla|Monsters and transformations|🪨|A sea monster who makes narrow passage dangerous.|Scylla waits beside a strait where sailors must choose between hazards. She represents unavoidable trade-offs.|Some designs require choosing the least harmful constraint.|sea, Odyssey, strait, tradeoff
charybdis|Charybdis|Monsters and transformations|🌀|A whirlpool monster opposite Scylla in the Odyssey.|Charybdis swallows the sea and makes navigation terrifying. With Scylla, she creates the image of being trapped between two dangers.|Name competing risks clearly before choosing a path.|whirlpool, sea, risk, Odyssey
bellerophon|Bellerophon|Heroes|🐎|Hero associated with Pegasus and the Chimera.|Bellerophon defeats the Chimera with the help of Pegasus, but later overreaches. The story joins skill, assistance and pride.|Success should increase discipline, not arrogance.|Pegasus, Chimera, hero, pride
daphne|Daphne|Journeys and transformations|🌿|A nymph transformed into a laurel tree.|Daphne becomes associated with the laurel, later a symbol of victory and poetic honour. Her transformation links escape, nature and memory.|Symbols can carry stories long after the event.|laurel, tree, transformation, symbol
niobe|Niobe|Journeys and transformations|💧|A queen whose pride before the gods becomes a grief myth.|Niobe boasts beyond measure and is brought into sorrow. Her weeping image became a warning against pride without humility.|Confidence must stay proportionate to reality.|pride, grief, measure, warning
selene|Selene|Cosmic powers|🌙|Moon goddess who drives across the night sky.|Selene represents the visible moon as a divine presence. Her path across the sky makes night feel ordered and luminous.|Good design can make dark parts of a system navigable.|moon, night, sky, light
helios|Helios|Cosmic powers|☀️|Sun god who drives his chariot across the sky.|Helios sees much from above because his daily course crosses the world. He represents observation and exposure.|Logging and monitoring are the sunlight of a project.|sun, chariot, observation, sky
phaethon|Phaethon|Journeys and transformations|☄️|The reckless driver of the sun chariot.|Phaethon tries to control a power beyond his readiness. The story warns that access without preparation can cause disaster.|Do not give production access before training and safeguards.|sun, chariot, risk, readiness`;
window.GREEK_MYTHS = mythSource
.trim()
.split("\n")
.slice(1)
.map((line) => {
const [id, name, category, symbol, summary, story, lesson, tags = ""] = line.split("|");
return {
id,
name,
category,
symbol,
summary,
story,
lesson,
tags: tags.split(",").map((tag) => tag.trim()).filter(Boolean)
};
});