{
  "manifest_version": "1.0.0",
  "template": {
    "id": "240f587c-2cd1-43dc-9a4e-4a8425efb209",
    "slug": "spacetimedb-20",
    "name": "SpacetimeDB 2.0",
    "description": "A performant real-time backend framework and database for apps and games.",
    "url": "https://railway.com/deploy/spacetimedb-20",
    "upstream": {
      "image": "clockworklabs/spacetime"
    }
  },
  "services": [
    {
      "name": "SpacetimeDB",
      "source": {
        "image": "clockworklabs/spacetime"
      },
      "needs_volume": true,
      "volume_mount_path": "/stdb",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "SpacetimeDB",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "SpacetimeDB",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "spacetimedb-20"
      }
    },
    "cli": "railway deploy --template spacetimedb-20",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "240f587c-2cd1-43dc-9a4e-4a8425efb209",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "5324f9ab-fb62-4646-9f2a-b6812893841e": {
                  "icon": "https://raw.githubusercontent.com/clockworklabs/SpacetimeDB/refs/heads/master/images/dark/logo.svg",
                  "name": "SpacetimeDB",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"spacetime start --data-dir=/stdb/data --listen-addr 0.0.0.0:${PORT}\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "clockworklabs/spacetime"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "3000"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "5324f9ab-fb62-4646-9f2a-b6812893841e": {
                      "mountPath": "/stdb"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "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-18T10:42:49.880Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_3b517004ba684e668615",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 50,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "SpacetimeDB"
  }
}
