{
 "openapi": "3.1.0",
 "info": {
  "title": "Ripe API",
  "version": "1.0.0",
  "description": "Ripe checks the versions in a Dockerfile, compose file, CI workflow, package.json, pyproject, go.mod or .nvmrc against live release data: which ones are end of life, which get security fixes only, which are behind the latest patch, and whether each Docker tag really exists.",
  "contact": {
   "name": "Clawhard Studio",
   "url": "https://clawhard.com",
   "email": "support@clawhard.com"
  }
 },
 "servers": [
  {
   "url": "https://ripe.clawhard.com"
  }
 ],
 "paths": {
  "/api/v1/check_file": {
   "post": {
    "operationId": "check_file",
    "summary": "Check the versions pinned in a Dockerfile, compose file, package.json, pyproject or CI workflow (live end-of-life and…",
    "description": "Use when a Dockerfile, docker-compose/compose.yaml, Kubernetes manifest, GitHub Actions workflow, package.json, pyproject.toml, requirements.txt, go.mod, global.json, .nvmrc, .python-version, .tool-versions, mise.toml, Gemfile, composer.json or Terraform file has just been written or edited, or…",
    "x-full-description": "Use when a Dockerfile, docker-compose/compose.yaml, Kubernetes manifest, GitHub Actions workflow, package.json, pyproject.toml, requirements.txt, go.mod, global.json, .nvmrc, .python-version, .tool-versions, mise.toml, Gemfile, composer.json or Terraform file has just been written or edited, or the user asks whether the versions in it are current (signals: \"write a Dockerfile\", \"FROM node:18\", \"python:3.9-slim\", \"is this base image outdated\", \"end of life\", \"EOL\", \"upgrade the runtime\", \"which Node version\", \"does this tag exist\", \"manifest unknown\", \"engines\", \"requires-python\"). Reads every version pin with its line (FROM and image: references with build-arg defaults, engines/volta/packageManager, requires-python, go and toolchain directives, sdk.version, setup-* versions and matrices, and well-known frameworks such as Next.js, React, Django, Rails, Laravel), then checks each one live: support status on today's date from endoflife.date (supported, security fixes only, end of life, not released, no such version), the end-of-life date and days left, the latest patch in that line, the newest supported line and the oldest one still supported; for container images it also checks the base OS in the tag (alpine3.18, bookworm, jammy), deprecated official images, and that the tag really exists on its registry (Docker Hub, ghcr.io, mcr.microsoft.com, quay.io and others), and proposes a replacement tag that it confirmed exists. Returns findings with severity, line, message and fix, plus a fix_message. Example: {\"filename\":\"Dockerfile\",\"content\":\"FROM node:18-alpine3.18\\nRUN npm ci\\nFROM python:3.9-slim-buster\"}. Does not build images, resolve npm or PyPI dependency trees (packages are checked only when endoflife.date tracks them), or see private registries. Up to 100000 characters. Returns: {verdict: ok|warnings|fails, summary, kind, as_of, counts:{error, warning, note, ok}, findings:[{line, source, raw, ...{input, kind: pin|range|floating|product|image, product, product_label, version, cycle, cycle_label, status: supported|security_only|eol|not_released|unknown_version|unknown_product|floating|product, severity: error|warning|note|ok, lts, release_date, active_support_until, eol_date, days_left, eol_soon, extended_support_until, latest_in_cycle, latest_date, patch: latest|behind|ahead, recommended:{cycle, label, latest, lts, eol_date}, oldest_supported:{...}, message, link, image?:{image, registry, repository, tag, tag_exists: true|false|null, tag_status: found|tag_not_found|repo_not_found|unknown|not_checked, checks:[{what: version|base_os|tag|deprecated_image, ...}], suggestion?:{image, tag, verified}}}, fix?, fix_verified?}], fix_message (ready-to-apply list, null when clean), notes, data:{source: endoflife.date, generated_at, fetched_at, stale}, checked_at, open_url}",
    "x-openai-isConsequential": false,
    "responses": {
     "200": {
      "description": "Result. Always has \"ok\": true.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "ok": {
           "type": "boolean"
          }
         },
         "additionalProperties": true
        }
       }
      }
     },
     "400": {
      "description": "Bad input. {\"ok\":false,\"error\":\"...\"}"
     },
     "429": {
      "description": "Rate limited. Retry after the Retry-After header."
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "content": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100000,
          "description": "The text of the file."
         },
         "filename": {
          "type": "string",
          "maxLength": 300,
          "description": "File name or path, used to tell the file type: \"Dockerfile\", \"compose.yaml\", \".github/workflows/ci.yml\", \"package.json\", \"pyproject.toml\", \"go.mod\", \".nvmrc\"... Optional when kind is given or the content makes it obvious."
         },
         "kind": {
          "type": "string",
          "enum": [
           "auto",
           "dockerfile",
           "compose",
           "workflow",
           "kubernetes",
           "package.json",
           "composer.json",
           "pyproject.toml",
           "requirements.txt",
           "go.mod",
           "global.json",
           ".nvmrc",
           ".python-version",
           ".ruby-version",
           "runtime.txt",
           ".tool-versions",
           "mise.toml",
           "gemfile",
           "terraform"
          ],
          "description": "File type; default auto (from filename, then content)."
         },
         "as_of": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "description": "Judge support status on this date (YYYY-MM-DD). Default: today (UTC)."
         },
         "warn_days": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1095,
          "description": "Warn when end of life is this many days away or less. Default 180."
         },
         "check_tags": {
          "type": "boolean",
          "description": "Check Docker image tags exist on their registry (and verify the suggested replacement tag). Default true."
         }
        },
        "required": [
         "content"
        ]
       }
      }
     }
    }
   }
  },
  "/api/v1/check_versions": {
   "post": {
    "operationId": "check_versions",
    "summary": "Look up support status, end-of-life date and latest version for runtimes, frameworks, databases and Docker images (live)",
    "description": "Use when a version of a runtime, framework, database, OS or Docker image is about to be chosen or recommended, or the user asks whether a version is still supported, when it reaches end of life, what the latest version or current LTS is, or whether a Docker tag exists (signals: \"which Node version…",
    "x-full-description": "Use when a version of a runtime, framework, database, OS or Docker image is about to be chosen or recommended, or the user asks whether a version is still supported, when it reaches end of life, what the latest version or current LTS is, or whether a Docker tag exists (signals: \"which Node version should I use\", \"latest LTS\", \"is Python 3.9 still supported\", \"when does Postgres 14 go EOL\", \"is .NET 8 end of life\", \"latest Django\", \"does python:3.13-slim-trixie exist\", \"Ubuntu 22.04 support\"). Each item is free text: \"node 18\", \"python 3.9.18\", \"postgres:13-alpine\" (an image), \"django>=4.2\", \"ubuntu jammy\", \"lts/hydrogen\", or just a product name (\"nodejs\") for its supported lines and current pick. Data is fetched live from endoflife.date (about 490 products: languages, frameworks, databases, operating systems, cloud and infrastructure software); image tags are checked on their registry. Returns per item the matched release line, status on today's date (supported, security fixes only, end of life, not released, no such version), LTS flag, end-of-life date and days left, paid extended support date, latest patch and whether the given version is behind it, the recommended line and the oldest still supported, and for images whether the tag exists plus a verified replacement. Example: {\"items\":[\"node 18\",\"python:3.9-slim\",\"postgres 14\",\"nextjs 13.4.1\",\"dotnet\"]}. Up to 40 items. Products endoflife.date does not track are reported as unknown, not guessed; for a whole file use ripe_check_file. Returns: {verdict, summary, as_of, counts, results:[{input, kind: pin|range|floating|product|image, product, product_label, version, cycle, cycle_label, status: supported|security_only|eol|not_released|unknown_version|unknown_product|floating|product, severity: error|warning|note|ok, lts, release_date, active_support_until, eol_date, days_left, eol_soon, extended_support_until, latest_in_cycle, latest_date, patch: latest|behind|ahead, recommended:{cycle, label, latest, lts, eol_date}, oldest_supported:{...}, message, link, image?:{image, registry, repository, tag, tag_exists: true|false|null, tag_status: found|tag_not_found|repo_not_found|unknown|not_checked, checks:[{what: version|base_os|tag|deprecated_image, ...}], suggestion?:{image, tag, verified}}}], data:{source, generated_at, fetched_at, stale}, checked_at, open_url}",
    "x-openai-isConsequential": false,
    "responses": {
     "200": {
      "description": "Result. Always has \"ok\": true.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "ok": {
           "type": "boolean"
          }
         },
         "additionalProperties": true
        }
       }
      }
     },
     "400": {
      "description": "Bad input. {\"ok\":false,\"error\":\"...\"}"
     },
     "429": {
      "description": "Rate limited. Retry after the Retry-After header."
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "items": {
          "type": "array",
          "minItems": 1,
          "maxItems": 40,
          "items": {
           "type": "string",
           "minLength": 1,
           "maxLength": 300
          },
          "description": "Products and versions, one per item: \"node 18\", \"python 3.12.4\", \"postgres:16-alpine\", \"django 5.1\", \"ubuntu 22.04\", \"dotnet\" (product only)."
         },
         "as_of": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "description": "Judge support status on this date (YYYY-MM-DD). Default: today (UTC)."
         },
         "warn_days": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1095,
          "description": "Warn when end of life is this many days away or less. Default 180."
         },
         "check_tags": {
          "type": "boolean",
          "description": "Check Docker image tags exist on their registry (and verify the suggested replacement tag). Default true."
         }
        },
        "required": [
         "items"
        ]
       }
      }
     }
    }
   }
  }
 },
 "externalDocs": {
  "description": "llms.txt",
  "url": "https://ripe.clawhard.com/llms.txt"
 }
}