{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9315f777-8543-4def-85e6-424a9b965746",
    "slug": "fruit-fly-brain",
    "name": "🪰 Fruit Fly Brain",
    "description": "Deploy and host your own 🪰 Fruit Fly Brain on Railway!",
    "url": "https://railway.com/deploy/fruit-fly-brain",
    "upstream": {
      "repo_url": "https://github.com/kadumedim/fly-brain-railway"
    }
  },
  "services": [
    {
      "name": "🪰 Fruit Fly",
      "source": {
        "repo": "https://github.com/kadumedim/fly-brain-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "AUTO_LOOP",
      "service": "🪰 Fruit Fly",
      "description": "0 to stop at first cycle, 1 to loop forever 🪰",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "WEB_IMAGE",
      "service": "🪰 Fruit Fly",
      "description": "Web app image 🪰",
      "secret": false,
      "strategy": "default",
      "default": "ghcr.io/kadumedim/fly-web:latest"
    },
    {
      "key": "RAILWAY_TOKEN",
      "service": "🪰 Fruit Fly",
      "description": "Your PROJECT token, create an empty project first! 🪰",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "🪰 Fruit Fly",
      "description": "For admin commands in dashboard 🪰",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "fruit-fly-brain"
      }
    },
    "cli": "railway deploy --template fruit-fly-brain",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9315f777-8543-4def-85e6-424a9b965746",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "6c14a438-9aca-404d-bcb0-a8a6863a123c": {
                  "icon": null,
                  "name": "🪰 Fruit Fly",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/kadumedim/fly-brain-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "AUTO_LOOP": {
                      "isOptional": false,
                      "description": "0 to stop at first cycle, 1 to loop forever 🪰",
                      "defaultValue": "1"
                    },
                    "WEB_IMAGE": {
                      "isOptional": false,
                      "description": "Web app image 🪰",
                      "defaultValue": "ghcr.io/kadumedim/fly-web:latest"
                    },
                    "RAILWAY_TOKEN": {
                      "isOptional": false,
                      "description": "Your PROJECT token, create an empty project first! 🪰",
                      "defaultValue": "{{RAILWAY_TOKEN}}"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "For admin commands in dashboard 🪰",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {},
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "6c14a438-9aca-404d-bcb0-a8a6863a123c": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T22:14:37.124Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-11T20:43:59.485Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d3f57cf52f7b4974bd8b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 37,
    "typical_build_seconds": 10,
    "typical_start_seconds": 10,
    "slowest_service": "🪰 Fruit Fly"
  }
}
