{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ef9f98d8-4f89-4684-ade2-3ac7dc97a6cf",
    "slug": "plexus",
    "name": "Plexus",
    "description": "Unified API gateway for multiple AI providers.",
    "url": "https://railway.com/deploy/plexus",
    "upstream": {
      "image": "ghcr.io/mcowger/plexus:2026.09.17.1@sha256:5ea46e2719a3adb1a93a25648878664d7dc24e0b47c9266e7c273f811c66657b"
    }
  },
  "services": [
    {
      "name": "Plexus",
      "source": {
        "image": "ghcr.io/mcowger/plexus:2026.09.17.1@sha256:5ea46e2719a3adb1a93a25648878664d7dc24e0b47c9266e7c273f811c66657b"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Plexus",
      "description": "HTTP server port.",
      "secret": false,
      "strategy": "default",
      "default": "4000"
    },
    {
      "key": "ADMIN_KEY",
      "service": "Plexus",
      "description": "Password for admin dashboard and management API. Server refuses to start if unset.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "Plexus",
      "description": "Connection string. Supports sqlite:// and postgres:// URIs.",
      "secret": false,
      "strategy": "default",
      "default": "sqlite:///app/data/plexus.db"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "Plexus",
      "description": "32-byte key for encrypting sensitive data at rest. Generated via: `openssl rand -hex 32`",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "plexus"
      }
    },
    "cli": "railway deploy --template plexus",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ef9f98d8-4f89-4684-ade2-3ac7dc97a6cf",
            "serializedConfig": {
              "services": {
                "f23c229c-4816-4417-8c99-5b8775d8acbc": {
                  "icon": "https://raw.githubusercontent.com/mcowger/plexus/refs/heads/main/docs/images/plexus_logo_transparent.png",
                  "name": "Plexus",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "ghcr.io/mcowger/plexus:2026.09.17.1@sha256:5ea46e2719a3adb1a93a25648878664d7dc24e0b47c9266e7c273f811c66657b"
                  },
                  "variables": {
                    "HOST": {
                      "isOptional": true,
                      "description": "Address to bind to.",
                      "defaultValue": ""
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server port.",
                      "defaultValue": "4000"
                    },
                    "DATA_DIR": {
                      "isOptional": true,
                      "description": "Directory for SQLite database.",
                      "defaultValue": ""
                    },
                    "ADMIN_KEY": {
                      "isOptional": false,
                      "description": "Password for admin dashboard and management API. Server refuses to start if unset.",
                      "defaultValue": "{{ADMIN_KEY}}"
                    },
                    "LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Verbosity: `error`, `warn`, `info`, `debug`, `silly`",
                      "defaultValue": ""
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Connection string. Supports sqlite:// and postgres:// URIs.",
                      "defaultValue": "sqlite:///app/data/plexus.db"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "32-byte key for encrypting sensitive data at rest. Generated via: `openssl rand -hex 32`",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4000": {
                        "port": 4000
                      }
                    }
                  },
                  "volumeMounts": {
                    "f23c229c-4816-4417-8c99-5b8775d8acbc": {
                      "mountPath": "/app/data",
                      "backupSchedules": [
                        "MONTHLY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Plexus",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "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-20T13:21:04.747Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d5d9c50e6599475ab374",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 77,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Plexus"
  }
}
