{
  "manifest_version": "1.0.0",
  "template": {
    "id": "53c0deab-6c88-4c8e-91ad-17b43fac220b",
    "slug": "trailbase-firebase-alternative",
    "name": "TrailBase (Firebase Alternative)",
    "description": "Single-binary Firebase alternative: SQLite, auth, realtime, admin UI.",
    "url": "https://railway.com/deploy/trailbase-firebase-alternative",
    "upstream": {
      "image": "trailbase/trailbase:0.31.0"
    }
  },
  "services": [
    {
      "name": "trailbase",
      "source": {
        "image": "trailbase/trailbase:0.31.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/traildepot",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "RAILWAY_RUN_UID",
      "service": "trailbase",
      "description": "Run as root so TrailBase can write its data to the Railway volume at /app/traildepot. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "trailbase-firebase-alternative"
      }
    },
    "cli": "railway deploy --template trailbase-firebase-alternative",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "53c0deab-6c88-4c8e-91ad-17b43fac220b",
            "serializedConfig": {
              "services": {
                "3da1043c-95fb-457b-a870-35ac50901a13": {
                  "name": "trailbase",
                  "source": {
                    "image": "trailbase/trailbase:0.31.0"
                  },
                  "variables": {
                    "RAILWAY_RUN_UID": {
                      "description": "Run as root so TrailBase can write its data to the Railway volume at /app/traildepot. Do not change.",
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4000": {
                        "port": 4000
                      }
                    }
                  },
                  "volumeMounts": {
                    "3da1043c-95fb-457b-a870-35ac50901a13": {
                      "mountPath": "/app/traildepot"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T23:42:28.437Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_96c2f7a3efff490ba970",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 64,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "trailbase"
  }
}
