{
  "manifest_version": "1.0.0",
  "template": {
    "id": "78a20706-713b-460f-becd-314fbffc32c3",
    "slug": "omniroute-1",
    "name": "OmniRoute",
    "description": "OmniRoute — LLM gateway with provider routing, fallbacks, compression",
    "url": "https://railway.com/deploy/omniroute-1",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/railway-omniroute"
    }
  },
  "services": [
    {
      "name": "omniroute",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/railway-omniroute"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "omniroute",
      "description": "Port for Dashboard UI and API (single-port mode)",
      "secret": false,
      "strategy": "default",
      "default": "20128"
    },
    {
      "key": "DATA_DIR",
      "service": "omniroute",
      "description": "Data directory for SQLite database and storage (must match volume mount)",
      "secret": false,
      "strategy": "default",
      "default": "/app/data"
    },
    {
      "key": "JWT_SECRET",
      "service": "omniroute",
      "description": "JWT signing key for dashboard session tokens. Generate with: openssl rand -base64 48",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "API_KEY_SECRET",
      "service": "omniroute",
      "description": "Encryption key for API keys stored in the database. Generate with: openssl rand -hex 32",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INITIAL_PASSWORD",
      "service": "omniroute",
      "description": "Initial admin login password. Change this after first login via Dashboard → Settings → Security",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "omniroute-1"
      }
    },
    "cli": "railway deploy --template omniroute-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "78a20706-713b-460f-becd-314fbffc32c3",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "6800d262-fbc7-4faf-b9e5-31db1b80a1f8": {
                  "icon": null,
                  "name": "omniroute",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/railway-omniroute",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port for Dashboard UI and API (single-port mode)",
                      "defaultValue": "20128"
                    },
                    "DATA_DIR": {
                      "isOptional": false,
                      "description": "Data directory for SQLite database and storage (must match volume mount)",
                      "defaultValue": "/app/data"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "JWT signing key for dashboard session tokens. Generate with: openssl rand -base64 48",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "API_KEY_SECRET": {
                      "isOptional": false,
                      "description": "Encryption key for API keys stored in the database. Generate with: openssl rand -hex 32",
                      "defaultValue": "{{API_KEY_SECRET}}"
                    },
                    "INITIAL_PASSWORD": {
                      "isOptional": false,
                      "description": "Initial admin login password. Change this after first login via Dashboard → Settings → Security",
                      "defaultValue": "{{INITIAL_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:20128": {
                        "port": 20128
                      }
                    }
                  },
                  "volumeMounts": {
                    "6800d262-fbc7-4faf-b9e5-31db1b80a1f8": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T01:11:21.943Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d85977d08d0448388e2a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 134,
    "typical_build_seconds": 74,
    "typical_start_seconds": 30,
    "slowest_service": "omniroute"
  }
}
