{
  "x402Version": 2,
  "id": 72368,
  "slug": "saylorinnovations-api-dev-semver",
  "resource": "https://saylorinnovations.com/api/dev/semver",
  "description": "Semantic version tools - compare two versions, check a version against an npm-style range such as ^1.2.0 or ~2.1, and compute the bumped next version",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "version": {
        "type": "string",
        "description": "Version identifier"
      },
      "major": {
        "type": "number",
        "description": "Major version number"
      },
      "minor": {
        "type": "number",
        "description": "Minor version number"
      },
      "patch": {
        "type": "number",
        "description": "Patch version number"
      },
      "is_stable": {
        "type": "boolean",
        "description": "True when this is stable"
      },
      "next": {
        "type": "object",
        "properties": {
          "patch": {
            "description": "Version after a patch bump",
            "type": [
              "string",
              "null"
            ]
          },
          "minor": {
            "description": "Version after a minor bump",
            "type": [
              "string",
              "null"
            ]
          },
          "major": {
            "description": "Version after a major bump",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "description": "Next item"
      },
      "note": {
        "type": "string",
        "description": "Caveat or context for reading the result"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      },
      "prerelease": {
        "description": "Pre-release tag, if any"
      },
      "comparison": {
        "description": "How the version compares with the second: older, newer or equal",
        "type": [
          "string",
          "null"
        ]
      },
      "relationship": {
        "description": "Size of the difference: major, minor or patch",
        "type": [
          "string",
          "null"
        ]
      },
      "bump": {
        "description": "Bump type requested",
        "type": [
          "string",
          "null"
        ]
      },
      "bumped": {
        "description": "Version after the bump",
        "type": [
          "string",
          "null"
        ]
      },
      "build_metadata": {
        "description": "Build metadata"
      },
      "compare_to": {
        "type": [
          "string",
          "null"
        ],
        "description": "Compare to"
      },
      "breaking_change_likely": {
        "type": [
          "boolean",
          "null"
        ],
        "description": "Breaking change likely"
      },
      "range": {
        "type": [
          "string",
          "null"
        ],
        "description": "Range covered by the data"
      },
      "satisfies_range": {
        "type": [
          "boolean",
          "null"
        ],
        "description": "Satisfies range"
      }
    },
    "required": [
      "version",
      "major",
      "next"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "bump": "minor",
            "compare_to": "1.10.0",
            "range": "^1.2.0",
            "version": "1.4.2"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "version": "1.4.2",
            "major": 1,
            "minor": 4,
            "patch": 2,
            "prerelease": null,
            "build_metadata": null,
            "is_stable": true,
            "compare_to": "1.10.0",
            "comparison": "older",
            "relationship": "minor difference",
            "breaking_change_likely": false,
            "range": "^1.2.0",
            "satisfies_range": true,
            "bump": "minor",
            "bumped": "1.5.0",
            "next": {
              "patch": "1.4.3",
              "minor": "1.5.0",
              "major": "2.0.0"
            },
            "note": "Semantic Versioning 2.0.0 precedence (build metadata ignored). Ranges support ^, ~, >=, <=, >, <, =, x-ranges, space (and) and || (or) like npm.",
            "source": "semver 2.0.0"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "bump": {
                    "type": "string",
                    "description": "optional major, minor, patch or prerelease"
                  },
                  "compare_to": {
                    "type": "string",
                    "description": "optional version to compare with"
                  },
                  "range": {
                    "type": "string",
                    "description": "optional npm-style range such as ^1.2.0, ~2.1, >=1.0.0 <2.0.0 || 3.x"
                  },
                  "version": {
                    "type": "string",
                    "description": "Semantic version, e.g. 1.4.2"
                  }
                },
                "required": [
                  "version"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "version": {
                    "type": "string",
                    "description": "Version identifier"
                  },
                  "major": {
                    "type": "number",
                    "description": "Major version number"
                  },
                  "minor": {
                    "type": "number",
                    "description": "Minor version number"
                  },
                  "patch": {
                    "type": "number",
                    "description": "Patch version number"
                  },
                  "is_stable": {
                    "type": "boolean",
                    "description": "True when this is stable"
                  },
                  "next": {
                    "type": "object",
                    "properties": {
                      "patch": {
                        "description": "Version after a patch bump",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "minor": {
                        "description": "Version after a minor bump",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "major": {
                        "description": "Version after a major bump",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "description": "Next item"
                  },
                  "note": {
                    "type": "string",
                    "description": "Caveat or context for reading the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  },
                  "prerelease": {
                    "description": "Pre-release tag, if any"
                  },
                  "comparison": {
                    "description": "How the version compares with the second: older, newer or equal",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "relationship": {
                    "description": "Size of the difference: major, minor or patch",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "bump": {
                    "description": "Bump type requested",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "bumped": {
                    "description": "Version after the bump",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "build_metadata": {
                    "description": "Build metadata"
                  },
                  "compare_to": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Compare to"
                  },
                  "breaking_change_likely": {
                    "type": [
                      "boolean",
                      "null"
                    ],
                    "description": "Breaking change likely"
                  },
                  "range": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Range covered by the data"
                  },
                  "satisfies_range": {
                    "type": [
                      "boolean",
                      "null"
                    ],
                    "description": "Satisfies range"
                  }
                },
                "required": [
                  "version",
                  "major",
                  "next"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "does version 1.4.2 satisfy",
    "compare two semantic versions",
    "bump a version number",
    "semver range check",
    "is 2.0.0-rc.1 newer than 1.9.9"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.938Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "bump": {
          "type": "string",
          "description": "optional major, minor, patch or prerelease"
        },
        "compare_to": {
          "type": "string",
          "description": "optional version to compare with"
        },
        "range": {
          "type": "string",
          "description": "optional npm-style range such as ^1.2.0, ~2.1, >=1.0.0 <2.0.0 || 3.x"
        },
        "version": {
          "type": "string",
          "description": "Semantic version, e.g. 1.4.2"
        }
      },
      "required": [
        "version"
      ]
    },
    "exampleResponse": {
      "version": "1.4.2",
      "major": 1,
      "minor": 4,
      "patch": 2,
      "prerelease": null,
      "build_metadata": null,
      "is_stable": true,
      "compare_to": "1.10.0",
      "comparison": "older",
      "relationship": "minor difference",
      "breaking_change_likely": false,
      "range": "^1.2.0",
      "satisfies_range": true,
      "bump": "minor",
      "bumped": "1.5.0",
      "next": {
        "patch": "1.4.3",
        "minor": "1.5.0",
        "major": "2.0.0"
      },
      "note": "Semantic Versioning 2.0.0 precedence (build metadata ignored). Ranges support ^, ~, >=, <=, >, <, =, x-ranges, space (and) and || (or) like npm.",
      "source": "semver 2.0.0"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "bump": "minor",
              "compare_to": "1.10.0",
              "range": "^1.2.0",
              "version": "1.4.2"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "version": "1.4.2",
              "major": 1,
              "minor": 4,
              "patch": 2,
              "prerelease": null,
              "build_metadata": null,
              "is_stable": true,
              "compare_to": "1.10.0",
              "comparison": "older",
              "relationship": "minor difference",
              "breaking_change_likely": false,
              "range": "^1.2.0",
              "satisfies_range": true,
              "bump": "minor",
              "bumped": "1.5.0",
              "next": {
                "patch": "1.4.3",
                "minor": "1.5.0",
                "major": "2.0.0"
              },
              "note": "Semantic Versioning 2.0.0 precedence (build metadata ignored). Ranges support ^, ~, >=, <=, >, <, =, x-ranges, space (and) and || (or) like npm.",
              "source": "semver 2.0.0"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "bump": {
                      "type": "string",
                      "description": "optional major, minor, patch or prerelease"
                    },
                    "compare_to": {
                      "type": "string",
                      "description": "optional version to compare with"
                    },
                    "range": {
                      "type": "string",
                      "description": "optional npm-style range such as ^1.2.0, ~2.1, >=1.0.0 <2.0.0 || 3.x"
                    },
                    "version": {
                      "type": "string",
                      "description": "Semantic version, e.g. 1.4.2"
                    }
                  },
                  "required": [
                    "version"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string",
                      "description": "Version identifier"
                    },
                    "major": {
                      "type": "number",
                      "description": "Major version number"
                    },
                    "minor": {
                      "type": "number",
                      "description": "Minor version number"
                    },
                    "patch": {
                      "type": "number",
                      "description": "Patch version number"
                    },
                    "is_stable": {
                      "type": "boolean",
                      "description": "True when this is stable"
                    },
                    "next": {
                      "type": "object",
                      "properties": {
                        "patch": {
                          "description": "Version after a patch bump",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "minor": {
                          "description": "Version after a minor bump",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "major": {
                          "description": "Version after a major bump",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "description": "Next item"
                    },
                    "note": {
                      "type": "string",
                      "description": "Caveat or context for reading the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    },
                    "prerelease": {
                      "description": "Pre-release tag, if any"
                    },
                    "comparison": {
                      "description": "How the version compares with the second: older, newer or equal",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "relationship": {
                      "description": "Size of the difference: major, minor or patch",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "bump": {
                      "description": "Bump type requested",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "bumped": {
                      "description": "Version after the bump",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "build_metadata": {
                      "description": "Build metadata"
                    },
                    "compare_to": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Compare to"
                    },
                    "breaking_change_likely": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "Breaking change likely"
                    },
                    "range": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Range covered by the data"
                    },
                    "satisfies_range": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "Satisfies range"
                    }
                  },
                  "required": [
                    "version",
                    "major",
                    "next"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/dev/semver?version=1.4.2&compare_to=1.10.0&range=%5E1.2.0&bump=minor",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "version": "string",
    "major": 0,
    "minor": 0,
    "patch": 0,
    "is_stable": true,
    "next": {
      "patch": "string",
      "minor": "string",
      "major": "string"
    },
    "note": "string",
    "source": "string",
    "prerelease": null,
    "comparison": "string",
    "relationship": "string",
    "bump": "string",
    "bumped": "string",
    "build_metadata": null,
    "compare_to": "string",
    "breaking_change_likely": true,
    "range": "string",
    "satisfies_range": true
  }
}