{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c3cf4beb-6873-49db-8097-97c24c6769ff",
    "slug": "adarkroom",
    "name": "A Dark Room",
    "description": "Minimalist text adventure that grows from one button in a dark room",
    "url": "https://railway.com/deploy/adarkroom",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/adarkroom-railway"
    }
  },
  "services": [
    {
      "name": "adarkroom",
      "source": {
        "repo": "https://github.com/gridalpha/adarkroom-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "adarkroom",
      "description": "HTTP port nginx listens on",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ADR_REF",
      "service": "adarkroom",
      "description": "Upstream git ref to build",
      "secret": false,
      "strategy": "default",
      "default": "main"
    },
    {
      "key": "NGINX_ENVSUBST_FILTER",
      "service": "adarkroom",
      "description": "Limit config substitution to PORT",
      "secret": false,
      "strategy": "default",
      "default": "^PORT$"
    },
    {
      "key": "NGINX_ENTRYPOINT_WORKER_PROCESSES_AUTOTUNE",
      "service": "adarkroom",
      "description": "Size workers from cgroup quota",
      "secret": false,
      "strategy": "default",
      "default": "1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "adarkroom"
      }
    },
    "cli": "railway deploy --template adarkroom",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c3cf4beb-6873-49db-8097-97c24c6769ff",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "575abce2-dcb0-4f73-af66-55bcc7e4ae53": {
                  "icon": "https://raw.githubusercontent.com/doublespeakgames/adarkroom/main/img/adr.png",
                  "name": "adarkroom",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/adarkroom-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port nginx listens on",
                      "defaultValue": "8080"
                    },
                    "ADR_REF": {
                      "isOptional": true,
                      "description": "Upstream git ref to build",
                      "defaultValue": "main"
                    },
                    "NGINX_ENVSUBST_FILTER": {
                      "isOptional": false,
                      "description": "Limit config substitution to PORT",
                      "defaultValue": "^PORT$"
                    },
                    "NGINX_ENTRYPOINT_WORKER_PROCESSES_AUTOTUNE": {
                      "isOptional": false,
                      "description": "Size workers from cgroup quota",
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "adarkroom",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-10-06T04:14:42.626Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-05T09:24:17.121Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c17f8e95437e4bc187e4",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 79,
    "typical_build_seconds": 21,
    "typical_start_seconds": 10,
    "slowest_service": "adarkroom"
  }
}
