The Compatibility Engine

Will this charger, cable, version or PC part work together? Rule-based checks with margins.

W

Charging mode.

More options
W

Semver mode. npm syntax.

PC mode.

W
W
W
W
%

Try an example: · ·

More about this tool

Part of Paperwell Contracts, safety & accessibility

How it works

Three deterministic checks: (1) USB-C charging – the real maximum power from charger, cable and device per the USB Power Delivery rules; (2) software versions – whether versions satisfy an npm-style semver range (^, ~, x-ranges, hyphen ranges, ||); (3) PC builds – CPU socket, RAM generation, slots and power-supply headroom.

  • Charging: with USB PD on both sides the standard power range allows 5/9/15/20 V at 3 A (≤ 60 W with a standard cable) and 20 V at 5 A (≤ 100 W) with a 5 A e-marked cable; above 100 W (28/36/48 V, ≤ 240 W) needs charger, device AND cable to support PD 3.1 EPR. Without PD on both sides the assumed ceiling is USB-C 5 V / 3 A = 15 W. Expected maximum = minimum of charger, device and that limit.
  • Semver: npm range semantics (^ caret, ~ tilde, x-ranges, hyphen ranges, || alternatives, comparator sets); prereleases only match ranges that mention a prerelease of the same version.
  • PC: sockets must match exactly (case-insensitive); RAM generation must match; modules ≤ slots; recommended PSU = (CPU + GPU + other) × (1 + headroom%).

Use this tool in an app

These free programs for your browser have this tool built in, next to everything else the task needs.

  • Paperwell Document studio: PDFs, OCR, redaction, forms & contract reading

    Your paperwork in one dossier: PDF tools, OCR, redaction, forms and contract reading.

    Open Paperwell

Related tools

  • FileFit – Can this app open, edit or convert that file format? Verified facts with sources.
  • File Format Doctor – Find out what a file really is from its bytes, why it will not open and how to convert it.

How to use The Compatibility Engine

Check whether a USB-C charger, cable and device will charge at full speed, whether versions match a semver range, and whether PC parts fit together.

What it is for

Three everyday "will this work?" questions come down to rules, not opinions:

  1. Charging: you have a USB-C charger, a cable and a laptop or phone. How many watts will actually flow, and which part is the bottleneck?
  2. Semver: your package.json says "node": "^18.17.0 || >=20.5.0". Which of the versions installed on your servers satisfy it?
  3. PC build: do the CPU and motherboard sockets match, is the RAM the right generation, and is the power supply big enough?

Each mode returns pass/fail checks with an explanation and, where useful, a margin. It only knows what you type: no product database, no proprietary fast-charge protocols, no BIOS support lists (a matching socket doesn't guarantee support for the exact CPU).

Worked example

140 W laptop on a 100 W charger. Charger 100 W with USB PD, device 140 W with PD and EPR, standard 3 A USB-C cable. The result: expected charging power up to 60 W, bottleneck: cable / USB PD standard power range. The charger can do 100 W and the laptop wants 140 W, but a 3 A cable caps USB PD at 20 V × 3 A = 60 W. The "Full speed" check fails with a margin of −80 W. The "Above 100 W" check explains that you'd need PD 3.1 EPR on the charger, the device and a 240 W EPR cable.

Node.js engine range ^18.17.0 || >=20.5.0 against six versions: 3 of 6 satisfy. 18.20.4, 20.11.1 and 22.1.0 pass. 18.16.1 and 20.4.0 fail, and so does 22.0.0-rc.1, because a prerelease only matches a range that mentions a prerelease of the same version. Highest satisfying: 22.1.0.

AM5 gaming PC: AM5 CPU on an AM5 board, DDR5 on DDR5, 2 modules in 4 slots, 120 W CPU + 285 W GPU + 75 W other = 480 W estimated load. With 30% headroom, rounded up to the next 50 W, the recommendation is 650 W. The 650 W PSU passes with a margin of exactly 0 W.

How to read the result

  • compatible is the overall verdict. In charging mode it means "charges at full requested speed", so a phone that charges slower than its maximum still counts as not compatible.
  • checks list each rule with pass/fail and a plain-language detail.
  • marginW shows how many watts you have to spare (positive) or are missing (negative).
  • In charging mode, limits list the ceiling of each part. The lowest one is the bottleneck, and replacing it is the cheapest fix.
  • In PC mode, estimatedLoadW and recommendedPsuW show the arithmetic behind the PSU check.

Tips and common mistakes

  • For laptops above 60 W, the cable matters as much as the charger. You need a 5 A e-marked cable for up to 100 W and an EPR (240 W) cable above that.
  • On multi-port chargers, enter the per-port output you'll actually get, not the total printed on the box.
  • Without USB PD on both sides the tool assumes basic USB-C 5 V / 3 A = 15 W. Vendor-specific fast-charge modes are not modelled.
  • Semver mode uses npm semantics, which differ from Python's PEP 440 or Maven.
  • A 0 W PSU margin passes, but only just. Raise the headroom if you plan to overclock or upgrade the GPU.

FAQ

Why does my 100 W charger only give 60 W?

Because the cable is the weakest link. Standard USB-C cables are rated for 3 A, which caps USB PD at 60 W. A 5 A e-marked cable lifts the limit to 100 W if charger and device both support it.

Why doesn't a release candidate satisfy >=20.5.0?

In npm semantics, prereleases like 22.0.0-rc.1 are excluded from ranges unless the range names a prerelease of the same major.minor.patch, so unstable builds aren't picked up by accident.

Where does the 30% PSU headroom come from?

It's a rule of thumb for load spikes and efficiency, not a standard, and you can change it.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://compatibilityengine.usefulweb.site/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://compatibilityengine.usefulweb.site/mcp · tool name compatibility_engine
Example request
curl -s -X POST https://compatibilityengine.usefulweb.site/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{"mode":"charging","chargerW":100,"chargerPd":true,"deviceW":140,"devicePd":true,"deviceEpr":true,"cable":"usb-c-3a"}'
Feedback · ideas & bug reports welcome