Skip to main content

Hoppscotch on Google Cloud Run

Hoppscotch on Google Cloud Run

Hoppscotch is an open-source, Postman-style API development platform for designing, sending, and inspecting HTTP, GraphQL, and WebSocket requests from the browser. This module deploys the self-hosted Hoppscotch frontend as a stateless single-page app on Cloud Run v2 on top of the App_CloudRun foundation, which provisions and manages the shared Google Cloud infrastructure.

This guide focuses on the cloud services Hoppscotch uses and how to explore and operate them from the Google Cloud Console and the command line. For the mechanics common to every Cloud Run application — service identity, ingress and load balancing, scaling and concurrency, CI/CD, Cloud Armor, IAP, Binary Authorization, VPC Service Controls, backups, and the deployment lifecycle — refer to the App_CloudRun foundation guide rather than repeating them here.


What Hoppscotch costs on RAD, and how that compares​

Hoppscotch on RAD's Cloud Run module costs about US$17 a month in your own project, plus a 40-credit (US$4) module fee once per deployment, with no per-user licence. If you only need it sometimes, see "Pause it for free" below to stop paying without losing your setup. Hoppscotch also ships as a GKE module; GKE costs more here (about US$24/month) because it adds a shared cluster, so Cloud Run is the lower-cost choice unless you're already running an Autopilot cluster for other apps.

What you pay on RAD​

In a Google Cloud project you ownIn a project RAD manages for you
Module fee, once per deployment40 credits (US$4.00)36 credits (10% lower)
Build timeA few credits per buildThe same
Google Cloud running costBilled by Google to your own billing account, about US$16.78 a month for the default configuration (table below)Metered hourly in credits; RAD publishes 3 credits a day
Who owns whatYou own the project and its billing; RAD deploys and updates itRAD owns the project, with guardrails, quotas and budget alerts; you get console access, and a minimum purchased balance is held in reserve

10 credits cost US$1 on a one-off top-up, less on a plan. In a project RAD manages, the database, file server and network are shared by every application in the project, so a second application does not add a second database.

Default running cost in your own project (us-central1, Google list prices):

Resource (module default)Per month
Cloud Run, 1x vCPU / 0.5 GiB (scaleToZero)US$10.78
Cloud NAT and networkingUS$5.00
Cloud Storage (add-ons, backups)US$1.00
Totalabout US$16.78

How it compares​

  • No official hosted SaaS exists for the self-hosted Hoppscotch frontend to compare against — Postman's own cloud plans are a different, closed-source product — so the honest comparison is a bare server.
  • Hoppscotch's frontend is light (1 vCPU, 0.5 GiB), so even a cheaper/smaller VPS tier than the ones below would run it; for reference, a Hetzner CPX22 or DigitalOcean 2 vCPU/4 GB droplet runs about $24/month and a GCP Compute Engine e2-standard-2 about $49/month.
  • What RAD adds over a bare VPS is managed TLS, IAM-scoped access, Secret Manager and monitoring — this module has no database to patch, so the gap is mostly about identity and observability rather than database administration.

Pause it for free: delete a RAD-managed project, restore it when you need it​

If Hoppscotch runs in a project RAD manages for you and you expect to come back to it — a break between courses, a seasonal lull, or simply not knowing yet whether you'll need it next month — this is the better option, and it costs almost nothing.

Deleting a RAD-managed project unlinks its billing first, then asks Google to delete the project outright: Google's own 30-day recoverable soft delete. Unlike deleting Hoppscotch as a single module, this does not tear down the Cloud Run service, networking and storage one by one — the whole project simply stops, and nothing is charged while it waits, because billing is already unlinked.

Restoring, within 30 days and only by the project's owner, asks Google to undelete the project and reattaches its billing account, then asks you to run Update on each deployment to confirm everything came back. Because nothing was individually destroyed, that Update finds the same resources already there — it is a check, not a rebuild, and an Update never charges the module fee again. This costs only a handful of credits (under US$1) in build time for a typical chain of deployments.

