{
  "name": "Connect MarketPlace",
  "short_name": "Connect",
  "description": "Buy, sell, and trade items on connect - A peer-to-peer marketplace for users worldwide with real-time messaging and secure payments",
  "start_url": "/",
  "scope": "/",
  "display": "standalone",
  "theme_color": "#dcf500",
  "background_color": "#f8f8f5",
  "orientation": "portrait-primary",
  "categories": ["shopping", "commerce"],
  "prefer_related_applications": false,
  "handle_links": "preferred",
  "shortcuts_to_display": 4,
  "launch_handler": {
    "client_mode": ["navigate-new", "auto"]
  },

  "icons": [
    {
      "src": "/images/logo.png",
      "sizes": "192x192",
      "type": "image/png",
      "purpose": "any"
    },
    {
      "src": "/images/logo.png",
      "sizes": "192x192",
      "type": "image/png",
      "purpose": "maskable"
    },
    {
      "src": "/images/logo.png",
      "sizes": "512x512",
      "type": "image/png",
      "purpose": "any"
    },
    {
      "src": "/images/logo.png",
      "sizes": "512x512",
      "type": "image/png",
      "purpose": "maskable"
    }
  ],

  "screenshots": [
    {
      "src": "/screenshots/home-mobile.png",
      "sizes": "540x720",
      "type": "image/png",
      "form_factor": "narrow",
      "label": "Browse items on Connect MarketPlace"
    },
    {
      "src": "/screenshots/product-mobile.png",
      "sizes": "540x720",
      "type": "image/png",
      "form_factor": "narrow",
      "label": "Product details and seller info"
    },
    {
      "src": "/screenshots/messages-mobile.png",
      "sizes": "540x720",
      "type": "image/png",
      "form_factor": "narrow",
      "label": "Real-time messaging with sellers"
    },
    {
      "src": "/screenshots/marketplace-desktop.png",
      "sizes": "1280x720",
      "type": "image/png",
      "form_factor": "wide",
      "label": "Desktop marketplace view"
    }
  ],

  "shortcuts": [
    {
      "name": "Browse Items",
      "short_name": "Browse",
      "description": "Search for items to buy",
      "url": "/?tab=home",
      "icons": [
        {
          "src": "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 192 192'><rect fill='%23dcf500' width='192' height='192'/><path fill='%23000' d='M50 55h92v15H50zm0 25h92v15H50zm0 25h92v15H50z'/></svg>",
          "sizes": "192x192",
          "type": "image/svg+xml"
        }
      ]
    },
    {
      "name": "Sell Item",
      "short_name": "Sell",
      "description": "List an item for sale",
      "url": "/sell",
      "icons": [
        {
          "src": "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 192 192'><rect fill='%23dcf500' width='192' height='192'/><circle fill='none' stroke='%23000' stroke-width='4' cx='96' cy='96' r='50'/><path fill='%23000' d='M96 56v80M76 76h40'/></svg>",
          "sizes": "192x192",
          "type": "image/svg+xml"
        }
      ]
    },
    {
      "name": "Messages",
      "short_name": "Messages",
      "description": "View buyer conversations",
      "url": "/messages",
      "icons": [
        {
          "src": "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 192 192'><rect fill='%23dcf500' width='192' height='192'/><path fill='%23000' d='M40 50h112c4.4 0 8 3.6 8 8v75c0 4.4-3.6 8-8 8h-50l-15 18v-18H40c-4.4 0-8-3.6-8-8V58c0-4.4 3.6-8 8-8z'/></svg>",
          "sizes": "192x192",
          "type": "image/svg+xml"
        }
      ]
    },
    {
      "name": "My Wishlist",
      "short_name": "Wishlist",
      "description": "View saved items",
      "url": "/wishlist",
      "icons": [
        {
          "src": "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 192 192'><rect fill='%23dcf500' width='192' height='192'/><path fill='%23000' d='M96 152l-40-35c-30-27-48-45-48-68 0-25 18-42 40-42 12 0 24 5 32 14 8-9 20-14 32-14 22 0 40 17 40 42 0 23-18 41-48 68l-40 35z'/></svg>",
          "sizes": "192x192",
          "type": "image/svg+xml"
        }
      ]
    }
  ],

  "share_target": {
    "action": "/share",
    "method": "POST",
    "enctype": "multipart/form-data",
    "params": {
      "title": "title",
      "text": "text",
      "url": "url",
      "files": [
        {
          "name": "media",
          "accept": ["image/*"]
        }
      ]
    }
  },

  "protocol_handlers": [
    {
      "protocol": "web+connect",
      "url": "/product/%s"
    }
  ],

  "file_handlers": [
    {
      "action": "/product-image-upload",
      "accept": {
        "image/*": [".jpg", ".jpeg", ".png", ".webp"]
      },
      "icons": [
        {
          "src": "/images/upload-icon.png",
          "sizes": "256x256"
        }
      ]
    }
  ],

  "launch_handler": {
    "client_mode": ["navigate-new", "auto"]
  }
}
