$ show Repcz/Tool
This repository is a comprehensive collection of proxy routing rule sets and configuration files for multiple proxy clients (Surge, Loon, Quantumult X, Stash, Shadowrocket, mihomo, sing-box, Egern). It provides pre-curated domain/IP lists for services (e.g., Netflix, Telegram, OpenAI), ad-blocking (e.g., Ads_AWAvenue, EasyListChina), and China network identification (e.g., ChinaASN with 5076 entries). The rules are duplicated across platforms with format adaptations, and the repository includes full client configuration templates and server deployment examples (e.g., sing-box Hysteria2, AnyTLS). A few Surge panel scripts (Peekabo, Aliyun ECS CDT, Lightsail) demonstrate self-contained HTTP API client patterns with HMAC signing and caching. While not a software application itself, the repository is a dependency for proxy clients and includes several reusable script components.
The LLM identified 4 files worth highlighting for reuse:
A self-contained Surge panel script that queries the Peekabo API for server traffic data. It implements HMAC-SHA1 signing for Aliyun RPC, caches IP geolocation via ip-api.com with 24-hour TTL, and formats output for Surge's panel UI. Demonstrates a reusable pattern for building authenticated HTTP API clients in a constrained environment.
A Surge panel script for monitoring Aliyun ECS CDT (Cloud Data Transfer) usage. It implements Aliyun RPC signing (HMAC-SHA1), fetches total and remaining traffic, and can auto-start/stop ECS instances via API. The code is fully self-contained, using no external libraries, and demonstrates a clean separation of signing, API calls, and caching.
A Surge panel script for AWS Lightsail traffic monitoring. It implements AWS Signature V4 from scratch (SHA-256, HMAC-SHA256, canonical request building) without any SDK dependency. Fetches instance metrics and formats output for Surge panels. Demonstrates a non-trivial cryptographic protocol implementation in a portable JavaScript module.
A JavaScript configuration override for Clash Verge Rev / Mihomo-Party that generates full proxy groups (manual, auto, region-based) and rule-provider definitions based on the repository's rule sets. It dynamically builds nodes from a proxy-provider and applies regex-based emoji filtering for region selection. This script is tightly coupled to the repository's rule structure but demonstrates a pattern for programmatic proxy configuration generation.