{
 "name": "Web chronos: digital archaeology (daniele-michelin.com)",
 "nodes": [
  {
   "parameters": {
    "httpMethod": "POST",
    "path": "your-secret-path",
    "responseMode": "onReceived",
    "options": {}
   },
   "id": "w1",
   "name": "Besucher-Knopf (Webhook)",
   "type": "n8n-nodes-base.webhook",
   "typeVersion": 2,
   "position": [
    0,
    340
   ],
   "webhookId": "7c1e5a2b-4b6f-4d9a-8c7e-0c0b00000099"
  },
  {
   "parameters": {
    "url": "={{ 'https://web.archive.org/cdx/search/cdx?url=' + encodeURIComponent($json.body.domain) + '&output=json&limit=1&fl=timestamp,original,statuscode&filter=statuscode:200' }}",
    "sendHeaders": true,
    "headerParameters": {
     "parameters": [
      {
       "name": "User-Agent",
       "value": "Mozilla/5.0 (compatible; daniele-michelin.com web chronos; +https://daniele-michelin.com/)"
      }
     ]
    },
    "options": {
     "timeout": 25000,
     "redirect": {
      "redirect": {
       "followRedirects": true
      }
     }
    }
   },
   "id": "h1",
   "name": "Wayback: Erstfund (CDX)",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "position": [
    280,
    100
   ],
   "onError": "continueRegularOutput"
  },
  {
   "parameters": {
    "url": "={{ 'https://web.archive.org/cdx/search/cdx?url=' + encodeURIComponent($json.body.domain) + '&output=json&fl=timestamp,length&collapse=timestamp:4' }}",
    "sendHeaders": true,
    "headerParameters": {
     "parameters": [
      {
       "name": "User-Agent",
       "value": "Mozilla/5.0 (compatible; daniele-michelin.com web chronos; +https://daniele-michelin.com/)"
      }
     ]
    },
    "options": {
     "timeout": 25000,
     "redirect": {
      "redirect": {
       "followRedirects": true
      }
     }
    }
   },
   "id": "h2",
   "name": "Wayback: Stratigrafie (CDX)",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "position": [
    280,
    220
   ],
   "onError": "continueRegularOutput"
  },
  {
   "parameters": {
    "url": "={{ 'https://rdap.org/domain/' + encodeURIComponent($json.body.domain) }}",
    "sendHeaders": true,
    "headerParameters": {
     "parameters": [
      {
       "name": "User-Agent",
       "value": "Mozilla/5.0 (compatible; daniele-michelin.com web chronos; +https://daniele-michelin.com/)"
      },
      {
       "name": "Accept",
       "value": "application/rdap+json, application/json"
      }
     ]
    },
    "options": {
     "timeout": 25000,
     "redirect": {
      "redirect": {
       "followRedirects": true
      }
     }
    }
   },
   "id": "h3",
   "name": "Kataster: RDAP-Register",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "position": [
    280,
    340
   ],
   "onError": "continueRegularOutput"
  },
  {
   "parameters": {
    "url": "={{ 'https://' + $json.body.domain + '/' }}",
    "sendHeaders": true,
    "headerParameters": {
     "parameters": [
      {
       "name": "User-Agent",
       "value": "Mozilla/5.0 (compatible; daniele-michelin.com web chronos; +https://daniele-michelin.com/)"
      }
     ]
    },
    "options": {
     "timeout": 20000,
     "redirect": {
      "redirect": {
       "followRedirects": true
      }
     }
    }
   },
   "id": "h4",
   "name": "Ausgrabung: Startseite & Quelltext",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "position": [
    280,
    460
   ],
   "onError": "continueRegularOutput"
  },
  {
   "parameters": {
    "url": "={{ 'https://api.thegreenwebfoundation.org/api/v3/greencheck/' + encodeURIComponent($json.body.domain) }}",
    "sendHeaders": true,
    "headerParameters": {
     "parameters": [
      {
       "name": "User-Agent",
       "value": "Mozilla/5.0 (compatible; daniele-michelin.com web chronos; +https://daniele-michelin.com/)"
      }
     ]
    },
    "options": {
     "timeout": 15000,
     "redirect": {
      "redirect": {
       "followRedirects": true
      }
     }
    }
   },
   "id": "h5",
   "name": "Ökologie: The Green Web",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "position": [
    280,
    580
   ],
   "onError": "continueRegularOutput"
  },
  {
   "parameters": {
    "numberInputs": 5
   },
   "id": "m1",
   "name": "Reperti zusammenführen",
   "type": "n8n-nodes-base.merge",
   "typeVersion": 3,
   "position": [
    560,
    340
   ]
  },
  {
   "parameters": {
    "mode": "runOnceForAllItems",
    "jsCode": "// Stratigraphy & Digital Carbon Dating: analyzes all 5 excavation probes.\n// Extracts birth date, lifespan, yearly evolution, unearths digital fossils and modern adaptations.\n// Safe for sandbox: no URL class, regex only, defensive checks on all arrays and objects.\n\nconst pick = n => { try { return $(n).first().json; } catch (e) { return null; } };\nconst req = $('Besucher-Knopf (Webhook)').first().json.body || {};\nconst lang = ['de', 'en', 'it'].includes(req.lang) ? req.lang : 'it';\nconst rawDomain = String(req.domain || '').toLowerCase().trim();\nconst domain = rawDomain.replace(/^https?:\\/\\//i, '').replace(/\\/.*$/, '').replace(/^[^\\w.-]+|[^\\w.-]+$/g, '');\n\n// 1. Wayback Earliest Snapshot (Birth Certificate on the Web)\nconst wf = pick('Wayback: Erstfund (CDX)');\nlet firstSeen = null;\nlet firstUrl = null;\nif (Array.isArray(wf) && wf.length > 1 && Array.isArray(wf[1]) && wf[1][0]) {\n  const rawTs = String(wf[1][0]);\n  if (/^\\d{8}/.test(rawTs)) {\n    firstSeen = `${rawTs.slice(0, 4)}-${rawTs.slice(4, 6)}-${rawTs.slice(6, 8)}`;\n    firstUrl = wf[1][1] || `http://${domain}/`;\n  }\n}\n\n// 2. RDAP Registry Data\nconst rd = pick('Kataster: RDAP-Register') || {};\nlet regDate = null;\nlet expDate = null;\nif (Array.isArray(rd.events)) {\n  for (const ev of rd.events) {\n    if (ev && ev.eventAction === 'registration' && ev.eventDate) regDate = String(ev.eventDate).slice(0, 10);\n    if (ev && ev.eventAction === 'expiration' && ev.eventDate) expDate = String(ev.eventDate).slice(0, 10);\n  }\n}\nlet registrar = 'Unbekannt';\nif (Array.isArray(rd.entities)) {\n  for (const ent of rd.entities) {\n    if (ent && Array.isArray(ent.roles) && ent.roles.includes('registrar')) {\n      const vc = ent.vcardArray;\n      if (Array.isArray(vc) && Array.isArray(vc[1])) {\n        for (const item of vc[1]) {\n          if (Array.isArray(item) && item[0] === 'fn' && item[3]) {\n            registrar = String(item[3]).trim();\n            break;\n          }\n        }\n      }\n    }\n  }\n}\nconst dnssec = !!(rd.secureDNS && rd.secureDNS.delegationSigned);\n\n// Official Biological Age (Oldest between RDAP registration and Wayback first snapshot)\nconst birthDate = (regDate && firstSeen) ? (regDate < firstSeen ? regDate : firstSeen) : (regDate || firstSeen || '2020-01-01');\nconst birthYear = parseInt(birthDate.slice(0, 4), 10) || 2020;\nconst currentYear = new Date().getFullYear();\nconst ageYears = Math.max(0, currentYear - birthYear);\nconst ageDays = Math.max(0, Math.round((new Date() - new Date(birthDate)) / (1000 * 60 * 60 * 24)));\n\n// 3. Wayback Stratigraphy (Yearly snapshot count & payload size evolution)\nconst ws = pick('Wayback: Stratigrafie (CDX)');\nconst stratigraphy = [];\nlet totalHistoricalSnapshots = 0;\nif (Array.isArray(ws) && ws.length > 1) {\n  const mapByYear = {};\n  for (let i = 1; i < ws.length; i++) {\n    const row = ws[i];\n    if (Array.isArray(row) && row[0]) {\n      const yr = String(row[0]).slice(0, 4);\n      const len = parseInt(row[1], 10) || 0;\n      if (!mapByYear[yr]) mapByYear[yr] = { count: 0, totalBytes: 0, minBytes: len, maxBytes: len };\n      mapByYear[yr].count++;\n      mapByYear[yr].totalBytes += len;\n      if (len < mapByYear[yr].minBytes) mapByYear[yr].minBytes = len;\n      if (len > mapByYear[yr].maxBytes) mapByYear[yr].maxBytes = len;\n      totalHistoricalSnapshots++;\n    }\n  }\n  for (const yr of Object.keys(mapByYear).sort()) {\n    const item = mapByYear[yr];\n    stratigraphy.push({\n      year: parseInt(yr, 10),\n      snapshots: item.count,\n      avgWeightKb: Math.round((item.totalBytes / Math.max(1, item.count)) / 1024 * 10) / 10,\n      peakWeightKb: Math.round(item.maxBytes / 1024 * 10) / 10\n    });\n  }\n}\n\n// 4. Live Code Excavation (Digital Fossils vs Modern Evolutionary Traits)\nconst hp = pick('Ausgrabung: Startseite & Quelltext') || {};\nconst html = typeof hp.data === 'string' ? hp.data : (typeof hp.body === 'string' ? hp.body : '');\nconst headers = (hp && hp.headers) || {};\nconst reachable = (Number(hp.statusCode) >= 200 && Number(hp.statusCode) < 400) || html.length > 100;\n\nconst fossils = [];\nconst modern = [];\n\nif (html.length > 0) {\n  // Fossil 1: Layout tables with legacy attributes\n  if (/<table\\b[^>]*\\b(cellpadding|cellspacing|border\\s*=\\s*[\"']?[1-9])/i.test(html) || (html.match(/<table\\b/gi) || []).length >= 4) {\n    fossils.push({ type: 'table_layout', name: 'Layout a tabelle annidate', era: 'Paleozoico' });\n  }\n  // Fossil 2: Extinct tags from the early web\n  const extinctMatch = html.match(/<(font|center|marquee|blink|spacer|frameset|frame|bgsound)\\b/i);\n  if (extinctMatch) {\n    fossils.push({ type: 'extinct_tag', name: `Tag estinto <${extinctMatch[1].toLowerCase()}>`, era: 'Paleozoico' });\n  }\n  // Fossil 3: Vintage jQuery (v1.x or v2.x)\n  if (/jquery[-.](1\\.|2\\.)/i.test(html) || /code\\.jquery\\.com\\/jquery-(1|2)/i.test(html)) {\n    fossils.push({ type: 'vintage_jquery', name: 'jQuery 1.x/2.x d\\'annata', era: 'Mesozoico' });\n  }\n  // Fossil 4: Pre-2010 JS Frameworks (Prototype, MooTools, Dojo, Scriptaculous)\n  if (/(prototype\\.js|mootools|scriptaculous|dojo\\.js|yui\\.js)/i.test(html)) {\n    fossils.push({ type: 'vintage_framework', name: 'Libreria JS pre-2010 (Prototype/MooTools)', era: 'Mesozoico' });\n  }\n  // Fossil 5: Flash / Shockwave relics\n  if (/(swfobject|\\.swf\\b|<embed\\b[^>]*flash|<object\\b[^>]*shockwave)/i.test(html)) {\n    fossils.push({ type: 'flash_relic', name: 'Reliquia Adobe Flash / SWF', era: 'Mesozoico' });\n  }\n  // Fossil 6: Inline visual attributes on body or elements\n  if (/<body\\b[^>]*\\b(bgcolor|text|link|vlink)\\s*=/i.test(html)) {\n    fossils.push({ type: 'body_attributes', name: 'Attributi colore inline su <body>', era: 'Paleozoico' });\n  }\n  // Fossil 7: Obsolete CSS vendor prefixes\n  if (/-(moz|webkit)-border-radius/i.test(html) || /progid:DXImageTransform/i.test(html)) {\n    fossils.push({ type: 'vendor_prefix', name: 'Prefissi CSS arcaici (-moz-border-radius)', era: 'Mesozoico' });\n  }\n\n  // Modern Adaptations\n  if (/<!doctype\\s+html>/i.test(html)) modern.push('Doctype HTML5 standard');\n  if (/<meta\\b[^>]*viewport/i.test(html)) modern.push('Viewport responsive mobile-ready');\n  if (/type\\s*=\\s*[\"']module[\"']/i.test(html)) modern.push('Moduli JavaScript ES6 moderni');\n  if (/display\\s*:\\s*(grid|flex)/i.test(html) || /style=\"[^\"]*(grid|flex)/i.test(html) || /<style[^>]*>[^<]*(grid|flex)/i.test(html)) {\n    modern.push('Layout CSS moderno (Flexbox/Grid)');\n  }\n  if (/\\.(webp|avif|svg)\\b/i.test(html)) modern.push('Formati immagine moderni (WebP/AVIF/SVG)');\n}\n\n// Modern security headers\nconst hsts = !!headers['strict-transport-security'];\nconst csp = !!headers['content-security-policy'];\nif (hsts) modern.push('HSTS (comunicazione cifrata forzata)');\nif (csp) modern.push('CSP (Content Security Policy attivo)');\n\n// 5. The Green Web Foundation Eco Check\nconst gr = pick('Ökologie: The Green Web') || {};\nconst isGreen = !!(gr && gr.green);\n\n// 6. Paleontological Era Classification\nlet era = 'Antropocene';\nlet eraDetails = {};\nif (birthYear < 1997) {\n  era = 'Archeozoico';\n  eraDetails = {\n    de: { name: 'Archäozoikum', subtitle: 'Die Geburt des Hypertext (1991–1996)', desc: 'Pionierzeit: NCSA Mosaic, CERN-Protokolle, reiner Text und graue Hintergründe.' },\n    en: { name: 'Archean Era', subtitle: 'The Dawn of Hypertext (1991–1996)', desc: 'Pioneer era: NCSA Mosaic, CERN protocols, plain text, and default gray backgrounds.' },\n    it: { name: 'Era Archeozoica', subtitle: 'L\\'Alba dell\\'Ipertesto (1991–1996)', desc: 'Epoca pionieristica: NCSA Mosaic, protocolli del CERN, testo puro e sfondi grigi standard.' }\n  }[lang];\n} else if (birthYear <= 2003) {\n  era = 'Paleozoico';\n  eraDetails = {\n    de: { name: 'Paläozoikum', subtitle: 'Dot-Com-Boom & Tabellen-Layouts (1997–2003)', desc: 'Verschachtelte Tabellen, Besucherzähler, blinkende GIFs und spacer.gif.' },\n    en: { name: 'Paleozoic Era', subtitle: 'Dot-Com Boom & Table Layouts (1997–2003)', desc: 'Nested tables, visitor hit counters, animated GIFs, and transparent spacer.gif.' },\n    it: { name: 'Era Paleozoica', subtitle: 'Boom Dot-Com & Layout a Tabelle (1997–2003)', desc: 'Tabelle annidate, contatori di visite, GIF animate scintillanti e spacer.gif.' }\n  }[lang];\n} else if (birthYear <= 2010) {\n  era = 'Mesozoico';\n  eraDetails = {\n    de: { name: 'Mesozoikum', subtitle: 'Das Web-2.0- & Flash-Zeitalter (2004–2010)', desc: 'Glossy Buttons, jQuery 1.x, RSS-Feeds, Blogrolls und der Siegeszug des interaktiven Webs.' },\n    en: { name: 'Mesozoic Era', subtitle: 'The Web 2.0 & Flash Epoch (2004–2010)', desc: 'Glossy buttons, jQuery 1.x, RSS feeds, blogrolls, and the interactive web explosion.' },\n    it: { name: 'Era Mesozoica', subtitle: 'Il Regno di Flash & Web 2.0 (2004–2010)', desc: 'Bottoni lucidi, jQuery 1.x, feed RSS, blogroll e l\\'esplosione del web partecipativo.' }\n  }[lang];\n} else if (birthYear <= 2018) {\n  era = 'Cenozoico';\n  eraDetails = {\n    de: { name: 'Känozoikum', subtitle: 'Die Mobile-First-Revolution (2011–2018)', desc: 'Responsive Webdesign, Bootstrap, CSS3 Media Queries und Flat Design.' },\n    en: { name: 'Cenozoic Era', subtitle: 'The Mobile-First Revolution (2011–2018)', desc: 'Responsive web design, Bootstrap, CSS3 media queries, and flat design.' },\n    it: { name: 'Era Cenozoica', subtitle: 'La Rivoluzione Mobile-First (2011–2018)', desc: 'Design responsivo, Bootstrap, media queries CSS3 e transizione al mobile.' }\n  }[lang];\n} else {\n  era = 'Antropocene';\n  eraDetails = {\n    de: { name: 'Anthropozän', subtitle: 'Das moderne Cloud- & SPA-Zeitalter (2019–heute)', desc: 'Single-Page-Apps, Cookie-Banner, Web-Komponenten, Edge-Computing und Microservices.' },\n    en: { name: 'Anthropocene', subtitle: 'The Modern Cloud & SPA Era (2019–present)', desc: 'Single-page apps, cookie banners, web components, edge computing, and microservices.' },\n    it: { name: 'Era Antropocene', subtitle: 'L\\'Era Moderna Cloud & SPA (2019–oggi)', desc: 'Single page application, banner dei cookie, web components, edge computing e microservizi.' }\n  }[lang];\n}\n\n// 7. Evolutionary Fitness Score (0-100)\nlet fitness = 55;\nfitness += Math.min(20, Math.round(ageYears * 1.2));       // Longevity bonus\nfitness += Math.min(25, modern.length * 4);               // Modern adaptation bonus\nfitness -= Math.min(30, fossils.length * 8);              // Dead fossil penalty\nif (isGreen) fitness += 5;                                // Green hosting bonus\nif (dnssec) fitness += 5;                                 // DNSSEC integrity bonus\nfitness = Math.max(10, Math.min(100, Math.round(fitness)));\n\nconst grade = fitness >= 90 ? 'A+' : fitness >= 80 ? 'A' : fitness >= 65 ? 'B' : fitness >= 50 ? 'C' : 'D';\n\n// Complete Chronos Artifact Dossier\nconst chronos = {\n  id: req.id,\n  lang,\n  domain,\n  birthDate,\n  birthYear,\n  ageYears,\n  ageDays,\n  firstSeen,\n  firstUrl,\n  registrar,\n  expirationDate: expDate,\n  dnssec,\n  isGreen,\n  reachable,\n  era,\n  eraDetails,\n  fitness,\n  grade,\n  fossils,\n  modern,\n  stratigraphy: stratigraphy.slice(-15),\n  totalHistoricalSnapshots\n};\n\n// Prompt for the AI Archaeologist\nconst facts = {\n  domain,\n  birth_date: birthDate,\n  age_years: ageYears,\n  age_days: ageDays,\n  first_wayback_snapshot: firstSeen,\n  registrar,\n  dnssec,\n  green_hosting: isGreen,\n  paleontological_era: eraDetails.name + ' - ' + eraDetails.subtitle,\n  fitness_score: fitness,\n  fitness_grade: grade,\n  historical_snapshots_indexed: totalHistoricalSnapshots,\n  fossils_unearthed: fossils.map(f => f.name),\n  modern_adaptations: modern\n};\n\nconst LANG_PROMPT = {\n  de: 'German, informal \"du\", precise and charmingly witty archaeological tone',\n  en: 'English, engaging, erudite and witty archaeological field-journal tone',\n  it: 'Italian, informal \"tu\", tono da archeologo digitale brillante, scientifico e arguto'\n}[lang];\n\nconst prompt = 'You are the Chief Digital Archaeologist of the \"Web Chronos Institute\". You excavate websites like ancient ruins or living evolutionary fossils. '\n  + `Write in ${LANG_PROMPT}. `\n  + `Excavation evidence (use ONLY these numbers, dates and facts, NEVER invent anything): ${JSON.stringify(facts)}. `\n  + 'Answer with JSON only: {\"journal\":\"\", \"curiosity\":\"\"}. '\n  + 'journal: 3-4 sentences (max 480 characters in total), an excavation field log describing when the site was born, what era it belongs to, whether any digital fossils were found in the strata, and how well it survived through digital history. '\n  + 'curiosity: 1 sentence (max 140 characters), an intriguing archaeological insight or actionable preservation advice for the next decade. '\n  + 'No markdown, no hashtags, no emojis.';\n\nreturn [{\n  json: {\n    chronos,\n    body: {\n      model: 'openai/gpt-oss-120b',\n      temperature: 0.7,\n      max_tokens: 3000,\n      reasoning_effort: 'low',\n      response_format: { type: 'json_object' },\n      messages: [{ role: 'user', content: prompt }]\n    }\n  }\n}];"
   },
   "id": "c1",
   "name": "Stratigrafie & Datazione Digitale",
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "position": [
    800,
    340
   ]
  },
  {
   "parameters": {
    "method": "POST",
    "url": "https://openai.inference.de-txl.ionos.com/v1/chat/completions",
    "authentication": "genericCredentialType",
    "genericAuthType": "httpHeaderAuth",
    "sendBody": true,
    "specifyBody": "json",
    "jsonBody": "={{ JSON.stringify($json.body) }}",
    "options": {
     "timeout": 90000
    }
   },
   "id": "a1",
   "name": "Der digitale Archäologe (KI)",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "position": [
    1060,
    340
   ],
   "retryOnFail": true,
   "maxTries": 2,
   "waitBetweenTries": 2000,
   "onError": "continueRegularOutput",
   "credentials": {
    "httpHeaderAuth": {
     "id": "",
     "name": "YOUR OpenAI-compatible API key (Header Auth: Authorization = Bearer …)"
    }
   }
  },
  {
   "parameters": {
    "mode": "runOnceForAllItems",
    "jsCode": "// Validates the AI archaeological field log with robust deterministic fallback.\n// If the AI is slow, offline or invalid, constructs a high-quality field report from real facts.\n\nconst c = $('Stratigrafie & Datazione Digitale').first().json.chronos;\nlet journal = '';\nlet curiosity = '';\n\ntry {\n  const content = String($input.first().json.choices[0].message.content || '');\n  const m = content.match(/\\{[\\s\\S]*\\}/);\n  if (m) {\n    const parsed = JSON.parse(m[0]);\n    journal = String(parsed.journal || '').replace(/[*_#`]/g, '').replace(/\\s+/g, ' ').trim();\n    curiosity = String(parsed.curiosity || '').replace(/[*_#`]/g, '').replace(/\\s+/g, ' ').trim();\n  }\n} catch (e) {}\n\n// Validate length constraints\nif (journal.length > 500) {\n  const cut = journal.slice(0, 500);\n  const p = Math.max(cut.lastIndexOf('. '), cut.lastIndexOf('! '), cut.lastIndexOf('? '));\n  journal = p > 150 ? cut.slice(0, p + 1) : cut;\n}\nif (curiosity.length > 180) {\n  const cut = curiosity.slice(0, 180);\n  const p = Math.max(cut.lastIndexOf('. '), cut.lastIndexOf('! '));\n  curiosity = p > 50 ? cut.slice(0, p + 1) : cut;\n}\n\n// Fallback generators\nconst fossilStr = c.fossils.length > 0\n  ? c.fossils.map(f => f.name).join(', ')\n  : ({ de: 'keine toten Fossilien', en: 'no extinct fossils', it: 'nessun fossile estinto' }[c.lang]);\n\nconst FALLBACKS = {\n  de: {\n    journal: `Ausgrabungsbericht ${c.domain}: Das digitale Artefakt entstand ${c.birthYear} im ${c.eraDetails.name} und blickt auf ${c.ageYears} Jahre Web-Evolution zurück. In den Straten wurden ${c.totalHistoricalSnapshots} historische Wegmarken erfasst; im Quelltext zeigen sich ${fossilStr}. Mit einem Evolutionswert von ${c.fitness}/100 erweist sich das Artefakt als bemerkenswert anpassungsfähig.`,\n    curiosity: c.fossils.length\n      ? `Tipp für die Konservierung: Alte Relikte bereinigen, um die historische Fitness auf A+ zu heben.`\n      : `Ein sauberes Exemplar der digitalen Naturgeschichte ohne Altlasten.`\n  },\n  en: {\n    journal: `Excavation Log ${c.domain}: This digital artifact was born in ${c.birthYear} during the ${c.eraDetails.name}, spanning ${c.ageYears} years of web evolution. Stratigraphic records reveal ${c.totalHistoricalSnapshots} preserved snapshots across history, with ${fossilStr} in the live bedrock. Scoring ${c.fitness}/100 in evolutionary fitness, it stands as a resilient survivor of digital history.`,\n    curiosity: c.fossils.length\n      ? `Preservation note: Cleaning legacy fossils will push this historic artifact to an A+ grade.`\n      : `A pristine specimen of digital natural history with zero legacy burden.`\n  },\n  it: {\n    journal: `Diario di scavo ${c.domain}: Questo reperto digitale è nato nel ${c.birthYear} nell'${c.eraDetails.name}, attraversando ${c.ageYears} anni di evoluzione della rete. La stratigrafia conta ${c.totalHistoricalSnapshots} istantanee storiche archiviate, con ${fossilStr} rilevati nel codice vivo. Con un punteggio evolutivo di ${c.fitness}/100, si conferma un esemplare straordinariamente resiliente.`,\n    curiosity: c.fossils.length\n      ? `Nota di conservazione: Rimuovere i vecchi fossili permetterà di raggiungere il grado A+.`\n      : `Un reperto limpido della storia naturale del web, libero da zavorre del passato.`\n  }\n}[c.lang];\n\nif (journal.length < 60) journal = FALLBACKS.journal;\nif (curiosity.length < 15) curiosity = FALLBACKS.curiosity;\n\nreturn [{\n  json: {\n    ...c,\n    journal: journal.slice(0, 520),\n    curiosity: curiosity.slice(0, 200)\n  }\n}];"
   },
   "id": "c2",
   "name": "Verifica Reperto Archeologico",
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "position": [
    1320,
    340
   ]
  },
  {
   "parameters": {
    "method": "POST",
    "url": "https://YOUR-SITE.example/chronos-ingest.php",
    "sendHeaders": true,
    "headerParameters": {
     "parameters": [
      {
       "name": "X-Chronos-Token",
       "value": "YOUR-SECRET-TOKEN"
      }
     ]
    },
    "sendBody": true,
    "specifyBody": "json",
    "jsonBody": "={{ JSON.stringify($json) }}",
    "options": {
     "timeout": 60000
    }
   },
   "id": "p1",
   "name": "Reperto an die Seite",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "position": [
    1580,
    340
   ]
  }
 ],
 "connections": {
  "Besucher-Knopf (Webhook)": {
   "main": [
    [
     {
      "node": "Wayback: Erstfund (CDX)",
      "type": "main",
      "index": 0
     },
     {
      "node": "Wayback: Stratigrafie (CDX)",
      "type": "main",
      "index": 0
     },
     {
      "node": "Kataster: RDAP-Register",
      "type": "main",
      "index": 0
     },
     {
      "node": "Ausgrabung: Startseite & Quelltext",
      "type": "main",
      "index": 0
     },
     {
      "node": "Ökologie: The Green Web",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Wayback: Erstfund (CDX)": {
   "main": [
    [
     {
      "node": "Reperti zusammenführen",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Wayback: Stratigrafie (CDX)": {
   "main": [
    [
     {
      "node": "Reperti zusammenführen",
      "type": "main",
      "index": 1
     }
    ]
   ]
  },
  "Kataster: RDAP-Register": {
   "main": [
    [
     {
      "node": "Reperti zusammenführen",
      "type": "main",
      "index": 2
     }
    ]
   ]
  },
  "Ausgrabung: Startseite & Quelltext": {
   "main": [
    [
     {
      "node": "Reperti zusammenführen",
      "type": "main",
      "index": 3
     }
    ]
   ]
  },
  "Ökologie: The Green Web": {
   "main": [
    [
     {
      "node": "Reperti zusammenführen",
      "type": "main",
      "index": 4
     }
    ]
   ]
  },
  "Reperti zusammenführen": {
   "main": [
    [
     {
      "node": "Stratigrafie & Datazione Digitale",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Stratigrafie & Datazione Digitale": {
   "main": [
    [
     {
      "node": "Der digitale Archäologe (KI)",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Der digitale Archäologe (KI)": {
   "main": [
    [
     {
      "node": "Verifica Reperto Archeologico",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Verifica Reperto Archeologico": {
   "main": [
    [
     {
      "node": "Reperto an die Seite",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "active": false,
 "settings": {
  "executionOrder": "v1",
  "timezone": "Europe/Berlin",
  "saveDataSuccessExecution": "none",
  "saveDataErrorExecution": "all"
 },
 "pinData": {}
}