{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f7b46630-45ac-4752-8a84-8d7e66b7817e",
    "slug": "autofigure-edit",
    "name": "autofigure-edit",
    "description": "AutoFigure-edit turns paper methods into editable SVG figures",
    "url": "https://railway.com/deploy/autofigure-edit",
    "upstream": {
      "image": "xiaosong233/autofigure-edit-railway:latest"
    }
  },
  "services": [
    {
      "name": "autofigure-edit",
      "source": {
        "image": "xiaosong233/autofigure-edit-railway:latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "autofigure-edit",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "HF_HOME",
      "service": "autofigure-edit",
      "description": "Provide a value for HF_HOME.",
      "secret": false,
      "strategy": "default",
      "default": "/app/.cache/huggingface"
    },
    {
      "key": "PYTHONUNBUFFERED",
      "service": "autofigure-edit",
      "description": "Provide a value for PYTHONUNBUFFERED.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "autofigure-edit"
      }
    },
    "cli": "railway deploy --template autofigure-edit",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f7b46630-45ac-4752-8a84-8d7e66b7817e",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "fb20e689-8075-4131-90b0-837f97405c26": {
                  "icon": null,
                  "name": "autofigure-edit",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "xiaosong233/autofigure-edit-railway:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "3000"
                    },
                    "HF_HOME": {
                      "isOptional": false,
                      "defaultValue": "/app/.cache/huggingface"
                    },
                    "PYTHONUNBUFFERED": {
                      "isOptional": false,
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-11T04:14:34.944Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T10:26:55.905Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_daf012edd6024960ad91",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 140,
    "typical_build_seconds": 0,
    "typical_start_seconds": 83,
    "slowest_service": "autofigure-edit"
  }
}