What this needs: you must own the project (not one RAD only manages billing for), you must restore it yourself within 30 days — after that Google deletes it for good — and restoring is admitted like creating a new project, so your purchased credit balance must still clear the tier's floor (100 credits for the sandbox tier most use fits). Google says most services are fully working again within 36 hours of a restore.

One real gap: nightly backups are written to a bucket inside the project, and that bucket has Cloud Storage's soft-delete explicitly turned off, so it is very likely gone as soon as you delete the project, even though the project itself is recoverable for 30 days. Hoppscotch keeps little of its own server-side state (collections and environments are mostly in the browser), so for a default install there is little to lose.

Pay only while you use it, the other way: delete and redeploy​

In your own project, or once the 30-day window above has passed, the fallback is to delete Hoppscotch outright and redeploy it later.

  • What a redeploy costs: the module fee again, plus the builds — roughly the module fee shown above plus 3–6 credits of build time.
  • When it's worth it: deleting saves money only once Hoppscotch would otherwise sit unused for about 8 days or more in your own project (about 14 days or more in a RAD-managed one). Hoppscotch has no database or shared VM, so deleting it removes its whole running cost on its own.
  • Keep data first. Nightly backups are written to a bucket inside the deployment, and that bucket is deleted with it — copy the latest backup out (to Google Drive, or a bucket you keep) before deleting if you want to keep it.

Lab sessions and Managed Environments​

  • Lab sessions, for training. A trainer runs a session for a class. Each participant gets the app in their own Google Cloud project for 15 minutes to 24 hours, within an allowance the trainer sets. Either the trainer funds every place, or each participant pays for their own. Everything is deleted when the session ends and unused credits go back to the trainer.
  • Managed Environments, for consultancies. A partner runs the app for a client from a ring-fenced wallet it funds, and settles with the client directly. If the wallet runs low, billing pauses and the data is kept, so nobody receives an unexpected charge. At the end the partner hands the project over and the deployments become the client's own.
  • Credits can be bought in more than 20 currencies, including XAF, XOF, NGN, GHS, KES and ZAR, by card, bank transfer or mobile money.

Sources (8 October 2026): Google Cloud list prices from the Cloud Billing Catalog API; RAD fees and the daily-credit estimate from radmodules.dev/pricing; Google Cloud: delete and restore projects for the pause/restore mechanism. Prices change; check each source before relying on a figure.


1. Overview​

Hoppscotch runs as a static single-page web app (served by Caddy) in a container on Cloud Run v2. It is deliberately stateless — no database, no cache, no persistent storage — so the deployment wires together a small set of Google Cloud services:

CapabilityGoogle Cloud serviceNotes
ComputeCloud Run v2Static SPA container on port 3000; 1 vCPU / 512 MiB by default; scale-to-zero
Container imageArtifact Registry + Cloud BuildThin custom build FROM hoppscotch/hoppscotch-frontend, tag mirrored into Artifact Registry
IngressCloud Run URL / Cloud Load BalancingDefault run.app URL; optional external HTTPS load balancer + custom domain
SecretsSecret ManagerNone app-specific — Hoppscotch requires no secrets
ObservabilityCloud Logging & MonitoringContainer logs, metrics, optional uptime check and alerts

Services that are deliberately not used: Cloud SQL (database_type = "NONE"), Cloud Storage (no buckets), and Redis (off by default; the static frontend has no server-side rate-limiting or queue to back).

