{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5ffdd5c3-6bce-45ce-bd6c-30c09b581f81",
    "slug": "bun-websocket-game-server",
    "name": "Bun WebSocket Game Server",
    "description": "Multiplayer WebSocket relay server with rooms and msgpack. Bun-native.",
    "url": "https://railway.com/deploy/bun-websocket-game-server",
    "upstream": {
      "repo_url": "https://github.com/mavisakalyan/bun-ws-gameserver"
    }
  },
  "services": [
    {
      "name": "bun-ws-gameserver",
      "source": {
        "repo": "https://github.com/mavisakalyan/bun-ws-gameserver"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "bun-ws-gameserver",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SNAPSHOT_HZ",
      "service": "bun-ws-gameserver",
      "description": "Provide a value for SNAPSHOT_HZ.",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "KEEPALIVE_MS",
      "service": "bun-ws-gameserver",
      "description": "Provide a value for KEEPALIVE_MS.",
      "secret": false,
      "strategy": "default",
      "default": "30000"
    },
    {
      "key": "ALLOWED_ORIGINS",
      "service": "bun-ws-gameserver",
      "description": "Provide a value for ALLOWED_ORIGINS.",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "MAX_PLAYERS_PER_ROOM",
      "service": "bun-ws-gameserver",
      "description": "Provide a value for MAX_PLAYERS_PER_ROOM.",
      "secret": false,
      "strategy": "default",
      "default": "50"
    },
    {
      "key": "MAX_MESSAGES_PER_SECOND",
      "service": "bun-ws-gameserver",
      "description": "Provide a value for MAX_MESSAGES_PER_SECOND.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "bun-websocket-game-server"
      }
    },
    "cli": "railway deploy --template bun-websocket-game-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5ffdd5c3-6bce-45ce-bd6c-30c09b581f81",
            "serializedConfig": {
              "services": {
                "ea396330-9b80-471b-9c2e-93d2d44e3d30": {
                  "name": "bun-ws-gameserver",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "repo": "mavisakalyan/bun-ws-gameserver",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "8080"
                    },
                    "SNAPSHOT_HZ": {
                      "defaultValue": "20"
                    },
                    "KEEPALIVE_MS": {
                      "defaultValue": "30000"
                    },
                    "ALLOWED_ORIGINS": {
                      "defaultValue": "*"
                    },
                    "MAX_PLAYERS_PER_ROOM": {
                      "defaultValue": "50"
                    },
                    "MAX_MESSAGES_PER_SECOND": {
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "bun-ws-gameserver",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T12:12:54.843Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_9586a66b8ccf4e709b8c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 83,
    "typical_build_seconds": 20,
    "typical_start_seconds": 10,
    "slowest_service": "bun-ws-gameserver"
  }
}
