GH-Proxy 2.0 Architecture Upgrade: Static-First Evolution, Multi-Ecosystem Mirrors & High Availability
Table of Contents14sections
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:
- 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.
- 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.
- 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.
- Suboptimal Mobile & Accessibility Experience: The old UI was not deeply optimized for responsive mobile viewports, lacking a system-level dark/light mode toggle.
- 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:
- 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).
- 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.
- React hydration is isolated strictly to interactive components (such as the multi-ecosystem
- Tailwind CSS + Linear/Vercel Design Language:
- Modern adaptive palette (
bg-slate-900/zinc-950), subtle backdrop blur, smooth micro-interactions, and refined typography.
- Modern adaptive palette (
- 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 andraw.githubusercontent.com) - Branch Source Archives (Zip / Tar.gz tarballs)
- Git Clone Repositories (terminal-friendly, compatible with
git config insteadOfglobal 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:
- 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.
- 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-apireverse proxy, eliminating CORS errors and 403 Forbidden issues.
- Full-Site Internationalization (i18n):
- Follows web standards with
/enpath routing, delivering a native English homepage, documentation, and localized comment UI; - One-click bidirectional language switcher (
ไธญ / EN) in the navigation bar.
- Follows web standards with
6. Performance Benchmarks: 1.0 vs 2.0
Real-world production benchmarks highlight significant gains:
| Metric | 1.0 Legacy Stack | 2.0 Static Architecture | Improvement |
|---|---|---|---|
| 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 Dependency | High (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:
- Package Manager Acceleration: Exploring mirror acceleration for npm, PyPI, Maven, and Crates.io;
- Real-Time Node Status Dashboard: Launching a transparent status page displaying global Anycast edge uptime and latency;
- 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!