Sensible defaults worth knowing up front:

  • No database, ever. database_type = "NONE" and enable_cloudsql_volume = false. Hoppscotch keeps all collections, environments, and history in browser local storage, so there is no server-side state. Setting a database type only wastes money on an idle Cloud SQL instance — the GKE variant even blocks it at plan time.
  • The frontend-only image is used on purpose. The all-in-one hoppscotch/hoppscotch image bundles a NestJS backend that exit(1)s without a DATABASE_URL. This module uses hoppscotch/hoppscotch-frontend, which serves the SPA on port 3000 with no backend requirement.
  • HOPPSCOTCH_VERSION, not APP_VERSION, pins the image. A custom build sets an app-specific HOPPSCOTCH_VERSION ARG so the Foundation's injected APP_VERSION does not overwrite the tag; application_version = "latest" resolves to a pinned, known-good tag at build time.
  • Scale-to-zero is enabled by default (min_instance_count = 0). The first request after idle incurs a cold start of a few seconds. Because the app is a static SPA with no warm-up work, cold starts are cheap; set min_instance_count = 1 only if you want to eliminate that first-request latency.
  • Request-based billing by default (cpu_always_allocated = false). Hoppscotch does no in-process background work, so CPU is billed only while serving a request.
  • Public ingress by default. ingress_settings = "all" exposes the run.app URL. Enable IAP to require Google sign-in for internal/organisation-only deployments.
  • No secrets and no storage buckets are provisioned by this module.

2. Google Cloud Services & How to Explore Them​

All commands assume PROJECT and REGION are set. Service and resource names are reported in the deployment Outputs.

A. Cloud Run — the Hoppscotch service​

Hoppscotch runs as a Cloud Run v2 service that autoscales by request load between the minimum (0) and maximum instance counts. Each deployment creates an immutable revision; traffic can be split across revisions for safe rollouts. The container listens on port 3000 and answers GET / with the app UI (HTTP 200).

  • Console: Cloud Run → select the service for revisions, traffic, logs, and metrics.
  • CLI:
    gcloud run services list --project "$PROJECT" --region "$REGION" \
    --filter="metadata.name~hoppscotch"
    gcloud run services describe <service-name> --project "$PROJECT" --region "$REGION"
    gcloud run revisions list --service <service-name> --project "$PROJECT" --region "$REGION"
    # Confirm the injected port and env of the live revision:
    gcloud run services describe <service-name> --region "$REGION" \
    --format='value(spec.template.spec.containers[0].ports,spec.template.spec.containers[0].env)'

See App_CloudRun for scaling, concurrency, execution environment, and traffic splitting.

B. Container image — Artifact Registry & Cloud Build​

Because container_image_source = "custom", the image is built by Cloud Build from the thin Dockerfile (FROM hoppscotch/hoppscotch-frontend:${HOPPSCOTCH_VERSION}) and pushed to Artifact Registry (image mirroring is on by default to avoid Docker Hub rate limits).

  • Console: Artifact Registry → Repositories; Cloud Build → History.
  • CLI:
    gcloud builds list --project "$PROJECT" --region "$REGION" --limit 5
    gcloud artifacts docker images list \
    "$REGION-docker.pkg.dev/$PROJECT/<repo>" --project "$PROJECT" \
    --include-tags --filter="package~hoppscotch"

The repository name and image URI are in the Outputs (artifact_registry_repository, container_image).

C. Secret Manager​

Hoppscotch provisions no application secrets — secret_ids is empty. You can still map your own env-var-to-secret references through secret_environment_variables if you extend the deployment, but nothing is required.

  • Console: Security → Secret Manager.
  • CLI:
    gcloud secrets list --project "$PROJECT" --filter="name~hoppscotch"

See App_CloudRun for secret injection and rotation details.

D. Networking & ingress​

The service is reachable at its run.app URL by default (ingress_settings = "all"). An external HTTPS load balancer with a custom domain, Cloud CDN, and Cloud Armor can be layered on; ingress settings and VPC egress control connectivity.

  • Console: Cloud Run (service URL); Network services → Load balancing.
  • CLI:
    gcloud run services describe <service-name> --region "$REGION" --format='value(status.url)'
    gcloud compute addresses list --project "$PROJECT"

See App_CloudRun.

E. Cloud Logging & Monitoring​

