{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5edd14bd-fb8b-4cc8-85f5-54b69c08feb0",
    "slug": "retroassembly",
    "name": "RetroAssembly",
    "description": "The personal retro game collection cabinet in your browser.",
    "url": "https://railway.com/deploy/retroassembly",
    "upstream": {
      "image": "arianrhodsandlot/retroassembly:v7.260906.1627@sha256:bc9ab2a4601c89188f545c84f2a4e4aa21c20159ceff867e3406a1e7fa78690a"
    }
  },
  "services": [
    {
      "name": "RetroAssembly",
      "source": {
        "image": "arianrhodsandlot/retroassembly:v7.260906.1627@sha256:bc9ab2a4601c89188f545c84f2a4e4aa21c20159ceff867e3406a1e7fa78690a"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "RetroAssembly",
      "description": "Application port.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "RETROASSEMBLY_RUN_TIME_SKIP_HOME",
      "service": "RetroAssembly",
      "description": "Skip home page. Runtime-specific (false in dev).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RETROASSEMBLY_RUN_TIME_MSLEUTH_HOST",
      "service": "RetroAssembly",
      "description": "MSLeuth primary host.",
      "secret": false,
      "strategy": "default",
      "default": "https://msleuth.arianrhodsandlot.workers.dev/"
    },
    {
      "key": "RETROASSEMBLY_RUN_TIME_ALLOW_CRAWLER",
      "service": "RetroAssembly",
      "description": "Allow crawlers (runtime-specific).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RETROASSEMBLY_RUN_TIME_DATA_DIRECTORY",
      "service": "RetroAssembly",
      "description": "Data directory (e.g., SQLite DB). Resolved at runtime.",
      "secret": false,
      "strategy": "default",
      "default": "data"
    },
    {
      "key": "RETROASSEMBLY_RUN_TIME_STORAGE_DIRECTORY",
      "service": "RetroAssembly",
      "description": "Storage directory. Resolved at runtime.",
      "secret": false,
      "strategy": "default",
      "default": "data/storage"
    },
    {
      "key": "RETROASSEMBLY_RUN_TIME_MAX_UPLOAD_AT_ONCE",
      "service": "RetroAssembly",
      "description": "Max concurrent uploads. Default: 1000 on Node, 100 on Workers.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "RETROASSEMBLY_RUN_TIME_MSLEUTH_FALLBACK_HOST",
      "service": "RetroAssembly",
      "description": "MSLeuth fallback host.",
      "secret": false,
      "strategy": "default",
      "default": "https://msleuth.fly.dev/"
    },
    {
      "key": "RETROASSEMBLY_RUN_TIME_SKIP_HOME_IF_LOGGED_IN",
      "service": "RetroAssembly",
      "description": "Skip home if logged in. Default: true on Node, false on Workers.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "retroassembly"
      }
    },
    "cli": "railway deploy --template retroassembly",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5edd14bd-fb8b-4cc8-85f5-54b69c08feb0",
            "serializedConfig": {
              "services": {
                "5875f50d-df98-484b-bc34-28c061796683": {
                  "icon": "https://raw.githubusercontent.com/arianrhodsandlot/retroassembly/main/public/assets/logo/logo-512x512.png",
                  "name": "RetroAssembly",
                  "source": {
                    "image": "arianrhodsandlot/retroassembly:v7.260906.1627@sha256:bc9ab2a4601c89188f545c84f2a4e4aa21c20159ceff867e3406a1e7fa78690a"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Application port.",
                      "defaultValue": "8000"
                    },
                    "RETROASSEMBLY_RUN_TIME_SKIP_HOME": {
                      "description": "Skip home page. Runtime-specific (false in dev).",
                      "defaultValue": "false"
                    },
                    "RETROASSEMBLY_RUN_TIME_MSLEUTH_HOST": {
                      "description": "MSLeuth primary host.",
                      "defaultValue": "https://msleuth.arianrhodsandlot.workers.dev/"
                    },
                    "RETROASSEMBLY_RUN_TIME_STORAGE_HOST": {
                      "isOptional": true,
                      "description": "External storage host (optional).",
                      "defaultValue": ""
                    },
                    "RETROASSEMBLY_RUN_TIME_SUPABASE_URL": {
                      "isOptional": true,
                      "description": "Supabase project URL.",
                      "defaultValue": ""
                    },
                    "RETROASSEMBLY_RUN_TIME_ALLOW_CRAWLER": {
                      "description": "Allow crawlers (runtime-specific).",
                      "defaultValue": "false"
                    },
                    "RETROASSEMBLY_RUN_TIME_MAX_ROM_COUNT": {
                      "isOptional": true,
                      "description": "Max ROM count. Default: empty on Node, 1000 on Workers.",
                      "defaultValue": ""
                    },
                    "RETROASSEMBLY_RUN_TIME_DATA_DIRECTORY": {
                      "description": "Data directory (e.g., SQLite DB). Resolved at runtime.",
                      "defaultValue": "data"
                    },
                    "RETROASSEMBLY_RUN_TIME_STORAGE_DIRECTORY": {
                      "description": "Storage directory. Resolved at runtime.",
                      "defaultValue": "data/storage"
                    },
                    "RETROASSEMBLY_RUN_TIME_SUPABASE_ANON_KEY": {
                      "isOptional": true,
                      "description": "Supabase anonymous public key.",
                      "defaultValue": ""
                    },
                    "RETROASSEMBLY_RUN_TIME_MAX_ROM_COUNT_2026": {
                      "isOptional": true,
                      "description": "Max ROM count (2026). Default: empty on Node, 200 on Workers.",
                      "defaultValue": ""
                    },
                    "RETROASSEMBLY_RUN_TIME_MAX_UPLOAD_AT_ONCE": {
                      "description": "Max concurrent uploads. Default: 1000 on Node, 100 on Workers.",
                      "defaultValue": "1000"
                    },
                    "RETROASSEMBLY_RUN_TIME_SUPERVISER_USER_IDS": {
                      "isOptional": true,
                      "description": "Supervisor user IDs (comma-separated).",
                      "defaultValue": ""
                    },
                    "RETROASSEMBLY_RUN_TIME_MSLEUTH_FALLBACK_HOST": {
                      "description": "MSLeuth fallback host.",
                      "defaultValue": "https://msleuth.fly.dev/"
                    },
                    "RETROASSEMBLY_RUN_TIME_SKIP_HOME_IF_LOGGED_IN": {
                      "description": "Skip home if logged in. Default: true on Node, false on Workers.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  },
                  "volumeMounts": {
                    "5875f50d-df98-484b-bc34-28c061796683": {
                      "mountPath": "/app/data",
                      "backupSchedules": [
                        "WEEKLY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "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-18T14:34:25.149Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ce72c6f3a37947608d2a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 79,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "RetroAssembly"
  }
}
