{
  "manifest_version": "1.0.0",
  "template": {
    "id": "aaee0c34-d44d-40a6-aed0-385215694fea",
    "slug": "cobalt-downloader",
    "name": "Cobalt Media Downloader",
    "description": "Download media from popular platforms with your own private web app.",
    "url": "https://railway.com/deploy/cobalt-downloader",
    "upstream": {
      "image": "ghcr.io/spotdemo4/cobalt-web:latest"
    }
  },
  "services": [
    {
      "name": "Web",
      "source": {
        "image": "ghcr.io/spotdemo4/cobalt-web:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "API",
      "source": {
        "image": "ghcr.io/imputnet/cobalt:latest"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Web",
      "description": "Public service port for the Cobalt Web UI",
      "secret": false,
      "strategy": "default",
      "default": "8787"
    },
    {
      "key": "WEB_HOST",
      "service": "Web",
      "description": "Public URL of the Cobalt Web UI",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "LOG_LEVEL",
      "service": "Web",
      "description": "Logging verbosity level",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "WEB_DEFAULT_API",
      "service": "Web",
      "description": "Default Cobalt API endpoint used by the Web UI",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "API",
      "description": "Public service port for the Cobalt API",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "API_URL",
      "service": "API",
      "description": "Public URL of the Cobalt API service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "API_PORT",
      "service": "API",
      "description": "Internal port used by the Cobalt API",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "LOG_LEVEL",
      "service": "API",
      "description": "Optional API logging verbosity level",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "CORS_WILDCARD",
      "service": "API",
      "description": "Allow requests from any origin",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "RATELIMIT_MAX",
      "service": "API",
      "description": "Maximum number of requests allowed within the rate-limit window",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "DURATION_LIMIT",
      "service": "API",
      "description": "Maximum supported media duration in seconds",
      "secret": false,
      "strategy": "default",
      "default": "10800"
    },
    {
      "key": "TUNNEL_LIFESPAN",
      "service": "API",
      "description": "Maximum tunnel lifetime in seconds",
      "secret": false,
      "strategy": "default",
      "default": "90"
    },
    {
      "key": "RATELIMIT_WINDOW",
      "service": "API",
      "description": "Rate-limit window duration in seconds",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "API_LISTEN_ADDRESS",
      "service": "API",
      "description": "Listen on all network interfaces",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "PROCESSING_PRIORITY",
      "service": "API",
      "description": "Processing priority used for media requests",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "TUNNEL_RATELIMIT_MAX",
      "service": "API",
      "description": "Maximum tunnel requests allowed within the tunnel rate-limit window",
      "secret": false,
      "strategy": "default",
      "default": "40"
    },
    {
      "key": "SESSION_RATELIMIT_MAX",
      "service": "API",
      "description": "Maximum requests allowed per session within its rate-limit window",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "FORCE_LOCAL_PROCESSING",
      "service": "API",
      "description": "Control whether media processing must always run locally",
      "secret": false,
      "strategy": "default",
      "default": "never"
    },
    {
      "key": "TUNNEL_RATELIMIT_WINDOW",
      "service": "API",
      "description": "Tunnel rate-limit window duration in seconds",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "SESSION_RATELIMIT_WINDOW",
      "service": "API",
      "description": "Session rate-limit window duration in seconds",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "cobalt-downloader"
      }
    },
    "cli": "railway deploy --template cobalt-downloader",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "aaee0c34-d44d-40a6-aed0-385215694fea",
            "serializedConfig": {
              "services": {
                "b2a66025-9f4e-47fa-8329-24ddd5630ae5": {
                  "icon": "https://res.cloudinary.com/dh2nt6hgh/image/upload/v1759035050/cobalt_logo_zlnnac.png",
                  "name": "Web",
                  "source": {
                    "image": "ghcr.io/spotdemo4/cobalt-web:latest"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Public service port for the Cobalt Web UI",
                      "defaultValue": "8787"
                    },
                    "WEB_HOST": {
                      "description": "Public URL of the Cobalt Web UI",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "LOG_LEVEL": {
                      "description": "Logging verbosity level",
                      "defaultValue": "info"
                    },
                    "WEB_DEFAULT_API": {
                      "description": "Default Cobalt API endpoint used by the Web UI",
                      "defaultValue": "https://${{API.RAILWAY_PUBLIC_DOMAIN}}/"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8787": {
                        "port": 8787
                      }
                    }
                  }
                },
                "b45efac1-b0db-4e8d-b9bf-10a337791115": {
                  "icon": "https://res.cloudinary.com/dh2nt6hgh/image/upload/v1759035050/cobalt_logo_zlnnac.png",
                  "name": "API",
                  "source": {
                    "image": "ghcr.io/imputnet/cobalt:latest"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Public service port for the Cobalt API",
                      "defaultValue": "9000"
                    },
                    "API_URL": {
                      "description": "Public URL of the Cobalt API service",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/"
                    },
                    "API_PORT": {
                      "description": "Internal port used by the Cobalt API",
                      "defaultValue": "9000"
                    },
                    "LOG_LEVEL": {
                      "description": "Optional API logging verbosity level",
                      "defaultValue": "info"
                    },
                    "CORS_WILDCARD": {
                      "description": "Allow requests from any origin",
                      "defaultValue": "1"
                    },
                    "RATELIMIT_MAX": {
                      "description": "Maximum number of requests allowed within the rate-limit window",
                      "defaultValue": "20"
                    },
                    "DURATION_LIMIT": {
                      "description": "Maximum supported media duration in seconds",
                      "defaultValue": "10800"
                    },
                    "TUNNEL_LIFESPAN": {
                      "description": "Maximum tunnel lifetime in seconds",
                      "defaultValue": "90"
                    },
                    "RATELIMIT_WINDOW": {
                      "description": "Rate-limit window duration in seconds",
                      "defaultValue": "60"
                    },
                    "API_LISTEN_ADDRESS": {
                      "description": "Listen on all network interfaces",
                      "defaultValue": "0.0.0.0"
                    },
                    "PROCESSING_PRIORITY": {
                      "description": "Processing priority used for media requests",
                      "defaultValue": "10"
                    },
                    "TUNNEL_RATELIMIT_MAX": {
                      "description": "Maximum tunnel requests allowed within the tunnel rate-limit window",
                      "defaultValue": "40"
                    },
                    "SESSION_RATELIMIT_MAX": {
                      "description": "Maximum requests allowed per session within its rate-limit window",
                      "defaultValue": "10"
                    },
                    "FORCE_LOCAL_PROCESSING": {
                      "description": "Control whether media processing must always run locally",
                      "defaultValue": "never"
                    },
                    "TUNNEL_RATELIMIT_WINDOW": {
                      "description": "Tunnel rate-limit window duration in seconds",
                      "defaultValue": "60"
                    },
                    "SESSION_RATELIMIT_WINDOW": {
                      "description": "Session rate-limit window duration in seconds",
                      "defaultValue": "60"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": false
  },
  "generated_at": "2026-09-09T19:33:37.214Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T06:23:31.904Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_8528dc7563a345a08858",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 97,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Web"
  }
}
