{
  "manifest_version": "1.0.0",
  "template": {
    "id": "69e80122-1216-459e-91ed-69978f86153f",
    "slug": "bun-elysia-react-monorepo",
    "name": "Bun + Elysia + React (Monorepo)",
    "description": "Deploy and host a Bun monorepo with Elysia and React",
    "url": "https://railway.com/deploy/bun-elysia-react-monorepo",
    "upstream": {
      "repo_url": "https://github.com/Salam81/railway-bun-monorepo-elysia-starter"
    }
  },
  "services": [
    {
      "name": "Frontend",
      "source": {
        "repo": "https://github.com/Salam81/railway-bun-monorepo-elysia-starter"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Backend",
      "source": {
        "repo": "https://github.com/Salam81/railway-bun-monorepo-elysia-starter"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "VITE_API_URL",
      "service": "Frontend",
      "description": "API URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILPACK_BUILD_CMD",
      "service": "Frontend",
      "description": "Custom Build Command",
      "secret": false,
      "strategy": "default",
      "default": "bun --filter @bun-monorepo-railway/ui build"
    },
    {
      "key": "RAILPACK_SPA_OUTPUT_DIR",
      "service": "Frontend",
      "description": "Directory containing built static files",
      "secret": false,
      "strategy": "default",
      "default": "apps/ui/dist"
    },
    {
      "key": "FRONTEND_URL",
      "service": "Backend",
      "description": "Used for CORS",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILPACK_BUILD_CMD",
      "service": "Backend",
      "description": "Custom Build Command",
      "secret": false,
      "strategy": "default",
      "default": "bun --filter @bun-monorepo-railway/api build"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "bun-elysia-react-monorepo"
      }
    },
    "cli": "railway deploy --template bun-elysia-react-monorepo",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "69e80122-1216-459e-91ed-69978f86153f",
            "serializedConfig": {
              "services": {
                "864b5ad7-287c-4fad-8cb9-8ff04f658bf0": {
                  "icon": "https://vite.dev/logo.svg",
                  "name": "Frontend",
                  "deploy": {
                    "healthcheckPath": "/"
                  },
                  "source": {
                    "repo": "Salam81/railway-bun-monorepo-elysia-starter",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "VITE_API_URL": {
                      "isOptional": false,
                      "description": "API URL",
                      "defaultValue": "https://${{Backend.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILPACK_BUILD_CMD": {
                      "isOptional": false,
                      "description": "Custom Build Command",
                      "defaultValue": "bun --filter @bun-monorepo-railway/ui build"
                    },
                    "RAILPACK_SPA_OUTPUT_DIR": {
                      "isOptional": false,
                      "description": "Directory containing built static files",
                      "defaultValue": "apps/ui/dist"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "ac2fc5c3-5e2c-471d-a25b-f447e29393fa": {
                  "icon": "https://bun.com/logo.svg",
                  "name": "Backend",
                  "deploy": {
                    "startCommand": "./apps/api/dist/server",
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "repo": "Salam81/railway-bun-monorepo-elysia-starter",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Used for CORS",
                      "defaultValue": "${{Frontend.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILPACK_BUILD_CMD": {
                      "isOptional": false,
                      "description": "Custom Build Command",
                      "defaultValue": "bun --filter @bun-monorepo-railway/api build"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Frontend",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": false
  },
  "generated_at": "2026-09-15T22:14:40.394Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-13T23:56:25.968Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_3cf3623b55ab438e93fd",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 79,
    "typical_build_seconds": 40,
    "typical_start_seconds": 10,
    "slowest_service": "Backend"
  }
}
