{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ccbab8c1-f9c7-4175-8580-710a705f8cc9",
    "slug": "node-red-2",
    "name": "Node-Red",
    "description": "Node-RED — flow-based low-code programming for APIs, devices, and bots",
    "url": "https://railway.com/deploy/node-red-2",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/railway-node-red"
    }
  },
  "services": [
    {
      "name": "node-red",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/railway-node-red"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "node-red",
      "description": "Port Node-RED listens on for the flow editor and HTTP API endpoints.",
      "secret": false,
      "strategy": "default",
      "default": "1880"
    },
    {
      "key": "FLOWS",
      "service": "node-red",
      "description": "Flow file to load from the /data volume. Defaults to flows.json.",
      "secret": false,
      "strategy": "default",
      "default": "flows.json"
    },
    {
      "key": "CREDENTIAL_SECRET",
      "service": "node-red",
      "description": "Encryption key for stored credentials. Auto-generated — keep this value stable to avoid re-entering credentials on redeploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NODE_RED_ENABLE_PROJECTS",
      "service": "node-red",
      "description": "Set to true to enable Git-backed projects for version-controlled flows.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "NODE_RED_ENABLE_SAFE_MODE",
      "service": "node-red",
      "description": "Set to true to start Node-RED without running any flows (safe mode for troubleshooting).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "node-red-2"
      }
    },
    "cli": "railway deploy --template node-red-2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ccbab8c1-f9c7-4175-8580-710a705f8cc9",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "c6bcddb9-7de7-4c33-aac9-eed55279ee2f": {
                  "icon": null,
                  "name": "node-red",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/railway-node-red",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Node-RED listens on for the flow editor and HTTP API endpoints.",
                      "defaultValue": "1880"
                    },
                    "FLOWS": {
                      "isOptional": false,
                      "description": "Flow file to load from the /data volume. Defaults to flows.json.",
                      "defaultValue": "flows.json"
                    },
                    "CREDENTIAL_SECRET": {
                      "isOptional": false,
                      "description": "Encryption key for stored credentials. Auto-generated — keep this value stable to avoid re-entering credentials on redeploy.",
                      "defaultValue": "{{CREDENTIAL_SECRET}}"
                    },
                    "NODE_RED_ENABLE_PROJECTS": {
                      "isOptional": false,
                      "description": "Set to true to enable Git-backed projects for version-controlled flows.",
                      "defaultValue": "false"
                    },
                    "NODE_RED_ENABLE_SAFE_MODE": {
                      "isOptional": false,
                      "description": "Set to true to start Node-RED without running any flows (safe mode for troubleshooting).",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "c6bcddb9-7de7-4c33-aac9-eed55279ee2f": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T02:11:10.494Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b50f6eb84b3242939c4f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 90,
    "typical_build_seconds": 41,
    "typical_start_seconds": 10,
    "slowest_service": "node-red"
  }
}