Container logs flow to Cloud Logging; Cloud Run metrics flow to Cloud Monitoring, with optional uptime checks and alert policies. An uptime check against / confirms the SPA is serving.

  • Console: Logging → Logs Explorer; Monitoring → Dashboards / Alerting.
  • CLI:
    gcloud run services logs read <service-name> --project "$PROJECT" --region "$REGION" --limit 50

3. Hoppscotch Application Behaviour​

  • No first-deploy database setup. There is no db-init job, no Cloud SQL instance, and no schema. The container serves a static bundle immediately.
  • No server-side persistence. Collections, environments, request history, and settings live in browser local storage on each user's machine. Redeploying, scaling to zero, or rolling out a new revision loses no user data — there is none on the server to lose.
  • No immutable keys. With no secrets and no database, there is no cryptographic material that could corrupt stored data if changed. Rotations are a non-issue.
  • Health path. Startup and liveness probes target the root /, which returns the app UI (HTTP 200) as soon as Caddy binds port 3000 — typically within seconds. A failing probe almost always means the image tag is invalid, not that a backend is unreachable.
  • No first-run admin account. The self-hosted frontend has no login or user management of its own; open the URL and start building requests. (Team workspaces, which do require the backend + database, are intentionally out of scope for this module.)
  • Scaling is unconstrained. Because there is no shared queue or database, any number of instances can run independently — increase max_instance_count freely as a cost/throughput ceiling.
  • Verify the running revision:
    gcloud run services describe <service-name> \
    --region "$REGION" --project "$PROJECT" --format='value(status.url)'
    curl -sS -o /dev/null -w '%{http_code}\n' "$(gcloud run services describe <service-name> \
    --region "$REGION" --format='value(status.url)')/"

4. Configuration Variables​

Variables are grouped exactly as they appear on the deployment platform. Only settings specific to or notable for Hoppscotch are listed; every other input is inherited from App_CloudRun with its standard behaviour.

Group 1 — Project & Identity​

VariableDefaultDescription
project_id(required)Target Google Cloud project.
regionus-central1Region for the service and regional resources.

Group 3 — Application Identity​

VariableDefaultDescription
application_namehoppscotchBase name for resources. Do not change after first deploy.
display_nameHoppscotchHuman-readable name shown in the Console.
application_versionlatestHoppscotch image tag; latest resolves to a pinned known-good hoppscotch-frontend tag at build time.

Group 4 — Runtime & Scaling​

VariableDefaultDescription
deploy_applicationtrueSet false to provision supporting infrastructure only.
container_image_sourcecustomThin custom build FROM hoppscotch/hoppscotch-frontend. Keep custom.
cpu_limit1000mCPU per instance.
memory_limit512MiMemory per instance; ≥ 256Mi (gen2 floor is 512Mi).
cpu_always_allocatedfalseRequest-based billing — Hoppscotch does no background work.
container_port3000The port the frontend SPA listens on.
min_instance_count0Scale-to-zero; set 1 to avoid cold starts.
max_instance_count3Cost/throughput ceiling; safe to raise (no shared state).
execution_environmentgen2Recommended for faster startup and networking.
timeout_seconds60Maximum request duration (0–3600).
enable_cloudsql_volumefalseHoppscotch has no database — leave false.
enable_image_mirroringtrueMirror the image into Artifact Registry (avoids Docker Hub limits).

All other inputs follow standard App_CloudRun behaviour.

Group 5 — Access & Ingress Control​

VariableDefaultDescription
ingress_settingsallPublic run.app URL. Use internal / IAP for private deployments.
vpc_egress_settingPRIVATE_RANGES_ONLYRoute only RFC 1918 traffic via VPC.
enable_iapfalseRequire Google sign-in in front of Hoppscotch.
iap_authorized_users / iap_authorized_groups[]Who may access through IAP.

All other inputs follow standard App_CloudRun behaviour.

Group 6 — Environment Variables & Secrets​

VariableDefaultDescription
environment_variables{}Optional extra plain-text env vars (e.g. { PORT = "3000" }). None are required.
secret_environment_variables{}Optional env var → Secret Manager references. None are required.

