# featured.schema.json

> The Featured carousel at the top of Discover's Explore (config-schema §8c Featured; scale-and-speed Phase 4, 2026-10-20): curated by manolab and published with seeds/feature.mjs through PUT /v1/directory/featured, signed over its JCS bytes (without signature) with one of the account's publisher keys.

The Featured carousel at the top of Discover's Explore (config-schema §8c Featured; scale-and-speed Phase 4, 2026-10-20): curated by manolab and published with seeds/feature.mjs through PUT /v1/directory/featured, signed over its JCS bytes (without signature) with one of the account's publisher keys.

Raw file: https://streamliner.work/schema/v1/featured.schema.json

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://streamliner.work/schema/v1/featured.schema.json",
  "title": "Discover's featured picks (streamline.featured/1)",
  "description": "The Featured carousel at the top of Discover's Explore (config-schema §8c *Featured*; scale-and-speed Phase 4, 2026-10-20): curated by manolab and published with `seeds/feature.mjs` through `PUT /v1/directory/featured`, signed over its JCS bytes (without `signature`) with one of the account's publisher keys. Only an account on the Worker's PUBLIC_PUBLISHERS sets it, and each pick is one of its own public listings. The Worker keeps it as `p/featured.json` and draws the storefront's `featured` from it.",
  "type": "object",
  "required": [
    "schema",
    "account",
    "items",
    "signer",
    "signature"
  ],
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "$ref": "defs.schema.json#/$defs/schemaRef"
    },
    "schema": {
      "const": "streamline.featured/1",
      "description": "`streamline.featured/1`."
    },
    "account": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "The account the picks belong to (the Worker refuses another)."
    },
    "updated": {
      "type": "string",
      "format": "date-time",
      "description": "When the picks were signed (RFC 3339)."
    },
    "items": {
      "type": "array",
      "maxItems": 12,
      "description": "The picks, at most 12; the carousel shows them by `order`, then as listed.",
      "items": {
        "type": "object",
        "required": [
          "listing",
          "pitch"
        ],
        "additionalProperties": false,
        "properties": {
          "listing": {
            "type": "string",
            "pattern": "^[a-z2-7]{26}$",
            "patternErrorMessage": "a listing id: 26 lower-case base32 characters",
            "description": "One of the account's public listings."
          },
          "pitch": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "One line the carousel shows under the name."
          },
          "color": {
            "type": "object",
            "required": [
              "light",
              "dark"
            ],
            "additionalProperties": false,
            "properties": {
              "light": {
                "$ref": "defs.schema.json#/$defs/hex"
              },
              "dark": {
                "$ref": "defs.schema.json#/$defs/hex"
              }
            },
            "description": "The card's hero color in light and dark appearance (else the streamline's own color)."
          },
          "order": {
            "type": "integer",
            "description": "Where it shows in the carousel (smallest first)."
          }
        }
      }
    },
    "signer": {
      "type": "object",
      "required": [
        "keyId",
        "pub"
      ],
      "additionalProperties": false,
      "properties": {
        "keyId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "description": "The publisher key's id, as the account's enrolment names it."
        },
        "pub": {
          "$ref": "defs.schema.json#/$defs/base64url32",
          "description": "Its public half."
        }
      },
      "description": "The account publisher key that signed the picks."
    },
    "signature": {
      "type": "object",
      "required": [
        "alg",
        "keyId",
        "sig"
      ],
      "additionalProperties": false,
      "properties": {
        "alg": {
          "const": "Ed25519",
          "description": "Always `Ed25519`."
        },
        "keyId": {
          "type": "string",
          "description": "The signer's keyId."
        },
        "sig": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{86}$",
          "description": "base64url Ed25519 signature over the JCS bytes of the document without `signature`."
        }
      },
      "description": "Ed25519 over the JCS bytes of the document without `signature`, by `signer`."
    }
  }
}

```
