Blog / ยท GH-Proxy Team

GH-Proxy 2.0 Architecture Upgrade: Static-First Evolution, Multi-Ecosystem Mirrors & High Availability

#Architecture #Astro #Static-First #Microservices #Anycast #Open Source

GH-Proxy 2.0 Architecture Upgrade: Static-First Evolution, Multi-Ecosystem Mirrors & High Availability

Today, we are proud to announce to the global developer community: GH-Proxy 2.0 has completed its full-stack architecture redesign and is officially deployed in production!

Since GH-Proxy was founded, our mission has been to eliminate network bottlenecks in cross-border open-source software and code distribution. As daily request volume and bandwidth demand grew exponentially, the limitations of legacy heterogeneous systems, fragmented modules, and maintenance bottlenecks became apparent. After months of architectural exploration and engineering practice, GH-Proxy 2.0 delivers an end-to-end transformationโ€”from low-level streaming proxies and Anycast CDN edge routing to top-level modern static web interfaces and user experience.


1. Why Rebuild for 2.0?

In the legacy 1.0 architecture, the system gradually evolved into a classic โ€œpatchwork architectureโ€ as features were added over time:

  1. Fragmented Frontend Stack: The main portal relied on legacy single-page HTML templates with inline JavaScript, coupling interaction logic tightly with DOM manipulation and making style maintenance difficult.
  2. Fragmented Backend Services:
    • The core reverse proxy ran on standalone streaming nodes;
    • Friend links were served by a separate Python Flask microservice;
    • Donor showcase relied on external Google Sheets and third-party OpenSheet APIs, which frequently caused rendering glitches whenever external endpoints throttled or suffered latency spikes.
  3. Lack of Content Publishing System: The legacy platform lacked a native Markdown/MDX engine, making technical documentation, setup guides, and announcements difficult to organize and index for SEO.
  4. Suboptimal Mobile & Accessibility Experience: The old UI was not deeply optimized for responsive mobile viewports, lacking a system-level dark/light mode toggle.
  5. Single Points of Failure & Operational Overhead: Running multiple heterogeneous stacks (HTML + Python Flask + third-party APIs) lengthened deployment pipelines, bloated container image footprints, and consumed disproportionate server resources.

To address this technical debt, we set clear architectural goals for 2.0: Blazing Fast First Paint (Static First), Zero SPOF (Single Point of Failure), Unified Multi-Ecosystem Mirrors, and Modern UX.


2. Core 2.0 Technology Stack: Static-First Islands Architecture

To deliver sub-millisecond response times and resilient concurrency, GH-Proxy 2.0 is built on Astro 4 + React Islands Architecture.

Architecture Overview

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚             Global Distributed Anycast CDN Edges       โ”‚
โ”‚       - SSL/TLS Termination  - Smart Release/Raw Cache โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                            โ”‚
              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
              โ–ผ                           โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚    Static Web Portal Layerโ”‚ โ”‚ High-Perf Streaming Node  โ”‚
โ”‚   (Astro 4 SSG + Tailwind)โ”‚ โ”‚    (Streaming Reverse)    โ”‚
โ”‚  - Sub-ms First Paint HTMLโ”‚ โ”‚  - Pure streaming, 0 logs โ”‚
โ”‚  - React Islands Hydrationโ”‚ โ”‚  - Auto Failover (15 min) โ”‚
โ”‚  - Pre-compiled i18n      โ”‚ โ”‚  - Chunked/Resumable DL   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ”‚
              โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚        Unified Microservice & Storage (Node.js + Hono)  โ”‚
โ”‚  - Admin portal  - Link security check  - Stripe Webhookโ”‚
โ”‚  - High-performance local SQLite        - Memory < 50MB โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Key Technical Decisions:

  1. Astro 4 (Static Site Generation - SSG):
    • All pages (Homepage, Docs, Blog, About, Terms) are pre-compiled into lightweight, pure static HTML/CSS files at build time.
    • Initial page loads require zero JavaScript bundle execution, delivering near-instant First Contentful Paint (FCP).
  2. Islands Architecture:
    • React hydration is isolated strictly to interactive components (such as the multi-ecosystem Converter.tsx), preventing main-thread blocking and client-side memory bloat.
  3. Tailwind CSS + Linear/Vercel Design Language:
    • Modern adaptive palette (bg-slate-900 / zinc-950), subtle backdrop blur, smooth micro-interactions, and refined typography.
  4. Unified Lightweight Backend (Node.js + Hono + SQLite):
    • Retired external Google Sheets dependencies and isolated Python services into a single Node.js + Hono service.
    • Uses embedded SQLite for fast local queries (<100ms cold start), completely insulating the platform from cascading third-party API outages.

