{
  "manifest_version": "1.0.0",
  "template": {
    "id": "97253a2a-6906-4cc7-99f7-7b50b89e2023",
    "slug": "tanstack-start-mon-1",
    "name": "TanStack Start Monorepo Bun",
    "description": "Bun monorepo with Supabase, Better Auth, Drizzle ORM, and shadcn/ui.",
    "url": "https://railway.com/deploy/tanstack-start-mon-1",
    "upstream": {
      "repo_url": "https://github.com/FilipLjubic/tanstack-monorepo-starter-bun"
    }
  },
  "services": [
    {
      "name": "tanstack-monorepo-starter-bun",
      "source": {
        "repo": "https://github.com/FilipLjubic/tanstack-monorepo-starter-bun"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "tanstack-monorepo-starter-bun",
      "description": "Same one as in Docker",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "BASE_URL",
      "service": "tanstack-monorepo-starter-bun",
      "description": "Auto-filled by Railway",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NODE_ENV",
      "service": "tanstack-monorepo-starter-bun",
      "description": "development | production",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "DATABASE_URL",
      "service": "tanstack-monorepo-starter-bun",
      "description": "Supabase connection string from project settings",
      "secret": false,
      "strategy": "default",
      "default": "postgresql://postgres:postgres@127.0.0.1:54322/postgres"
    },
    {
      "key": "BETTER_AUTH_URL",
      "service": "tanstack-monorepo-starter-bun",
      "description": "Auto-filled by Railway",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TRUSTED_ORIGINS",
      "service": "tanstack-monorepo-starter-bun",
      "description": "Auto-filled by Railway",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "GOOGLE_CLIENT_ID",
      "service": "tanstack-monorepo-starter-bun",
      "description": "From https://console.cloud.google.com/apis/credentials",
      "secret": false,
      "strategy": "default",
      "default": "not-configured"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "tanstack-monorepo-starter-bun",
      "description": "Auto-generated by Railway",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GOOGLE_CLIENT_SECRET",
      "service": "tanstack-monorepo-starter-bun",
      "description": "Redirect URI: {BETTER_AUTH_URL}/api/auth/callback/google",
      "secret": true,
      "strategy": "default",
      "default": "not-configured"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "tanstack-start-mon-1"
      }
    },
    "cli": "railway deploy --template tanstack-start-mon-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "97253a2a-6906-4cc7-99f7-7b50b89e2023",
            "serializedConfig": {
              "services": {
                "9f6bcd24-a38c-4c66-9c14-37d4f1f2db95": {
                  "name": "tanstack-monorepo-starter-bun",
                  "deploy": {
                    "healthcheckPath": "/",
                    "restartPolicyMaxRetries": 5
                  },
                  "source": {
                    "repo": "FilipLjubic/tanstack-monorepo-starter-bun",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "description": "Same one as in Docker",
                      "defaultValue": "3000"
                    },
                    "BASE_URL": {
                      "description": "Auto-filled by Railway",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NODE_ENV": {
                      "description": "development | production",
                      "defaultValue": "production"
                    },
                    "DATABASE_URL": {
                      "description": "Supabase connection string from project settings",
                      "defaultValue": "postgresql://postgres:postgres@127.0.0.1:54322/postgres"
                    },
                    "BETTER_AUTH_URL": {
                      "description": "Auto-filled by Railway",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TRUSTED_ORIGINS": {
                      "description": "Auto-filled by Railway",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "GOOGLE_CLIENT_ID": {
                      "isOptional": true,
                      "description": "From https://console.cloud.google.com/apis/credentials",
                      "defaultValue": "not-configured"
                    },
                    "BETTER_AUTH_SECRET": {
                      "description": "Auto-generated by Railway",
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    },
                    "GOOGLE_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Redirect URI: {BETTER_AUTH_URL}/api/auth/callback/google",
                      "defaultValue": "not-configured"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "tanstack-monorepo-starter-bun",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T15:54:07.644Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_60386c479ada4738babc",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 144,
    "typical_build_seconds": 51,
    "typical_start_seconds": 11,
    "slowest_service": "tanstack-monorepo-starter-bun"
  }
}
