How notnonex/cdn works
Main Components
• CDN Repository: The core repository that hosts all the resources (static HTML, CSS, JS, and images).
• DockerProxy Component: Represented by the DockerProxy directory and its index.html. This could serve as a specialized endpoint or proxy for Docker-related resource access.
• GitHubProxy Component: Represented by the GitHubProxy directory and its index.html, catering to GitHub-related proxy functions.
• External CDN Infrastructure: Although not directly part of the repository, the usage instructions show that the repository is accessed and refreshed via CDN endpoints (jsdelivr, statically, and purge endpoints).
Relationships and Interactions
• The CDN Repository is central, with DockerProxy and GitHubProxy being subcomponents that offer specific functionalities or proxy pages.
• Static resources (HTML, CSS, JS, IMG) interact by being loaded into web pages that are accessed through the CDN.
• That there is an update/refresh mechanism (the purge endpoint) that invalidates cached content on CDN servers.
Architectural Patterns and Design Principles
• Simple static resource delivery with a focus on separation of concerns: Each proxy (DockerProxy and GitHubProxy) is isolated in its own directory to handle its specific domain.
• Emphasis on resource decoupling: The central repository is used as a source of truth for content that is propagated via the CDN.
• Use of clear naming conventions which convey the purpose of each component (e.g., “Proxy” in DockerProxy and GitHubProxy).
Relevant Technologies and Frameworks (Inferred from Context)
• HTML, CSS, JS for the frontend.
• CDN services provided through jsDelivr and Statically.
• GitHub as the version-controlled source for the repository.
• Although not explicitly mentioned, backend components are minimal since the project is entirely static.