{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9ec2ef4b-cceb-46e6-94e9-561abb094131",
    "slug": "laya",
    "name": "Laya | Self-Hosted Jev-Compatible Decision API",
    "description": "Open-weights Laya decision model behind a TypeSafe/Jev-compatible API",
    "url": "https://railway.com/deploy/laya",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/laya-railway"
    }
  },
  "services": [
    {
      "name": "Laya",
      "source": {
        "repo": "https://github.com/nomideusz/laya-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Laya",
      "description": "Port the API listens on behind the Railway domain - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "LAYA_MODELS",
      "service": "Laya",
      "description": "Checkpoints to load: english, multilingual, or both. multilingual alone uses about half the memory",
      "secret": false,
      "strategy": "default",
      "default": "english,multilingual"
    },
    {
      "key": "LAYA_API_KEY",
      "service": "Laya",
      "description": "Bearer token for every /v1 call - clients send it as TYPESAFE_API_KEY",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "laya"
      }
    },
    "cli": "railway deploy --template laya",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9ec2ef4b-cceb-46e6-94e9-561abb094131",
            "serializedConfig": {
              "services": {
                "828be89b-83d3-4ead-9cfd-433ad2322b3d": {
                  "icon": "https://raw.githubusercontent.com/NandhaKishorM/laya/573e5b62696ba441230cd6be71d593331b5d23af/assets/logo-mark.svg",
                  "name": "Laya",
                  "build": {
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/laya-railway",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the API listens on behind the Railway domain - leave as is",
                      "defaultValue": "8080"
                    },
                    "LAYA_MODELS": {
                      "isOptional": false,
                      "description": "Checkpoints to load: english, multilingual, or both. multilingual alone uses about half the memory",
                      "defaultValue": "english,multilingual"
                    },
                    "LAYA_API_KEY": {
                      "isOptional": false,
                      "description": "Bearer token for every /v1 call - clients send it as TYPESAFE_API_KEY",
                      "defaultValue": "{{LAYA_API_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Laya",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-22T20:51:27.471Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_db5b97d21943492da02d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 210,
    "typical_build_seconds": 142,
    "typical_start_seconds": 51,
    "slowest_service": "Laya"
  }
}
