{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f607b05a-5665-418e-ae37-bca113d022ee",
    "slug": "1FHSG9",
    "name": "Railway Ram Restart",
    "description": "Monitors ram usage and restarts when exceeded. Supports automatic restarts",
    "url": "https://railway.com/deploy/1FHSG9",
    "upstream": {
      "repo_url": "https://github.com/dClimate/railway-ram-restart"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "railway-ram-restart",
      "source": {
        "repo": "https://github.com/dClimate/railway-ram-restart"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "RAILWAY_API_TOKEN",
      "service": "railway-ram-restart",
      "description": "API token for railway",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TARGET_SERVICE_NAME",
      "service": "railway-ram-restart",
      "description": "The service name to target",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "1FHSG9"
      }
    },
    "cli": "railway deploy --template 1FHSG9",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f607b05a-5665-418e-ae37-bca113d022ee",
            "serializedConfig": {
              "services": {
                "038b25b5-93b7-41d2-a94c-d549f29920be": {
                  "name": "railway-ram-restart",
                  "deploy": {
                    "startCommand": "node index.js"
                  },
                  "source": {
                    "repo": "dClimate/railway-ram-restart",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "MAX_RAM_GB": {
                      "isOptional": true,
                      "description": "The ram limit to trigger restart. Base is 1GB",
                      "defaultValue": ""
                    },
                    "RAILWAY_API_TOKEN": {
                      "isOptional": false,
                      "description": "API token for railway",
                      "defaultValue": "{{RAILWAY_API_TOKEN}}"
                    },
                    "TARGET_SERVICE_NAME": {
                      "isOptional": false,
                      "description": "The service name to target",
                      "defaultValue": "{{TARGET_SERVICE_NAME}}"
                    },
                    "CRON_INTERVAL_RESTART": {
                      "isOptional": true,
                      "description": "How often it should restarted regardless of ram usage",
                      "defaultValue": ""
                    },
                    "MAX_RAM_CRON_INTERVAL_CHECK": {
                      "isOptional": true,
                      "description": "How often it should check the ram using cron",
                      "defaultValue": ""
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-13T04:14:39.446Z",
  "generator_version": "0.1.0"
}
