Integrations

Use CPLfix where you already work — inside KiCad, or in CI on every push. Both call the same free API as the web tool, so the numbers can never disagree with it. No accounts, no API key, no payment.

KiCad plugin

An ActionPlugin for KiCad 7, 8 and 9. It reads the open board, sends the placement to the CPLfix API, and saves the corrected CPL next to the board file as cpl-<cm>.csv.

Install

  1. Once published: KiCad → Plugin and Content Manager → search CPLfix → Install. (Submission to the official KiCad addons repository is still pending — see below.)
  2. Manual install (works today): download the release zip, unzip it, and copy the contents of plugins/ into your KiCad plugins folder (%APPDATA%\kicad\<version>\plugins\ on Windows, ~/Library/Application Support/kicad/<version>/plugins/ on macOS, ~/.local/share/kicad/<version>/plugins/ on Linux). Restart the PCB editor.

Use

  1. Open your board (.kicad_pcb).
  2. Tools → External Plugins → CPLfix — Normalize CPL Rotations.
  3. Pick the target CM (default JLCPCB). The plugin saves cpl-<cm>.csv next to the board, plus <board>.cplfix.pos (the exact placement text it sent), and shows a short report: parts normalized, rotations changed, warnings.

Source, tests and the PCM package (metadata, build script) live in the CPLfix repo under app/kicad-plugin/. KiCad 10 drops the SWIG runtime this plugin uses, so an IPC-API version will be needed for KiCad 10+.

GitHub Action — normalize-cpl-action

Normalize your placement files on every push. The action POSTs each .pos/.csv to the free CPLfix API and writes the corrected CSV next to the source as <name>.normalized.csv. Warnings never fail the run — only API errors or unparseable files do.

Use it in your hardware repo

- name: Normalize CPL for JLCPCB
  id: cplfix
  uses: Dw4pres/cplfix/github-action@v1
  with:
    cm: jlcpcb            # jlcpcb | pcbway | macrofab
    files: '**/*.pos'

Inputs & outputs

  • Inputs: cm (default jlcpcb), files (default **/*.pos), api-base (default https://cplfix.com), output-suffix (default .normalized.csv).
  • Outputs: files-normalized, parts-changed, warnings. A per-file summary is written to the run's summary page.

Source and an example test workflow live in the CPLfix repo under app/github-action/. The runner is a single Python 3 stdlib script (urllib only) — no npm install, no curl/jq, same script on ubuntu/windows/macos runners.

Publishing status

Source for both integrations lives in the public repo: github.com/Dw4pres/cplfix. Still pending: a v1.0.0 release zip for the plugin, submitted to the KiCad addons repository, and a v1 tag for the action published to the GitHub Marketplace.