{
  "manifest_version": "1.0.0",
  "template": {
    "id": "800202d4-e602-44d8-a75f-cdfba9cc5565",
    "slug": "buffet-modern-starter-for-bun",
    "name": "Buffet - Modern Starter for Bun",
    "description": "Full-stack type safe template: Bun + Effect + ElysiaJS + Svelte",
    "url": "https://railway.com/deploy/buffet-modern-starter-for-bun",
    "upstream": {
      "repo_url": "https://github.com/a-rebets/buffet"
    }
  },
  "services": [
    {
      "name": "Server",
      "source": {
        "repo": "https://github.com/a-rebets/buffet"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "DB_PATH",
      "service": "Server",
      "description": "Where database is persisted",
      "secret": false,
      "strategy": "default",
      "default": "/data/app.db"
    },
    {
      "key": "BUN_PUBLIC_DOMAIN",
      "service": "Server",
      "description": "Where API is pointed to",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "Server",
      "description": "Auth server secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "buffet-modern-starter-for-bun"
      }
    },
    "cli": "railway deploy --template buffet-modern-starter-for-bun",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "800202d4-e602-44d8-a75f-cdfba9cc5565",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "32adefd9-7514-436b-8e19-63bb7492800b": {
                  "icon": "https://a5lsx687lx.ufs.sh/f/fExbAB4WdS7G36z7AU98EMFmqYgawV09ps7Btn5QheWLfdKy",
                  "name": "Server",
                  "deploy": {
                    "startCommand": "",
                    "healthcheckPath": "/auth/login",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 5
                  },
                  "source": {
                    "repo": "https://github.com/a-rebets/buffet",
                    "rootDirectory": null
                  },
                  "variables": {
                    "DB_PATH": {
                      "isOptional": false,
                      "description": "Where database is persisted",
                      "defaultValue": "/data/app.db"
                    },
                    "BUN_PUBLIC_DOMAIN": {
                      "isOptional": false,
                      "description": "Where API is pointed to",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Auth server secret",
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "32adefd9-7514-436b-8e19-63bb7492800b": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Server",
      "method": "GET",
      "path": "/auth/login",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-15T22:14:40.394Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-14T01:22:12.428Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_e578ea665f0847fda578",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
