How frijal/layarkosong works
Layar Kosong is an automated static-site publishing system for an Indonesian article site. Its principal workflow takes staged HTML through article cleanup, site-data and feed generation, image/schema/minification work, then D1 synchronization and Cloudflare Pages deployment. The deployed site also serves clean URLs, catalog data, and client-side search. The README documents pipeline relationships; source excerpts are limited, so the graph omits unverified internal calls and marks documented pipeline links with README evidence.
Main entry points: generator-pro.ts Article data and feeds · artikel Published articles · katalog.js Article catalog API · Edit-Komponen-HTML.ts HTML preparation
Components 21
Article Processing
- Staged HTML
artikel - HTML preparation
dapur/Edit-Komponen-HTML.ts - SEO processing
dapur/seo-fixer.ts - Published articles
artikel
Site Generation
- Article data and feeds
dapur/generator-pro.ts - Title categorization
dapur/titleToCategory.ts - Responsive images
dapur/srcset-generator.ts - Sitemap and routing files
dapur/koki.ts - AI-facing index
dapur/generate_llms.ts - Structured data
dapur/inject-schema.ts - Asset minification
dapur/minify-html.ts
Search and Delivery
- Search index builder
search/build-d1.ts - D1 diff sync
search/sync-d1-diff.ts - Cloudflare D1
- Cloudflare Pages
Site Experience
- Clean URL routing
functions/[[path]].ts - Article catalog API
functions/katalog.js - Client-side search
ext/halaman-pencarian.js - Published site
Other components
- Article author
- Site visitor
Connections 23
- Article author → Staged HTML: commits articles
- Staged HTML → HTML preparation: processes HTML
README.md - HTML preparation → SEO processing: updates assets
README.md - SEO processing → Published articles: moves articles
README.md - Published articles → Article data and feeds: generates data
README.md - Article data and feeds → Title categorization: categorizes titles
dapur/generator-pro.ts - Article data and feeds → Responsive images: generates variants
README.md - Article data and feeds → Sitemap and routing files: updates site files
README.md - Article data and feeds → AI-facing index: generates index
README.md - Article data and feeds → Structured data: injects schema
README.md - Article data and feeds → Asset minification: minifies outputs
README.md - Published articles → Search index builder: extracts article data
search/build-d1.ts - Search index builder → Cloudflare D1: writes index
search/build-d1.ts - Cloudflare D1 → D1 diff sync: reads current state
README.md - D1 diff sync → Cloudflare D1: applies patch
README.md - Asset minification → Cloudflare Pages: prepares deployment
README.md - Cloudflare Pages → Published site: publishes site
README.md - Site visitor → Clean URL routing: requests page
- Clean URL routing → Published site: serves content
README.md - Site visitor → Article catalog API: requests catalog
functions/katalog.js - Article catalog API → Cloudflare D1: queries articles
functions/katalog.js - Site visitor → Client-side search: uses search
README.md - Client-side search → Article catalog API: fetches catalog