{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a3623b11-f1cf-4cfd-b5db-e786d3993382",
    "slug": "republic-2126",
    "name": "Republic 2126",
    "description": "Nation-building mass game for National Education, Secondary 3-4.",
    "url": "https://railway.com/deploy/republic-2126",
    "upstream": {
      "repo_url": "https://github.com/ctss-joetay/republic-2126"
    }
  },
  "services": [
    {
      "name": "republic-2126",
      "source": {
        "repo": "https://github.com/ctss-joetay/republic-2126"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "republic-2126",
      "description": "Port the server listens on. Leave as it is.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "HALL_KEY",
      "service": "republic-2126",
      "description": "Hall key. Opens a hall room for the whole cohort. Give it to whoever runs the event. At least 8 characters, different from the admin password.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ADMIN_KEY",
      "service": "republic-2126",
      "description": "Admin password. Opens /admin, where you create class rooms. Keep it to yourself. At least 16 characters.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SETUP_CODE",
      "service": "republic-2126",
      "description": "Backup only. Leave as it is. Used by the /setup page if a password above was too short.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ROOM_TTL_DAYS",
      "service": "republic-2126",
      "description": "Days an untouched room is kept before it is cleared.",
      "secret": false,
      "strategy": "default",
      "default": "14"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "republic-2126"
      }
    },
    "cli": "railway deploy --template republic-2126",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a3623b11-f1cf-4cfd-b5db-e786d3993382",
            "serializedConfig": {
              "services": {
                "b12305ee-317e-4f41-8ff0-344fda09c0fa": {
                  "icon": "https://raw.githubusercontent.com/ctss-joetay/republic-2126/main/assets/icon.svg",
                  "name": "republic-2126",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "repo": "ctss-joetay/republic-2126",
                    "branch": "main"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port the server listens on. Leave as it is.",
                      "defaultValue": "8080"
                    },
                    "HALL_KEY": {
                      "isOptional": false,
                      "description": "Hall key. Opens a hall room for the whole cohort. Give it to whoever runs the event. At least 8 characters, different from the admin password.",
                      "defaultValue": "{{HALL_KEY}}"
                    },
                    "ADMIN_KEY": {
                      "isOptional": false,
                      "description": "Admin password. Opens /admin, where you create class rooms. Keep it to yourself. At least 16 characters.",
                      "defaultValue": "{{ADMIN_KEY}}"
                    },
                    "SETUP_CODE": {
                      "isOptional": true,
                      "description": "Backup only. Leave as it is. Used by the /setup page if a password above was too short.",
                      "defaultValue": "{{SETUP_CODE}}"
                    },
                    "ROOM_TTL_DAYS": {
                      "isOptional": true,
                      "description": "Days an untouched room is kept before it is cleared.",
                      "defaultValue": "14"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "b12305ee-317e-4f41-8ff0-344fda09c0fa": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "republic-2126",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-05T10:14:51.356Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-05T10:11:56.269Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b041625f431046a98035",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 120,
    "typical_build_seconds": 31,
    "typical_start_seconds": 10,
    "slowest_service": "republic-2126"
  }
}
