# JinnLynn/genpac

PAC/Dnsmasq/Wingy file Generator,  working with gfwlist, support custom rules.

Repository: https://github.com/JinnLynn/genpac
Canonical: https://ross.abutalabs.com/products/genpac
Language: Python
License: MIT
License Family: permissive
Topics: gfwlist, pypi, python, pac, gfw, dnsmasq, wingy
Last push: 2026-08-26T13:02:02+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 5231, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2187, forks 314 (observed 2026-08-28T04:06:23.770198+00:00)

## What it is
A Python CLI tool that converts the gfwlist blocked-domains list into configuration files for various proxy tools, including PAC, Dnsmasq, V2Ray, Shadowsocks, Surge, Quantumult X, Shadowrocket, and Wingy. It supports custom user rules, local/remote gfwlist sources, and templated output.

## Use cases
- generate a PAC file from gfwlist for browser proxy auto-config
- convert gfwlist into dnsmasq dns/ipset rules
- create v2ray routing rules from gfwlist with custom domains
- generate surge or quantumult x config rule lists
- maintain custom blocked-domain rules on top of gfwlist
- produce country IP lists for proxy routing

## When to choose
- you need proxy rule files in multiple formats from a single gfwlist source
- you want to add custom allow/deny domain rules to gfwlist
- you automate proxy config generation in scripts or CI

## When to avoid
- you need rules that match URL paths rather than domains
- you want a GUI proxy manager rather than a config generator
- you don't use gfwlist or any of the supported proxy formats

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, proxy, configuration-management, developer-tools
- domain: censorship-circumvention, networking, privacy
- platform: python, cli, cross-platform
- tags: gfwlist, pac, proxy-auto-config, dnsmasq, v2ray, shadowsocks, surge, quantumult-x, shadowrocket, custom-rules, command-line

## Member repositories
- JinnLynn/genpac (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:23.770198+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-30T02:47:52.385882+00:00, confidence not recorded.
  - readme: https://github.com/JinnLynn/genpac (fetched 2026-08-28T04:06:23.770198+00:00, sha 6fd69edc631e)
  - registry_pypi: https://pypi.org/pypi/genpac/json (fetched 2026-08-29T10:28:06.701928+00:00, sha 6dce98d6ccda)
- Data as of 2026-08-30T08:39:29.467469+00:00.
