{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6114ae64-90ab-4c2b-9a8b-483f25c83d06",
    "slug": "shotcode-source",
    "name": "Screenshot to Code",
    "description": "Turn screenshots and Figma designs into editable frontend code with AI.",
    "url": "https://railway.com/deploy/shotcode-source",
    "upstream": {
      "repo_url": "https://github.com/just-deploy-it/screenshot-to-code-railway"
    }
  },
  "services": [
    {
      "name": "Web",
      "source": {
        "repo": "https://github.com/just-deploy-it/screenshot-to-code-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Backend",
      "source": {
        "repo": "https://github.com/just-deploy-it/screenshot-to-code-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Web",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "BACKEND_HOST",
      "service": "Web",
      "description": "Provide a value for BACKEND_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BACKEND_PORT",
      "service": "Web",
      "description": "Provide a value for BACKEND_PORT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BASIC_AUTH_PASSWORD",
      "service": "Web",
      "description": "Provide a value for BASIC_AUTH_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Backend",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "7001"
    },
    {
      "key": "LOCAL_ASSET_DIR",
      "service": "Backend",
      "description": "Provide a value for LOCAL_ASSET_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/data/local_assets"
    },
    {
      "key": "SCREENSHOT_TO_CODE_DATA_DIR",
      "service": "Backend",
      "description": "Provide a value for SCREENSHOT_TO_CODE_DATA_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "shotcode-source"
      }
    },
    "cli": "railway deploy --template shotcode-source",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6114ae64-90ab-4c2b-9a8b-483f25c83d06",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4ee327b4-7e26-477f-b367-de2eaa9ad191": {
                  "icon": null,
                  "name": "Web",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/just-deploy-it/screenshot-to-code-railway",
                    "rootDirectory": "web"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "8080"
                    },
                    "BACKEND_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{Backend.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "BACKEND_PORT": {
                      "isOptional": false,
                      "defaultValue": "${{Backend.PORT}}"
                    },
                    "BASIC_AUTH_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{BASIC_AUTH_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "9112229a-c52d-46d7-80bd-8f2fc2a6a2c8": {
                  "icon": null,
                  "name": "Backend",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/just-deploy-it/screenshot-to-code-railway",
                    "rootDirectory": "backend"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "7001"
                    },
                    "LOCAL_ASSET_DIR": {
                      "isOptional": false,
                      "defaultValue": "/data/local_assets"
                    },
                    "SCREENSHOT_TO_CODE_DATA_DIR": {
                      "isOptional": false,
                      "defaultValue": "/data"
                    }
                  },
                  "volumeMounts": {
                    "9112229a-c52d-46d7-80bd-8f2fc2a6a2c8": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Web",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-16T16:14:44.185Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-14T20:48:55.989Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b1adee7280134c41b752",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 219,
    "typical_build_seconds": 40,
    "typical_start_seconds": 10,
    "slowest_service": "Web"
  }
}