3. Four-in-One Open-Source Acceleration Engine

With version 2.0, GH-Proxy transitions from a single-purpose GitHub proxy into a unified developer mirror hub:

1. GitHub Acceleration Proxy

Comprehensive support across 10 major resource categories:

  • Releases Binary Packages & Assets (chunked transfer & resumable downloads)
  • Raw Source Code & Install Scripts (supports /blob/ web URLs and raw.githubusercontent.com)
  • Branch Source Archives (Zip / Tar.gz tarballs)
  • Git Clone Repositories (terminal-friendly, compatible with git config insteadOf global rewrites)
  • Gist Raw Snippets, GitHub REST API, User Avatars, GitHub Desktop Binaries, and Nightly.link Build Artifacts

2. Docker Registry Mirror

Assists developers worldwide in pulling official and third-party Docker container images without timeouts, providing seamless prefix replacement and daemon registry mirror configurations.

3. SourceForge Mirror

Provides edge-routed downloads for open-source utility software, firmware, and release archives hosted on SourceForge.

4. Google Sheets to JSON (OpenSheet)

A zero-config API proxy converting online Google Sheets directly into structured JSON endpoints without requiring complex GCP service account setups.


4. Security, Transparency & High Availability

As public infrastructure serving thousands of developers daily, security and availability are paramount:

  • End-to-End TLS & Zero Data Retention: All connectionsโ€”from client to proxy, and proxy to upstreamโ€”are encrypted via TLS 1.3/HTTPS. As a pure streaming reverse proxy, we never decrypt, alter, inspect, or retain user source code or credentials.
  • Global Anycast Edge Caching: Frequently requested release binaries and installer scripts (e.g. Homebrew, Rustup) are cached across CDN edges, minimizing upstream pressure and cross-region latency.
  • Multi-Region Smart Failover: Redundant primary and standby nodes are deployed globally. If an edge node experiences network degradation, the routing layer automatically redirects traffic to healthy upstream backbones within 15 minutes.

5. Modern User Experience & Community Interaction

Beyond infrastructural enhancements, 2.0 meticulously refines the frontend experience:

  1. Smart Converter & Anti-Overlap Polish:
    • Automatically detects and cleans various GitHub/Docker/SourceForge URL formats;
    • Features a one-click quick clear button engineered with absolute positioning and right-padding buffers, preventing long text from overlapping or obstructing buttons;
    • Fluid responsiveness across desktop and mobile screens.
  2. X (Twitter)-Style Community Discussion:
    • Comments module reimagined with an ultra-clean X.com interface, featuring rounded cards, subtle borders, flat action icons, and inline emoji rendering;
    • Powered by a same-origin /waline-api reverse proxy, eliminating CORS errors and 403 Forbidden issues.
  3. Full-Site Internationalization (i18n):
    • Follows web standards with /en path routing, delivering a native English homepage, documentation, and localized comment UI;
    • One-click bidirectional language switcher (ไธญ / EN) in the navigation bar.

6. Performance Benchmarks: 1.0 vs 2.0

Real-world production benchmarks highlight significant gains:

Metric1.0 Legacy Stack2.0 Static ArchitectureImprovement
First Contentful Paint (FCP)~1200ms< 280msโšก 76% Faster
Largest Contentful Paint (LCP)~2100ms< 450msโšก 78% Faster
Initial JS Payload~320KB (blocking)~49KB (hydrated)๐Ÿ“‰ 84% Reduction
External API Failure DependencyHigh (Google Sheets)0 External Dependencies๐Ÿ›ก๏ธ 99.95% SLA
Git Clone Connection Success Rate~78%99.2%+๐Ÿš€ Timeouts Resolved

7. Whatโ€™s Next on the Roadmap?

2.0 is just the beginning of our journey. Looking ahead:

  1. Package Manager Acceleration: Exploring mirror acceleration for npm, PyPI, Maven, and Crates.io;
  2. Real-Time Node Status Dashboard: Launching a transparent status page displaying global Anycast edge uptime and latency;
  3. Expanded Developer Guides: Continuous documentation for CI/CD integrations, private registries, and enterprise deployment best practices.

Conclusion

Every milestone of GH-Proxy is driven by the trust and feedback of open-source developers worldwide. We hope 2.0 becomes an indispensable asset in your daily development, DevOps pipelines, and open-source distribution.

Feel free to leave your thoughts, feedback, and questions in the comments below!

๐Ÿ’ฌ Comments & Discussion