{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4a1701d4-4263-47e8-ae60-fd9d11f2af4c",
    "slug": "next-ai-draw-io",
    "name": "next-ai-draw-io",
    "description": "AI-powered draw.io diagram generation and editing app built with Next.js",
    "url": "https://railway.com/deploy/next-ai-draw-io",
    "upstream": {
      "image": "ghcr.io/dayuanjiang/next-ai-draw-io:latest"
    }
  },
  "services": [
    {
      "name": "next-ai-draw-io",
      "source": {
        "image": "ghcr.io/dayuanjiang/next-ai-draw-io:latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "next-ai-draw-io",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "AI_MODEL",
      "service": "next-ai-draw-io",
      "description": "Provide a value for AI_MODEL.",
      "secret": false,
      "strategy": "default",
      "default": "gpt-4o"
    },
    {
      "key": "AI_PROVIDER",
      "service": "next-ai-draw-io",
      "description": "Provide a value for AI_PROVIDER.",
      "secret": false,
      "strategy": "default",
      "default": "openai"
    },
    {
      "key": "TEMPERATURE",
      "service": "next-ai-draw-io",
      "description": "Provide a value for TEMPERATURE.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "ENABLE_PDF_INPUT",
      "service": "next-ai-draw-io",
      "description": "Provide a value for ENABLE_PDF_INPUT.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NEXT_PUBLIC_SELFHOSTED",
      "service": "next-ai-draw-io",
      "description": "Provide a value for NEXT_PUBLIC_SELFHOSTED.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NEXT_PUBLIC_DRAWIO_BASE_URL",
      "service": "next-ai-draw-io",
      "description": "Provide a value for NEXT_PUBLIC_DRAWIO_BASE_URL.",
      "secret": false,
      "strategy": "default",
      "default": "https://embed.diagrams.net"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "next-ai-draw-io"
      }
    },
    "cli": "railway deploy --template next-ai-draw-io",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4a1701d4-4263-47e8-ae60-fd9d11f2af4c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "6f60ed8c-f6a9-4009-a6da-52bc4ec9acd6": {
                  "icon": null,
                  "name": "next-ai-draw-io",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/dayuanjiang/next-ai-draw-io:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "3000"
                    },
                    "AI_MODEL": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "gpt-4o"
                    },
                    "AI_PROVIDER": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "openai"
                    },
                    "TEMPERATURE": {
                      "isOptional": false,
                      "defaultValue": "0"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": ""
                    },
                    "ENABLE_PDF_INPUT": {
                      "isOptional": false,
                      "defaultValue": "true"
                    },
                    "NEXT_PUBLIC_SELFHOSTED": {
                      "isOptional": false,
                      "defaultValue": "true"
                    },
                    "NEXT_PUBLIC_DRAWIO_BASE_URL": {
                      "isOptional": false,
                      "defaultValue": "https://embed.diagrams.net"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "next-ai-draw-io",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-18T08:40:18.347Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_52e9c366a7cd438290ff",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
