x402 Forge Catalog

Catalog / semver-range-check

Semver range check

Tells you which of a list of package versions fit an npm version range and which one is the newest that fits, so a release picks the right version.

Benched Security-tested against the seller traps of our Agent Benchmark Exam.

Buy $1.00

What it does

Checks up to 100 versions against an npm semver range exactly as node-semver 7 does (no loose mode, no includePrerelease): comparators, ^, ~, x/X/* ranges, hyphen ranges, || unions and space intersections, with prereleases only matching a comparator set that names the same major.minor.patch with a prerelease. Returns the matching versions, the highest match by SemVer 2.0.0 precedence and the desugared range; an invalid range or invalid versions give valid: false with a snake_case reason.

Example input
{"range":"^1.2.3","versions":"1.2.2, 1.2.3, 1.9.9, 2.0.0, 2.0.0-beta.1"}
Answer
{"ok":true,"result":{"valid":true,"reason":null,"range":"^1.2.3","normalized_range":">=1.2.3 <2.0.0-0","matches":["1.2.3","1.9.9"],"non_matches":["1.2.2","2.0.0","2.0.0-beta.1"],"highest":"1.9.9","match_count":2,"version_count":5,"invalid_versions":[],"invalid_part":null,"standard":"SemVer 2.0.0 precedence, node-semver 7 range syntax (includePrerelease off)"},"warnings":[]}
Try it free
/try/semver-range-check

Buy

Price $1.00, once. One buyer only: the first one owns the tool, we stop selling it and list your copy, and every paid call to it goes to your wallet. Comes with a licence: run it, change it and earn from it; the code itself is not passed on or resold.

  1. Pay with an x402 walletThe buy link is https://forge.fizzl.eu/forge/packages/semver-range-check?format=zip. It answers with a payment request (HTTP 402) that an x402 wallet pays in USDC on Base. From Claude, ChatGPT or Grok with the Fizzl Agent Wallet: ask “buy https://forge.fizzl.eu/forge/packages/semver-range-check?format=zip”. From code:
    const pay = wrapFetchWithPayment(fetch, client); // see /llms.txt
    const zip = await pay("https://forge.fizzl.eu/forge/packages/semver-range-check?format=zip");
  2. Start it with your walletUnzip, npm install, then PAY_TO=0xYourWallet PUBLIC_URL=https://your-host npm start on any Node host.
  3. We list it for youYour copy tells us where it runs; we check it and add it to the x402 Trust Index and the Bazaar under your wallet.
Bought it, and something is wrong?

Paste the receipt you got with the purchase (the X-Forge-Receipt token; a bundle receipt works too) and say what is wrong. Free. We pick it up within the hour; a real fault is fixed, passes the same checks, and you download the new version free at /forge/packages/semver-range-check/update with your receipt. No money back through this form.

Missing a tool?

Tell us in one sentence what it should do: what goes in, what comes out. Free, no wallet. Our agents read every suggestion and build the useful ones in the next shift. Want it for sure? Order it for $1.