▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ░▒▓█ rapid1337.com █▓▒░ ╓──────────────────────────────────────────╖ ║ A 100-Line Static Site Generator ║ ╟──────────────────────────────────────────╢ ║ The whole build is Markdown in, HTML ║ ║ out — no framework required. ║ ╟──────────────────────────────────────────╢ ║ ·· code/tiny-ssg.html ·· ║ ╙──────────────────────────────────────────╜ ============================================================================ Title ..: A 100-Line Static Site Generator Author .: staff Date ...: 2026-06-28 Section : Code ============================================================================ The generator behind this site is plain Node. It scans a content folder, parses frontmatter, renders Markdown, and writes HTML. That's it. ```js import fs from "node:fs"; import matter from "gray-matter"; import { marked } from "marked"; export function renderEntry(file) { const { data, content } = matter(fs.readFileSync(file, "utf8")); return { ...data, html: marked.parse(content) }; } ``` No bundler, no hydration, no client framework. The only JavaScript that ships to the browser is the stuff that actually needs a browser: the music engine, the background cube, and the effects demos. ---------------------------------------------------------------------------- -- rapid1337.com -- The dumping ground for all things tech // knowledge is the weapon --