{
  "manifest_version": "1.0.0",
  "template": {
    "id": "789fd0e1-18ae-4aff-8d33-69ea8b934d65",
    "slug": "bolt-diy",
    "name": "Bolt.diy",
    "description": "Chat with an AI to build and run web apps in your browser",
    "url": "https://railway.com/deploy/bolt-diy",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/bolt-diy-railway"
    }
  },
  "services": [
    {
      "name": "auth-gateway",
      "source": {
        "repo": "https://github.com/gridalpha/bolt-diy-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "boltdiy",
      "source": {
        "repo": "https://github.com/gridalpha/bolt-diy-railway"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "auth-gateway",
      "description": "Port Caddy listens on",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "BOLT_UPSTREAM",
      "service": "auth-gateway",
      "description": "Private address of the app",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BOLT_AUTH_PASSWORD",
      "service": "auth-gateway",
      "description": "Password for the public URL",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "BOLT_AUTH_USERNAME",
      "service": "auth-gateway",
      "description": "Username for the public URL",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "auth-gateway",
      "description": "Selects the gateway build in the shared repo",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "auth-gateway",
      "description": "Lets in-flight proxied streams finish",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PORT",
      "service": "boltdiy",
      "description": "Port the app listens on",
      "secret": false,
      "strategy": "default",
      "default": "5173"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "boltdiy",
      "description": "Selects the app build in the shared repo",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile.app"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "boltdiy",
      "description": "Lets in-flight model streams finish",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "bolt-diy"
      }
    },
    "cli": "railway deploy --template bolt-diy",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "789fd0e1-18ae-4aff-8d33-69ea8b934d65",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "d1515059-187e-4300-8ad5-27d572d4ec9f": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/caddy.svg",
                  "name": "auth-gateway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/bolt-diy-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Caddy listens on",
                      "defaultValue": "8080"
                    },
                    "BOLT_UPSTREAM": {
                      "isOptional": false,
                      "description": "Private address of the app",
                      "defaultValue": "${{boltdiy.RAILWAY_PRIVATE_DOMAIN}}:5173"
                    },
                    "BOLT_AUTH_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the public URL",
                      "defaultValue": "{{BOLT_AUTH_PASSWORD}}"
                    },
                    "BOLT_AUTH_USERNAME": {
                      "isOptional": false,
                      "description": "Username for the public URL",
                      "defaultValue": "admin"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the gateway build in the shared repo",
                      "defaultValue": "Dockerfile"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Lets in-flight proxied streams finish",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "d34607d3-ed7b-4ca3-a9d7-4cfe977e74a6": {
                  "icon": "https://raw.githubusercontent.com/stackblitz-labs/bolt.diy/main/public/favicon.svg",
                  "name": "boltdiy",
                  "deploy": {
                    "startCommand": "",
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/bolt-diy-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the app listens on",
                      "defaultValue": "5173"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the app build in the shared repo",
                      "defaultValue": "Dockerfile.app"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Lets in-flight model streams finish",
                      "defaultValue": "30"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "auth-gateway",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T04:14:38.010Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T06:16:05.729Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_4631d23a25564240a7c3",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 168,
    "typical_build_seconds": 10,
    "typical_start_seconds": 10,
    "slowest_service": "auth-gateway"
  }
}
