{
  "manifest_version": "1.0.0",
  "template": {
    "id": "642814a6-67e4-4a97-8f86-bb100e3d966f",
    "slug": "honorbox-webhook-relay",
    "name": "HonorBox Webhook Relay",
    "description": "Signed Stripe webhook relay for instant HonorBox GitHub fulfillment.",
    "url": "https://railway.com/deploy/honorbox-webhook-relay",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-honorbox-relay"
    }
  },
  "services": [
    {
      "name": "HonorBox Relay",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-honorbox-relay"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "HonorBox Relay",
      "description": "HTTP port used by Railway.",
      "secret": false,
      "strategy": "default",
      "default": "8787"
    },
    {
      "key": "GITHUB_REPO",
      "service": "HonorBox Relay",
      "description": "Private HonorBox ops repository in owner/name form.",
      "secret": false,
      "strategy": "default",
      "default": "owner/yourstore-ops"
    },
    {
      "key": "GITHUB_TOKEN",
      "service": "HonorBox Relay",
      "description": "Fine-grained token restricted to the HonorBox ops repository with Contents read/write.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GITHUB_EVENT_TYPE",
      "service": "HonorBox Relay",
      "description": "GitHub repository_dispatch event type.",
      "secret": false,
      "strategy": "default",
      "default": "honorbox_sale"
    },
    {
      "key": "STRIPE_WEBHOOK_SECRET",
      "service": "HonorBox Relay",
      "description": "Stripe endpoint signing secret beginning with whsec_.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "honorbox-webhook-relay"
      }
    },
    "cli": "railway deploy --template honorbox-webhook-relay",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "642814a6-67e4-4a97-8f86-bb100e3d966f",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "c154f7de-8dd4-45e5-b8cf-975e5380f6c4": {
                  "icon": "https://raw.githubusercontent.com/Honorboxx/honorbox/v0.5.1/assets/logo.svg",
                  "name": "HonorBox Relay",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 60,
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-honorbox-relay",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port used by Railway.",
                      "defaultValue": "8787"
                    },
                    "GITHUB_REPO": {
                      "isOptional": false,
                      "description": "Private HonorBox ops repository in owner/name form.",
                      "defaultValue": "owner/yourstore-ops"
                    },
                    "GITHUB_TOKEN": {
                      "isOptional": false,
                      "description": "Fine-grained token restricted to the HonorBox ops repository with Contents read/write.",
                      "defaultValue": "{{GITHUB_TOKEN}}"
                    },
                    "GITHUB_EVENT_TYPE": {
                      "isOptional": true,
                      "description": "GitHub repository_dispatch event type.",
                      "defaultValue": "honorbox_sale"
                    },
                    "STRIPE_WEBHOOK_SECRET": {
                      "isOptional": false,
                      "description": "Stripe endpoint signing secret beginning with whsec_.",
                      "defaultValue": "{{STRIPE_WEBHOOK_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8787": {
                        "port": 8787
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "HonorBox Relay",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T23:31:34.323Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_490df7efeac94495bf84",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 48,
    "typical_build_seconds": 20,
    "typical_start_seconds": 10,
    "slowest_service": "HonorBox Relay"
  }
}
