{
  "manifest_version": "1.0.0",
  "template": {
    "id": "13ec61fd-57bc-48cc-8950-a8b3d715b005",
    "slug": "nanollm",
    "name": "nanollm",
    "description": "Lightweight LLM gateway with web admin and persistent storage.",
    "url": "https://railway.com/deploy/nanollm",
    "upstream": {
      "repo_url": "https://github.com/sunwu51/nanollm"
    }
  },
  "services": [
    {
      "name": "nanollm",
      "source": {
        "repo": "https://github.com/sunwu51/nanollm"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "NANOLLM_STORAGE",
      "service": "nanollm",
      "description": "Provide a value for NANOLLM_STORAGE.",
      "secret": false,
      "strategy": "default",
      "default": "sqlite"
    },
    {
      "key": "NANOLLM_AUTH_TOKEN",
      "service": "nanollm",
      "description": "Provide a value for NANOLLM_AUTH_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NANOLLM_MAX_OLD_SPACE_SIZE",
      "service": "nanollm",
      "description": "Provide a value for NANOLLM_MAX_OLD_SPACE_SIZE.",
      "secret": false,
      "strategy": "default",
      "default": "700"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nanollm"
      }
    },
    "cli": "railway deploy --template nanollm",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "13ec61fd-57bc-48cc-8950-a8b3d715b005",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "bb36505b-955b-45ef-af1d-d0fef939adbf": {
                  "icon": null,
                  "name": "nanollm",
                  "deploy": {
                    "startCommand": "",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "sunwu51/nanollm",
                    "branch": "master",
                    "rootDirectory": null
                  },
                  "variables": {
                    "NANOLLM_STORAGE": {
                      "defaultValue": "sqlite"
                    },
                    "NANOLLM_AUTH_TOKEN": {
                      "isOptional": false,
                      "defaultValue": "{{NANOLLM_AUTH_TOKEN}}"
                    },
                    "NANOLLM_MAX_OLD_SPACE_SIZE": {
                      "isOptional": false,
                      "defaultValue": "700"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "bb36505b-955b-45ef-af1d-d0fef939adbf": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "nanollm",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-01T16:15:23.143Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-01T14:08:18.377Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_818c0d7a5adb45b19118",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 131,
    "typical_build_seconds": 93,
    "typical_start_seconds": 10,
    "slowest_service": "nanollm"
  }
}
