{
  "manifest": {
    "spekkr": 1,
    "id": "juno/subscriptions",
    "name": "Plans and subscriptions",
    "summary": "Paid plans through a payment provider's hosted checkout, kept in step by webhooks, with one function that says what an account may use.",
    "keywords": [
      "stripe",
      "paddle",
      "payments",
      "billing",
      "pricing",
      "saas",
      "entitlements",
      "recurring",
      "trial",
      "upgrade"
    ],
    "kind": "app part",
    "version": "0.1.2",
    "author": {
      "id": "juno",
      "name": "Juno"
    },
    "targets": {
      "platforms": [
        "web",
        "backend"
      ]
    },
    "customize": {
      "settings": [
        {
          "key": "app_name",
          "label": "App name",
          "default": "Acme",
          "help": "Shown on the pages."
        },
        {
          "key": "trial_days",
          "label": "Days a trial lasts",
          "default": "14",
          "help": "A whole number. 0 means no trial."
        },
        {
          "key": "grace_days",
          "label": "Days of access after a failed payment",
          "default": "7",
          "help": "A whole number."
        }
      ],
      "options": [
        {
          "key": "free_plan",
          "label": "A free plan",
          "default": true,
          "help": "An account with no subscription is on the free plan. Off means it can use nothing paid."
        }
      ],
      "swaps": [
        {
          "key": "database",
          "label": "Database",
          "choices": [
            "postgres",
            "sqlite"
          ],
          "default": "postgres"
        },
        {
          "key": "payer",
          "label": "Who pays",
          "choices": [
            "user",
            "workspace"
          ],
          "default": "user",
          "help": "One person, or a workspace that several people share."
        },
        {
          "key": "provider",
          "label": "Payment provider",
          "choices": [
            "stripe",
            "other"
          ],
          "default": "stripe",
          "help": "For other, the spec builds the interface and a stand-in, and you write the adapter."
        }
      ]
    },
    "files": [
      {
        "path": "spec.md",
        "about": "Requirements and acceptance criteria."
      },
      {
        "path": "design.md",
        "about": "Data model, rules and flows."
      },
      {
        "path": "tasks.md",
        "about": "Build tasks in order, each with a check."
      }
    ],
    "needs": {
      "accounts": [
        "A payment provider account"
      ],
      "permissions": [
        "shell",
        "network"
      ]
    },
    "demo": {
      "screenshots": [
        "shots/pricing-desktop.png",
        "shots/return-confirming.png",
        "shots/billing-past-due.png",
        "shots/pricing-mobile.png"
      ]
    },
    "safety": {
      "secrets": [
        "DATABASE_URL",
        "PAYMENT_PROVIDER_KEY",
        "PAYMENT_WEBHOOK_SECRET"
      ]
    },
    "lineage": {},
    "changelog": [
      {
        "version": "0.1.2",
        "date": "2026-11-15",
        "note": "Names what it builds."
      },
      {
        "version": "0.1.1",
        "date": "2026-11-14",
        "note": "Says \"person\" where it said \"buyer\"."
      },
      {
        "version": "0.1.0",
        "date": "2026-11-14",
        "note": "Moved from dwrtz/subscriptions."
      }
    ]
  },
  "links": {
    "page": "./",
    "bundle": "bundle.tar.gz",
    "files": {
      "design.md": "files/design.md",
      "shots/billing-past-due.png": "files/shots/billing-past-due.png",
      "shots/pricing-desktop.png": "files/shots/pricing-desktop.png",
      "shots/pricing-mobile.png": "files/shots/pricing-mobile.png",
      "shots/return-confirming.png": "files/shots/return-confirming.png",
      "spec.md": "files/spec.md",
      "tasks.md": "files/tasks.md"
    }
  },
  "publishedBy": "juno",
  "uploaded": {
    "shots/billing-past-due.png": {
      "bytes": 35974,
      "type": "image/png"
    },
    "shots/pricing-desktop.png": {
      "bytes": 59145,
      "type": "image/png"
    },
    "shots/pricing-mobile.png": {
      "bytes": 64188,
      "type": "image/png"
    },
    "shots/return-confirming.png": {
      "bytes": 27097,
      "type": "image/png"
    }
  }
}
