
Pixellint
io.github.aleksUIXv0.31.12更新于 Oct 4, 2026
Validate pixels, postbacks, conversion API payloads, and tracking URLs with spec-backed findings.
概览
依据厂商规范校验广告像素、回传和转化 API 载荷,并返回助手可直接处理的结构化结果。
- 功能
- Pixellint 是一个面向测量工件(如跟踪 URL、回传和转化 API 载荷)的规范优先校验器。该 MCP 服务器提供三个工具:list_rulepacks、list_vendors(可按 category 或 host 过滤)以及 validate_artifact,后者接收工件类型、工件本身,以及可选的 claimed_vendor、expansion_state 和规则包选择。响应包含带稳定 ID、严重级别、证据等级和识别出的厂商的结构化结果,便于代理直接处理而无需解析文本。
- 适用场景
- 当助手需要检查像素、回传或转化 API 载荷是否符合厂商公开的参数约定时使用,例如跟踪配置的 QA 或投放变更上线前检查。也可用于把无法识别的跟踪主机归属到某个厂商。
- 运行要求
- 以本地 stdio 进程运行,通过 cargo install pixellint-mcp 安装。未声明任何账号、API 密钥或环境变量。仅支持桌面端,不提供托管 MCP 端点。
安装
在 SourceWeft 中
- 打开 控制台中的 Pixellint,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Pixellint
[Rust] [crates.io] [npm] [docs.rs] [license]
Pixellint is a spec-first validator for pixels, postbacks, conversion API payloads, and other measurement artifacts. It runs in a terminal, in CI, and in agents, and every finding carries a stable id, a severity, an evidence level, and the document it came from.
Broken pixels cost attribution, QA time, and campaign money. The tooling that exists is fragmented: vendor-specific helpers, enterprise tag auditors, and schema linters that know nothing about ad tech. Pixellint is the open validation layer underneath all of that.
Server-side events are checked in the body, one event at a time:
Install
Or paste a URL into the playground at pixellint.org, which runs the same engine in your browser. Artifacts you test may be stored; see privacy. Vendor contracts are at pixellint.org/packs/. Guides for pixels, conversion APIs, and consent are at pixellint.org/docs/.
Start with the contracts people actually hit:
- Conversion API validator
- Pixel not firing
- Conversions API not working
- What is a conversion API
- Reddit CAPI
- DART Floodlight tags
- Facebook Pixel Helper vs Network
- Pinterest standard events
Use it
QA
Validate an inline artifact, a file with @path, or stdin with -:
Callers that already extracted many URLs (Vastlint, an HTML adapter) pass them as a document. Identical values validate once:
extracted.json is the wrapper in
docs/MULTI_ARTIFACT_SCHEMA.md, or a JSON array
of URL strings. Pixellint does not parse VAST, HTML, or GTM.
If the artifact is still a template with unexpanded macros, say so, and macro rules adjust:
CI
pixellint validate exits 0 when the artifact is clean or only produced
warnings, 1 when any error-severity finding is present, and 2 on a usage or
input problem.
version selects the CLI release (auto follows the action's own v* tag).
Linux and macOS runners, x86_64 and aarch64. The Action downloads a prebuilt
tarball from GitHub Releases.
Or install the CLI:
Agents
pixellint-mcp speaks MCP over stdio and exposes three tools. It does not
send artifacts; there is no hosted MCP on pixellint.org. Playground artifacts
on pixellint.org may be stored; see pixellint.org/privacy.
-
MCP Registry name:
mcp-name: io.github.aleksUIX/pixellint -
list_rulepacks -
list_vendors, optionally filtered bycategoryor attributing a singlehost -
validate_artifact, takingartifact_kind,artifact, and optionalclaimed_vendor,expansion_state,rulepacks,except_rulepacks
Responses include the structured findings, the detected vendors, and a severity summary, so an agent can act on the result without parsing prose.
Node and the browser
Library
Rulepacks
core runs on every URL-like artifact. Vendor packs run only when the artifact
targets their endpoints, so you get vendor checks without asking for them, and
nothing fires on an endpoint it does not understand. A conversion API body has
no endpoint to go by, so those packs claim it by the shape of the payload.
Vendor directory
Rulepacks cover 133 endpoint families across 77 vendors. The vendor directory covers the rest by attribution: 120 vendor rows and 299 hosts, so an unrecognized pixel still gets a name. Full inventory: docs/STANDARDS.md.
Directory entries make one claim, that a host belongs to a vendor. They carry
no parameter contracts, the finding is always info, and attribution never
changes an exit code. See docs/VENDOR_DIRECTORY.md.
Select packs per run:
Full rule inventory with citations: docs/STANDARDS.md.
Evidence levels
Findings say where their authority comes from, and you can hold packs to different standards accordingly:
normative: a formal standard such as the WHATWG URL Standard or an RFCofficial_vendor: a parameter contract the vendor publishes, with the URLofficial_template: vendor-published templates or SDK behaviorecosystem_reference: consistent real-world behavior the vendor generates in its own UI but does not documentheuristic: Pixellint's judgment, labeled as such
The manifest loader refuses to compile a pack that claims official_vendor
without citing documentation.
Custom rulepacks
Rulepacks are data, not code. First-party vendor packs are written in the same JSON format you can write for an internal endpoint:
The format is documented in docs/RULEPACK_SCHEMA.md.
Private pixels that only need a name, not a parameter contract, belong in a directory overlay:
The overlay uses the same entry shape as the built-in directory. New hosts only; it cannot steal a first-party host. Contribute an upstream host through a PR: CONTRIBUTING.md.
What Pixellint does not do
- It does not extract artifacts from documents.
html,js, andgtmare not validation kinds; the CLI exits 2 if you pass them. Callers such as Vastlint parse VAST, HTML, or GTM containers and hand Pixellint the URLs they found.pixellint validate-manywraps those extracted URLs. The document result model is in docs/MULTI_ARTIFACT_SCHEMA.md. - It does not fire requests or check whether an endpoint responds.
- It does not auto-fix. Findings carry fix hints; applying them is on you.
Evidence
Every rule is backed by tests: unit tests in crates/pixellint-core/src/, a
golden corpus in fixtures/ with one directory per rulepack, and integration
tests that drive the real CLI binary and the real MCP stdio transport.
Benchmark
In-process engine speed over the golden corpus, D1-shaped synthetic pixels, and large validate-many batches:
See bench/README.md.
Docs
- Standards and rule inventory
- Vendor directory
- npm package
- Rulepack manifest schema
- Architecture
- Roadmap
- Multi-artifact output model
License
Apache-2.0. Pixellint is not affiliated with or endorsed by any vendor named in its rulepacks; see NOTICE.
来源:README.md,提交 8e445d5
工具
0版本历史
1- v0.31.12最新Oct 4, 2026

