# zhiyi7/gfw-pac

科学上网 PAC 成品文件以及生成器。可自定义代理域名和直连域名。不在自定义名单里的域名再按IP匹配，CNIP走直连，其他走代理，支持IPv6

Repository: https://github.com/zhiyi7/gfw-pac
Canonical: https://ross.abutalabs.com/products/gfw-pac
Language: JavaScript
License: NOASSERTION
License Family: other
Topics: clash, clash-meta, cnip, geoip, gfw, hysteria, ipv6, pac, proxy, shadowrocket, surge, trojan, v2ray, vless, xray
Last push: 2026-08-20T01:49:18+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 98, release rhythm 86, longevity 100
- inputs: {"age_days": 4160, "days_push": 14, "days_rel": 14, "gap_med": 7, "n_releases_24m": 112}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1245, forks 326 (observed 2026-08-28T04:04:06.979743+00:00)

## What it is
A PAC (Proxy Auto-Config) file generator and ready-made gfw.pac file for routing traffic around the GFW. It matches domains first, then falls back to CN IP-range matching via a Radix Tree, sending Chinese traffic direct and everything else through a proxy, with IPv6 support.

## Use cases
- generate a PAC file for system-wide proxy auto-configuration
- route Chinese websites direct and foreign sites through a proxy
- use a PAC file with IPv6 enabled without breaking IP rules
- customize proxy and direct domain lists for a PAC file
- avoid sending domestic traffic through the proxy client for better performance
- configure system proxy for iOS, macOS, Windows, or Android

## When to choose
- you want system-level PAC-based proxy routing instead of routing all traffic through a proxy client
- you need IPv6-compatible CN IP matching in a PAC file
- you want a small, maintainable PAC file with weekly-updated GeoIP data

## When to avoid
- you need full traffic routing rules inside Clash, Surge, or Xray rather than a PAC file
- you need ad blocking or privacy filtering built into your proxy rules
- you cannot handle DNS pollution yourself, since this project does not solve it

## Facets
- artifact type: cli-tool
- maturity: active
- function: proxy, networking, cli, developer-tools
- domain: censorship-circumvention, networking, privacy
- platform: cross-platform, windows, cli
- tags: pac, proxy-auto-config, gfw, geoip, cnip, ipv6, clash, v2ray, surge, shadowrocket, command-line, macos, android, ios

## Member repositories
- zhiyi7/gfw-pac (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:06.979743+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:08:11.931893+00:00, confidence not recorded.
  - readme: https://github.com/zhiyi7/gfw-pac (fetched 2026-08-28T04:04:06.979743+00:00, sha 5ccd75db0536)
- Data as of 2026-08-30T08:39:29.467469+00:00.