All other inputs follow standard App_CloudRun behaviour.

Group 21 — Redis Cache & Queue​

VariableDefaultDescription
enable_redisfalseOff by default. The static frontend has no server-side queue or rate limiter, so leave disabled.
redis_host / redis_port / redis_auth"" / 6379 / ""Only relevant if you wire Redis in for a custom purpose.

All other inputs follow standard App_CloudRun behaviour.


5. Outputs​

Returned on a successful deployment — the quickest way to locate and explore the running resources.

OutputDescription
service_nameCloud Run service name.
service_urlDefault run.app URL of the service.
service_locationRegion the service runs in.
stage_servicesStage-specific service URLs (Cloud Deploy).
load_balancer_ip / load_balancer_urlExternal HTTPS load balancer IP / URL (when enabled).
storage_bucketsCreated Cloud Storage buckets (empty — Hoppscotch is stateless).
network_name / network_exists / regionsVPC network, presence, regions.
container_image / container_registryDeployed image and Artifact Registry repo.
monitoring_enabled / monitoring_notification_channels / uptime_check_namesMonitoring status, channels, uptime checks.
initialization_jobsNames of setup jobs (empty — no DB bootstrap).
deployment_id / tenant_id / resource_prefixNaming identifiers.
project_id / project_numberProject identifiers.
cicd_enabled / github_repository_url / github_repository_owner / github_repository_name / cicd_configurationCI/CD status and details.
artifact_registry_repository / cloudbuild_trigger_name / cloudbuild_trigger_idRegistry and build trigger.
vpc_sc_enabled / vpc_sc_perimeter_name / vpc_sc_dry_run_modeVPC-SC status.
audit_logging_enabled / artifact_registry_cmek_enabledAudit logging and CMEK status.

6. Configuration Pitfalls & Sensible Defaults​

Risk: Critical (data loss / outage / security) — High (service degraded) — Medium (cost or partial degradation) — Low (minor).

Inherited plan-time validation. This module passes its configuration through the App_CloudRun foundation engine, which validates values and combinations at plan time — IAP with no authorized identities, a gen1 runtime with NFS/GCS mounts, out-of-range timeout_seconds/redis_port. Invalid configuration fails the plan with a clear, named error before any resource is created, so most mistakes below are caught up front rather than at apply or runtime.

SettingSensible valueRiskConsequence if wrong
container_image_sourcecustomHighSwitching to prebuilt points the service at an unbuilt Artifact Registry path (Image not found); Hoppscotch requires the custom hoppscotch-frontend build.
application_versionlatest or a real hoppscotch-frontend tagHighAn invalid tag makes the Cloud Build fail (MANIFEST_UNKNOWN); the service then runs a stale or missing image.
enable_cloudsql_volumefalseMediumEnabling it mounts an Auth Proxy sidecar for a database that does not exist — wasted cost and a needless dependency.
container_port3000HighThe frontend serves only on 3000; a mismatched port fails the startup probe and the revision never becomes Ready.
memory_limit512MiMediumBelow 512Mi is rejected under the gen2 execution-environment floor; the plan/apply fails.
enable_iapfalse for public useHighEnabling IAP without OAuth credentials silently exposes or blocks the app; enabling it deliberately requires Google sign-in for every request.
min_instance_count0 (or 1 for no cold start)LowScale-to-zero adds a small cold-start delay to the first request after idle; harmless for a static SPA.
enable_redisfalseLowThe static frontend has no server-side queue; enabling Redis adds cost with no benefit.

For the foundation behaviour referenced throughout — service identity, scaling and concurrency, ingress and load balancing, CI/CD, Cloud Armor, IAP, Binary Authorization, VPC-SC, backups, and image mirroring — see App_CloudRun. Hoppscotch-specific application configuration shared with the GKE variant is described in Hoppscotch_Common.

Need RAD to do something it does not do yet? Request it on the roadmap, or vote on what is already there.