{
  "manifest_version": "1.0.0",
  "template": {
    "id": "32902af1-43ba-40db-91ec-f2840007783b",
    "slug": "supermemory-with-cloudflare-zero-trust",
    "name": "Supermemory with Cloudflare Zero Trust",
    "description": "Supermemory memory engine with Cloudflare Zero Trust Access protection.",
    "url": "https://railway.com/deploy/supermemory-with-cloudflare-zero-trust",
    "upstream": {
      "repo_url": "https://github.com/supermemoryai/supermemory"
    }
  },
  "services": [
    {
      "name": "supermemory",
      "source": {
        "repo": "https://github.com/supermemoryai/supermemory"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/.supermemory",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "NODE_ENV",
      "service": "supermemory",
      "description": "Environment (development or production).",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "OPENAI_MODEL",
      "service": "supermemory",
      "description": "OpenAI model name (e.g., gpt-4o, gpt-4-turbo). Ignored if using Ollama.",
      "secret": false,
      "strategy": "default",
      "default": "gpt-4o"
    },
    {
      "key": "SUPERMEMORY_PORT",
      "service": "supermemory",
      "description": "Port Supermemory listens on.",
      "secret": false,
      "strategy": "default",
      "default": "6767"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "supermemory-with-cloudflare-zero-trust"
      }
    },
    "cli": "railway deploy --template supermemory-with-cloudflare-zero-trust",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "32902af1-43ba-40db-91ec-f2840007783b",
            "serializedConfig": {
              "services": {
                "328ef245-b904-43a6-9c0c-edc80b3d7c8a": {
                  "icon": "https://supermemory.ai/favicon.ico",
                  "name": "supermemory",
                  "deploy": {
                    "numReplicas": 1,
                    "startCommand": "supermemory-server",
                    "healthcheckPath": "/health",
                    "healthcheckTimeout": 30
                  },
                  "source": {
                    "repo": "supermemoryai/supermemory"
                  },
                  "variables": {
                    "NODE_ENV": {
                      "isOptional": true,
                      "description": "Environment (development or production).",
                      "defaultValue": "production"
                    },
                    "OLLAMA_MODEL": {
                      "isOptional": true,
                      "description": "Ollama model name (e.g., gpt-oss:20b). Only used if OLLAMA_BASE_URL is set."
                    },
                    "OPENAI_MODEL": {
                      "isOptional": true,
                      "description": "OpenAI model name (e.g., gpt-4o, gpt-4-turbo). Ignored if using Ollama.",
                      "defaultValue": "gpt-4o"
                    },
                    "CF_ACCOUNT_ID": {
                      "isOptional": true,
                      "description": "Cloudflare Account ID for Zero Trust policies."
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "OpenAI API key for LLM access (gpt-4, gpt-4o, etc.). Leave empty to use local model via Ollama."
                    },
                    "OLLAMA_BASE_URL": {
                      "isOptional": true,
                      "description": "Ollama endpoint URL for local LLM (e.g., http://localhost:11434). Use this for fully offline operation."
                    },
                    "SUPERMEMORY_PORT": {
                      "isOptional": true,
                      "description": "Port Supermemory listens on.",
                      "defaultValue": "6767"
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Anthropic API key for Claude models. Leave empty if using OpenAI or Ollama."
                    },
                    "CF_ACCESS_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Cloudflare Access Client ID for Zero Trust authentication."
                    },
                    "CF_ACCESS_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Cloudflare Access Client Secret for Zero Trust authentication."
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "supermemory-data": {
                      "sizeMB": 10240,
                      "mountPath": "/root/.supermemory"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "supermemory",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T21:37:02.760Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_09701a1a57a54c919fd3",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
