{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5caf47db-4236-44f5-ae53-7d03fc87e8fa",
    "slug": "sveltekit-better-auth-starter",
    "name": "SvelteKit + Better Auth Starter",
    "description": "SvelteKit 3, Better Auth, Postgres/Drizzle, i18n, email: a base to build on",
    "url": "https://railway.com/deploy/sveltekit-better-auth-starter",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/sveltekit-better-auth-starter"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "sveltekit",
      "source": {
        "repo": "https://github.com/nomideusz/sveltekit-better-auth-starter"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "app"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Auto-generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ORIGIN",
      "service": "sveltekit",
      "description": "Public URL - used in emails and as the auth base URL. Change if you attach a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SMTP_PORT",
      "service": "sveltekit",
      "description": "Optional",
      "secret": false,
      "strategy": "default",
      "default": "465"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "sveltekit",
      "description": "Your login email - the admin account is created on first deploy",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "ALLOW_SIGNUP",
      "service": "sveltekit",
      "description": "true opens public sign-up at /auth/signup (with email verification); false = admin creates accounts",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DATABASE_URL",
      "service": "sveltekit",
      "description": "Postgres connection - wired to the bundled database, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "sveltekit",
      "description": "Auto-generated first password - read it here after deploy, then change it in the app",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SMTP_FROM_NAME",
      "service": "sveltekit",
      "description": "Brand name in emails and page header",
      "secret": false,
      "strategy": "default",
      "default": "App"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "sveltekit",
      "description": "Auto-generated - signs sessions",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "sveltekit",
      "description": "First deploy runs migrations before the healthcheck; leave as is",
      "secret": false,
      "strategy": "default",
      "default": "300"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "sveltekit-better-auth-starter"
      }
    },
    "cli": "railway deploy --template sveltekit-better-auth-starter",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5caf47db-4236-44f5-ae53-7d03fc87e8fa",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "03a9d865-04c8-4d95-ad29-baef2eef1d73": {
                  "icon": "https://raw.githubusercontent.com/zeabur/service-icons/main/marketplace/postgresql.svg",
                  "name": "postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "app"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "03a9d865-04c8-4d95-ad29-baef2eef1d73": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "74a5533d-e685-43d4-8ae7-74fedaa84aaf": {
                  "icon": "https://devicons.railway.com/i/svelte.svg",
                  "name": "sveltekit",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/sveltekit-better-auth-starter",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "ORIGIN": {
                      "isOptional": false,
                      "description": "Public URL - used in emails and as the auth base URL. Change if you attach a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SMTP_FROM": {
                      "isOptional": true,
                      "description": "Sender address. With Resend: a verified domain sender, or leave empty to use onboarding@resend.dev (delivers only to your own Resend account email).",
                      "defaultValue": ""
                    },
                    "SMTP_HOST": {
                      "isOptional": true,
                      "description": "Optional - SMTP host (only reachable on plans that allow outbound SMTP; otherwise use RESEND_API_KEY)",
                      "defaultValue": ""
                    },
                    "SMTP_PORT": {
                      "isOptional": true,
                      "description": "Optional",
                      "defaultValue": "465"
                    },
                    "SMTP_USER": {
                      "isOptional": true,
                      "description": "Optional",
                      "defaultValue": ""
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Your login email - the admin account is created on first deploy",
                      "defaultValue": "{{ADMIN_EMAIL}}"
                    },
                    "ALLOW_SIGNUP": {
                      "isOptional": true,
                      "description": "true opens public sign-up at /auth/signup (with email verification); false = admin creates accounts",
                      "defaultValue": "false"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection - wired to the bundled database, leave as is",
                      "defaultValue": "postgres://${{postgres.POSTGRES_USER}}:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{postgres.POSTGRES_DB}}?sslmode=disable"
                    },
                    "SMTP_PASSWORD": {
                      "isOptional": true,
                      "description": "Optional",
                      "defaultValue": ""
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated first password - read it here after deploy, then change it in the app",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "RESEND_API_KEY": {
                      "isOptional": true,
                      "description": "Optional - email via Resend's HTTP API. Use this on the Hobby plan: outbound SMTP ports are blocked there. Set SMTP_FROM to your verified sender.",
                      "defaultValue": ""
                    },
                    "SMTP_FROM_NAME": {
                      "isOptional": true,
                      "description": "Brand name in emails and page header",
                      "defaultValue": "App"
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Auto-generated - signs sessions",
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "First deploy runs migrations before the healthcheck; leave as is",
                      "defaultValue": "300"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "sveltekit",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0"
}
