{
  "manifest_version": "1.0.0",
  "template": {
    "id": "57127802-8196-468b-b6f4-cdfcd7e404b5",
    "slug": "hoppscotch",
    "name": "Hoppscotch",
    "description": "Hoppscotch — open-source Postman alternative for testing REST and GraphQL",
    "url": "https://railway.com/deploy/hoppscotch",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/railway-hoppscotch"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:16-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "hoppscotch",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/railway-hoppscotch"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data directory. Parent /var/lib/postgresql must be mounted as a volume to avoid lost+found crash.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database",
      "secret": false,
      "strategy": "default",
      "default": "hoppscotch"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password",
      "secret": true,
      "strategy": "default",
      "default": "hoppscotch2026"
    },
    {
      "key": "PORT",
      "service": "hoppscotch",
      "description": "Public port Caddy listens on. Railway exposes this. The backend uses 8080 internally via the entrypoint (export PORT=8080).",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "SECRET_KEY",
      "service": "hoppscotch",
      "description": "Secret key for signing JWT tokens. Auto-generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INFRA_TOKEN",
      "service": "hoppscotch",
      "description": "Secret token for admin dashboard API access. Auto-generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "hoppscotch",
      "description": "PostgreSQL connection string. Connected to the postgres sibling service.",
      "secret": false,
      "strategy": "default",
      "default": "postgresql://postgres:hoppscotch2026@postgres.railway.internal:5432/hoppscotch"
    },
    {
      "key": "VITE_BASE_URL",
      "service": "hoppscotch",
      "description": "Public URL of your deployment (e.g., https://your-app.up.railway.app). Required for cookies and callbacks.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "VITE_ADMIN_URL",
      "service": "hoppscotch",
      "description": "Admin URL for subpath access.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MAILER_SMTP_URL",
      "service": "hoppscotch",
      "description": "SMTP connection URL for email sending. REQUIRED for admin onboarding to succeed — replace with your real SMTP after deploy. Empty value causes backend to exit immediately.",
      "secret": false,
      "strategy": "default",
      "default": "smtp://user:pass@smtp.example.com:587"
    },
    {
      "key": "DATA_ENCRYPTION_KEY",
      "service": "hoppscotch",
      "description": "Encryption key for sensitive data stored in the database (32 characters). Auto-generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "VITE_BACKEND_WS_URL",
      "service": "hoppscotch",
      "description": "Backend Websocket URL for subpath access.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "WHITELISTED_ORIGINS",
      "service": "hoppscotch",
      "description": "Comma-separated allowed CORS origins. Include your Railway public URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "VITE_BACKEND_API_URL",
      "service": "hoppscotch",
      "description": "Backend API URL for subpath access.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "VITE_BACKEND_GQL_URL",
      "service": "hoppscotch",
      "description": "Backend GraphQL URL for subpath access.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "HOPP_AIO_ALTERNATE_PORT",
      "service": "hoppscotch",
      "description": "Port Caddy uses to serve the app frontend. MUST be 3000.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "ENABLE_SUBPATH_BASED_ACCESS",
      "service": "hoppscotch",
      "description": "Serves frontend, admin, and backend API on a single port via subpaths (required for Railway proxy).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "VITE_ALLOWED_AUTH_PROVIDERS",
      "service": "hoppscotch",
      "description": "Comma-separated list of enabled auth providers. Required for admin sign-up.",
      "secret": false,
      "strategy": "default",
      "default": "EMAIL,GOOGLE,GITHUB,MICROSOFT"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "hoppscotch"
      }
    },
    "cli": "railway deploy --template hoppscotch",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "57127802-8196-468b-b6f4-cdfcd7e404b5",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3a6d8d83-beaf-4c1e-97ae-086258706088": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:16-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "description": "Data directory. Parent /var/lib/postgresql must be mounted as a volume to avoid lost+found crash.",
                      "defaultValue": "/var/lib/postgresql/data"
                    },
                    "POSTGRES_DB": {
                      "description": "Default database",
                      "defaultValue": "hoppscotch"
                    },
                    "POSTGRES_USER": {
                      "description": "Superuser",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Superuser password",
                      "defaultValue": "hoppscotch2026"
                    }
                  },
                  "volumeMounts": {
                    "3a6d8d83-beaf-4c1e-97ae-086258706088": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "717b1232-d1f6-41c7-8980-fe42d5fce144": {
                  "icon": null,
                  "name": "hoppscotch",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/railway-hoppscotch",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "description": "Public port Caddy listens on. Railway exposes this. The backend uses 8080 internally via the entrypoint (export PORT=8080).",
                      "defaultValue": "3000"
                    },
                    "SECRET_KEY": {
                      "description": "Secret key for signing JWT tokens. Auto-generated.",
                      "defaultValue": "{{SECRET_KEY}}"
                    },
                    "INFRA_TOKEN": {
                      "description": "Secret token for admin dashboard API access. Auto-generated.",
                      "defaultValue": "{{INFRA_TOKEN}}"
                    },
                    "DATABASE_URL": {
                      "description": "PostgreSQL connection string. Connected to the postgres sibling service.",
                      "defaultValue": "postgresql://postgres:hoppscotch2026@postgres.railway.internal:5432/hoppscotch"
                    },
                    "VITE_BASE_URL": {
                      "isOptional": true,
                      "description": "Public URL of your deployment (e.g., https://your-app.up.railway.app). Required for cookies and callbacks.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "VITE_ADMIN_URL": {
                      "description": "Admin URL for subpath access.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/admin"
                    },
                    "MAILER_SMTP_URL": {
                      "isOptional": true,
                      "description": "SMTP connection URL for email sending. REQUIRED for admin onboarding to succeed — replace with your real SMTP after deploy. Empty value causes backend to exit immediately.",
                      "defaultValue": "smtp://user:pass@smtp.example.com:587"
                    },
                    "DATA_ENCRYPTION_KEY": {
                      "description": "Encryption key for sensitive data stored in the database (32 characters). Auto-generated.",
                      "defaultValue": "{{DATA_ENCRYPTION_KEY}}"
                    },
                    "VITE_BACKEND_WS_URL": {
                      "description": "Backend Websocket URL for subpath access.",
                      "defaultValue": "wss://${{RAILWAY_PUBLIC_DOMAIN}}/backend/graphql"
                    },
                    "WHITELISTED_ORIGINS": {
                      "isOptional": true,
                      "description": "Comma-separated allowed CORS origins. Include your Railway public URL.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "VITE_BACKEND_API_URL": {
                      "description": "Backend API URL for subpath access.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/backend/v1"
                    },
                    "VITE_BACKEND_GQL_URL": {
                      "description": "Backend GraphQL URL for subpath access.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/backend/graphql"
                    },
                    "HOPP_AIO_ALTERNATE_PORT": {
                      "description": "Port Caddy uses to serve the app frontend. MUST be 3000.",
                      "defaultValue": "3000"
                    },
                    "ENABLE_SUBPATH_BASED_ACCESS": {
                      "description": "Serves frontend, admin, and backend API on a single port via subpaths (required for Railway proxy).",
                      "defaultValue": "true"
                    },
                    "VITE_ALLOWED_AUTH_PROVIDERS": {
                      "description": "Comma-separated list of enabled auth providers. Required for admin sign-up.",
                      "defaultValue": "EMAIL,GOOGLE,GITHUB,MICROSOFT"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T08:39:49.250Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d67667b14f6e4ac996ca",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 128,
    "typical_build_seconds": 41,
    "typical_start_seconds": 10,
    "slowest_service": "hoppscotch"
  }
}
