How hwclass/buildless-site works
Main Components
a) Frontend Layer:
• Components (Static Preact Components)
• Hierarchy of basic components (Button, Footer, Header, etc.)
• Islands (Interactive Components)
• Three interactive components: Boilerplates, EmbedCode, and NotificationBar
• Static Assets
• CSS, Service Worker, and asset manifest
b) Routing Layer:
• Main routes structure:
• Home route (/)
• Blog routes (/blog and /blog/[slug])
c) API Layer:
• Sections API endpoint (/api/sections)
• External Data Source (awesome-buildless GitHub repository)
[Client Browser] ←→ [Fresh Server]
• ↑ ↑
[Service Worker] [Deno Runtime]
• ↑
• [Components]
• [Static Components]
• [Islands (Interactive)]
• [Routes]
• ↑
• [External Data]
• [GitHub Repo]
Important Elements to Highlight
a) Fresh Framework Architecture:
• Distinction between static components and islands
• Server-side rendering aspect
• Routing system
b) Performance Features:
• Service worker implementation
• Static asset handling
c) Data Flow:
• How the sections API fetches data from GitHub
• Interaction between islands and the server