pacparser

A C library to parse Proxy Auto-Config (PAC) files

Embeds QuickJS to evaluate PAC scripts and implements all standard PAC helper functions. Ships with a C API, Python bindings, and the pactester CLI. Licensed under LGPL.

C Library Python Bindings QuickJS Engine pactester CLI LGPL
Online Tester

Evaluate your PAC file directly in the browser — no install needed, 100% client-side.

01 PAC File

proxy.pac

02 Test Parameters

DNS Mappings optional

Mock dnsResolve() and isResolvable() — map hostnames to IP addresses