{
  "manifest_version": "1.0.0",
  "template": {
    "id": "28e59405-24f7-4b16-90f9-e5356963c8cc",
    "slug": "promptfoo",
    "name": "Promptfoo",
    "description": "An open-source tool for testing, evaluating, and red-teaming LLM apps.",
    "url": "https://railway.com/deploy/promptfoo",
    "upstream": {
      "image": "ghcr.io/promptfoo/promptfoo:latest"
    }
  },
  "services": [
    {
      "name": "promptfoo",
      "source": {
        "image": "ghcr.io/promptfoo/promptfoo:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/promptfoo/.promptfoo",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "HOME",
      "service": "promptfoo",
      "description": "Home directory",
      "secret": false,
      "strategy": "default",
      "default": "/tmp"
    },
    {
      "key": "PORT",
      "service": "promptfoo",
      "description": "Port number",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "promptfoo"
      }
    },
    "cli": "railway deploy --template promptfoo",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "28e59405-24f7-4b16-90f9-e5356963c8cc",
            "serializedConfig": {
              "services": {
                "09047fa2-ae44-448b-aab8-c30dfbebb5ed": {
                  "name": "promptfoo",
                  "source": {
                    "image": "ghcr.io/promptfoo/promptfoo:latest"
                  },
                  "variables": {
                    "HOME": {
                      "isOptional": true,
                      "description": "Home directory",
                      "defaultValue": "/tmp"
                    },
                    "PORT": {
                      "isOptional": true,
                      "description": "Port number",
                      "defaultValue": "3000"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "OpenAI API key",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "09047fa2-ae44-448b-aab8-c30dfbebb5ed": {
                      "mountPath": "/home/promptfoo/.promptfoo"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T16:05:06.575Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_39c551ca6cc9478e8d6c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 107,
    "typical_build_seconds": 0,
    "typical_start_seconds": 51,
    "slowest_service": "promptfoo"
  }
}
