{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peerpush-com/json-schema/peerpush-com-product-schema.json",
  "title": "Product",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peerpush-com-openapi.yml#/components/schemas/Product",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "tagline": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "websiteUrl": {
      "type": "string",
      "format": "uri",
      "description": "PeerPush redirect to the product website, attributed to your API key. Use it for every link you render; it lands on the product site with PeerPush UTM tags."
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "Bare hostname of the product website (e.g. \"example.com\"), for display and matching"
    },
    "appStoreUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "PeerPush redirect to the Apple App Store listing, attributed to your API key, or null"
    },
    "playStoreUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "PeerPush redirect to the Google Play Store listing, attributed to your API key, or null"
    },
    "mcpServerUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Remote MCP server endpoint or registry/install page URL (raw, connect or install directly), or null"
    },
    "cliInstallCommand": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500,
      "description": "One-line CLI install command (e.g. \"npm install -g foo\"), or null"
    },
    "apiDocsUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "API documentation link (UTM-tagged), or null"
    },
    "peerpushUrl": {
      "type": "string",
      "format": "uri",
      "description": "URL to the product page on PeerPush"
    },
    "logoUrl": {
      "type": "string",
      "format": "uri"
    },
    "verified": {
      "type": "boolean",
      "description": "True when the owner links to this PeerPush listing from the product's own website, confirming they control it. Rechecked periodically and revoked if the link is removed."
    },
    "pricing": {
      "type": "object",
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "Free",
            "Freemium",
            "Subscription",
            "OneTime",
            "Paid",
            null
          ]
        },
        "startingPrice": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    },
    "platforms": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Web",
          "Api",
          "Desktop",
          "Mcp",
          "Cli",
          "Mobile"
        ]
      }
    },
    "useCases": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "audiences": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "community": {
      "type": "object",
      "properties": {
        "upvotes": {
          "type": "integer"
        },
        "followers": {
          "type": "integer"
        },
        "comments": {
          "type": "integer"
        },
        "rating": {
          "type": [
            "object",
            "null"
          ],
          "description": "Aggregate rating across public (non-owner) reviews; null when there are no public ratings",
          "properties": {
            "average": {
              "type": "number",
              "description": "Raw average star rating (1–5) over public reviews"
            },
            "count": {
              "type": "integer",
              "description": "Number of public (non-owner) ratings"
            },
            "weighted": {
              "type": "number",
              "description": "Confidence-weighted Bayesian rating that pulls low-sample ratings toward a global prior. Use this when ranking or recommending products by rating; it prevents a single 5★ from beating a 50×4.8★ average."
            }
          },
          "required": [
            "average",
            "count",
            "weighted"
          ]
        },
        "peerPushScore": {
          "type": "number"
        },
        "totalScore": {
          "type": "number"
        }
      }
    },
    "badges": {
      "type": "object",
      "properties": {
        "current": {
          "type": "string",
          "enum": [
            "Live",
            "Trending",
            "ProductOfTheDay",
            "ProductOfTheWeek",
            "ProductOfTheMonth"
          ]
        },
        "productOfTheDay": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "productOfTheWeek": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "productOfTheMonth": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "social": {
      "type": "object",
      "properties": {
        "twitterUsername": {
          "type": [
            "string",
            "null"
          ]
        },
        "linkedinUrl": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "publishedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "lastUpdatedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "uptime": {
      "type": "object",
      "description": "Result of the most recent uptime probes.",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "Unknown",
            "Online",
            "Degraded",
            "Offline"
          ],
          "description": "Online (all recent probes succeeded), Degraded (mixed results), Offline (all recent probes failed), Unknown (no probes recorded yet)."
        },
        "checkedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "required": [
        "status",
        "checkedAt"
      ]
    },
    "activeDeals": {
      "type": "array",
      "maxItems": 5,
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "percentOff": {
            "type": "integer"
          },
          "validUntil": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    },
    "recentUpdates": {
      "type": "array",
      "maxItems": 10,
      "description": "Up to 10 most recent product updates, newest first. Empty when the owner has posted none.",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "engagement": {
            "type": "object",
            "properties": {
              "upvotes": {
                "type": "integer"
              },
              "comments": {
                "type": "integer"
              }
            },
            "required": [
              "upvotes",
              "comments"
            ]
          }
        },
        "required": [
          "title",
          "content",
          "createdAt",
          "engagement"
        ]
      }
    }
  }
}