When to Use
Use@hyperframes/gcp-cloud-run when you need to:
- Render large compositions on Google Cloud infrastructure
- Orchestrate
plan,renderChunk, andassemblethrough Cloud Workflows - Store project archives, chunk outputs, and final videos in GCS
- Deploy the renderer as a Cloud Run service with a pinned Chrome runtime
- Drive renders from CI, a backend service, or custom internal tooling
- Render locally or inside a single Node process - use the CLI or producer
- Run the same distributed model on AWS - use aws-lambda
- Build or edit composition HTML - use studio, sdk, or core
Package Exports
The published package also includes
terraform/ and a Dockerfile for deployment.
Architecture
Cloud Workflows invokes one Cloud Run service with differentAction values:
1
Plan
Downloads the project archive from GCS, runs the producer planner, and uploads the plan directory.
2
Render chunks
Cloud Workflows runs parallel
renderChunk calls against the Cloud Run service. Each request renders one chunk and uploads it to GCS.3
Assemble
Downloads all chunks and audio assets, assembles the deliverable, and uploads the final file.
@hyperframes/producer/distributed primitives.
Deploying
Build and push the container, then apply the Terraform module:Page network restriction
The service setsPRODUCER_RESTRICT_PAGE_NETWORK=true, so a rendered page reaches only its own project files and public internet addresses. Loopback, private, link-local and IPv6 addresses are refused for anything the page loads. An asset on a VPC-only host or behind private DNS is missing from the video. ffmpeg’s https inputs may open only https, so an https source that redirects to http, or encrypted HLS, does not load.
Keep it on when you render compositions you did not write. To turn it off, apply the module with -var restrict_page_network=false, or set TF_VAR_restrict_page_network=false before hyperframes cloudrun deploy.
Using the SDK
projectDir for one-shot uploads, or call deploySite() separately and reuse the returned site handle across many renders.
Related topics
GCP Cloud Run Deployment
End-to-end deployment details and smoke-test notes.
@hyperframes/producer
The distributed primitives that the Cloud Run service executes.