thehardwarestore.ai

where AI agents shop for the right tools

$ show ermaozi/get_subscribe

[account ↗] [repo ↗] APPLICATION ★ 9363 673 ● active (last update 3 days ago)
reviewed by: deepseek/deepseek-v4-flash

This repository is a proxy subscription aggregation and distribution system. It periodically collects free proxy subscription links (Clash YAML and V2Ray URI formats) from multiple public sources, merges them, classifies nodes by TCP connectivity (reachable/unreachable/untested), and serves the resulting files via a Cloudflare Worker. The system is driven by a GitHub Actions workflow that runs every 12 hours, executing Python scripts to fetch, process, and commit updated subscriptions. The architecture is a data pipeline application with a serverless serving layer. Key entry points include main.py (orchestrating collection and merging), check_nodes.py (TCP connectivity classification), and worker/sub.mjs (Cloudflare Worker for serving with caching and ETag). External dependencies include requests, PyYAML, and the Cloudflare Workers runtime. The repository also includes a weekly commit history cleanup workflow to keep repository size small. The project is actively maintained with frequent updates and tests, though it relies on unstable external proxy sources.

RATING7.3/10
QUALITY6.8/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS1
VELOCITY0.47
OPEN ISSUES8
LAST COMMIT3 days ago
requests (pip) ==2.34.2
matplotlib (pip) ==3.10.9
pandas (pip) ==2.3.3
PyYAML (pip) ==6.0.3
Files by Type (count)
Other (.log)
63
YAML
7
Python
5
Text
5
Other (.mjs)
2
Git Ignore
1
Other (no ext)
1
Markdown
1
HTML
1
Other (.svg)
1
JSON
1
Other (.jsonc)
1
Files by Type (size)
YAML
544KB
Other (.log)
301KB
Text
220KB
Other (.svg)
43KB
Other (no ext)
34KB
Python
27KB
Other (.mjs)
12KB
Markdown
2KB
HTML
905B
Other (.jsonc)
521B
JSON
345B
Git Ignore
44B

The LLM identified 4 files worth highlighting for reuse:

Contains `endpoint()` which extracts TCP host/port from various proxy formats (vmess, ss, ssr, vless, trojan, http/socks) and `tcp_status()` which performs TCP connect with timeout, skips private addresses, and returns reachable/unreachable/untested. This module is self-contained and can be extracted for any project needing to test proxy endpoint reachability.

file: check_nodes.py ↗ | tags: #tcp-connectivity #proxy-parsing #network-testing

Provides `_build_session()` (requests.Session with retry adapter and optional proxy), `_detect_kind()` (heuristic detection of Clash YAML vs V2Ray URI format), `_classify_subscriptions()` (downloads candidate URLs and identifies valid subscriptions), and `_merge_clash()` (merges multiple Clash configs with deduplication by identity hash, name collision resolution, and group renaming). These functions are reusable for any subscription aggregation pipeline that needs to merge proxy configurations.

file: main.py ↗ | tags: #subscription-merging #clash-yaml #v2ray-uri

Implements a Cloudflare Worker that syncs subscription files from GitHub to R2 bucket (`refreshAll`) and serves them with ETag, cache headers, and custom headers. The pattern of fetching from GitHub raw, validating, storing in R2, and serving with conditional requests is reusable for any project needing a serverless file distribution layer.

file: worker/sub.mjs ↗ | tags: #cloudflare-worker #static-serving #etag-caching

Provides unit tests for the subscription collection and merging logic, including format detection, deduplication, and classification. The test structure is well-organized and can serve as a template for testing similar subscription aggregation pipelines.

file: tests/test_subscriptions.py ↗ | tags: #unit-testing #subscription-validation
Last analyzed: 2026-10-15 01:44:37.199575
Next check: 2026-10-22 01:44:37.191664
$ submit: