diff --git a/build.js b/build.js
new file mode 100644
index 0000000..2f2fd08
--- /dev/null
+++ b/build.js
@@ -0,0 +1,304 @@
+const fs = require('fs');
+const path = require('path');
+const { marked } = require('marked');
+
+// ─── Config ────────────────────────────────────────────────
+const LOG_DIR = path.join(__dirname, 'llm_log');
+const OUTPUT_FILE = path.join(__dirname, 'index.html');
+
+// ─── Marked Config ─────────────────────────────────────────
+const headingIds = new Map();
+
+const renderer = new marked.Renderer();
+renderer.code = function (code, lang) {
+ const validLang = lang || 'text';
+ const highlighted = highlightCode(code, validLang);
+ const id = 'highlight-' + Math.random().toString(36).slice(2, 8);
+ return `
+
+
${escapeHtml(p.title)}
+
${path.basename(p.filePath)}
+
+ ${p.html}
+ `).join('');
+
+ const html = `
+
+
+