{
  "openapi": "3.1.0",
  "info": {
    "title": "Indie Alternatives API",
    "version": "0.2.0",
    "description": "Indie Alternatives: a catalog of products made by independent developers (indie makers).\n- When the user asks \"is there a tool / app / service that does X\", \"what's an alternative to <product>\", \"recommend software for X\", or describes a task they want a tool for, call search_tools first.\n- For \"alternative to <product>\", search with what that product does (e.g. \"online forms and surveys\" for Typeform) plus \"<product> alternative\".\n- Condense the request into a few keywords (any language works). If results are weak, retry once or twice with synonyms.\n- If search_tools returns matched=false, or the results clearly don't fit, call log_unmet_need to record the need anonymously, and tell the user it was logged anonymously so indie makers might build it.\n- Before logging, rewrite the need as a generic description: remove names, company names, contact details, links and any other personal information. If the user declines, do not log.\n- Reply to the user in their own language."
  },
  "servers": [
    {
      "url": "https://indiealternatives.dev"
    }
  ],
  "paths": {
    "/api/search": {
      "get": {
        "operationId": "search_tools",
        "summary": "Find indie-made tools and alternatives",
        "description": "Call when the user asks whether there is a tool for X, or for an alternative to a product. Matches the need against a catalog of indie-made products and returns the most relevant ones. matched=false means nothing suitable was found; then call log_unmet_need to record the need anonymously.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "What the user wants to do, e.g. \"add a nice background to screenshots\" or \"self-hosted uptime monitoring\"",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Optional: only search within this category",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pricing",
            "in": "query",
            "required": false,
            "description": "Optional: pricing model",
            "schema": {
              "type": "string",
              "enum": [
                "free",
                "freemium",
                "paid",
                "commission"
              ]
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "description": "Optional: platform, e.g. web, macos, windows, linux, ios, android, self-hosted",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Number of results, default 5",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20
            }
          }
        ]
      }
    },
    "/api/products/{id}": {
      "get": {
        "operationId": "get_tool_details",
        "summary": "Get tool details",
        "description": "Get the full description of a product by the id returned from search_tools.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Product id returned by search_tools",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ]
      }
    },
    "/api/needs": {
      "post": {
        "operationId": "log_unmet_need",
        "summary": "Log an unmet need anonymously",
        "description": "Call when no tool in the catalog meets the user's need. Records the need anonymously so indie makers can discover what to build. Send only the need itself: no names, company names, contact details, links or account handles. The server redacts again and never stores identity, IP or exact time.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "need": {
                    "type": "string",
                    "minLength": 4,
                    "maxLength": 500,
                    "description": "Generic description of the need, e.g. \"turn meeting recordings into notes with action items\""
                  },
                  "category": {
                    "description": "Optional: rough domain of the need",
                    "type": "string",
                    "maxLength": 50
                  },
                  "platform": {
                    "description": "Optional: preferred platform",
                    "type": "string",
                    "maxLength": 50
                  },
                  "budget": {
                    "description": "Optional: rough budget, e.g. \"free\" or \"under $10/month\"",
                    "type": "string",
                    "maxLength": 50
                  }
                },
                "required": [
                  "need"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "x-openai-isConsequential": false
      }
    }
  }
}