Files
raea/sdk/cloud/package.json
shinyobjectz 3725537f35 sdk/cloud: renders on a GPU or a CPU from one image, render jobs, and a CPU box that hands its renders to a GPU worker (docs/cloud.feature CL13-CL15)
- The image is Node 24 on Debian trixie with glvnd and X11's libraries (libxext6 libx11-6 libgl1 libegl1), without
  which NVIDIA's Vulkan driver (mounted by the container runtime) doesn't load or gives no vkCreateInstance (driver
  610.57 on Modal's T4, A10G and A10). The entrypoint opens NVIDIA's driver when the host passed a GPU in, else Mesa's;
  WGPU_BACKEND=vulkan, and on the CPU EGL's vendors are hidden, since NVIDIA's EGL would hand wgpu an OpenGL adapter
  over llvmpipe. RAEA_CLOUD_DEVICE=gpu fails at start on no GPU; /v1/health says the device.
- /v1/jobs takes a project as a tar and gives back what the render made (CL14); deploy/modal/raea_cloud.py runs it on
  a Modal GPU list (L4, else A10G, else T4), one container that sleeps after five idle minutes.
- RAEA_CLOUD_GPU_URL on a CPU box sends raea render to the worker and lands its files back (CL15, image/raea.sh and
  server/offload.ts); deploy/k8s.gpu.yaml is such a worker.
- test/smoke.sh: worker and box, ten checks, all pass on 0.1.1-rc3. On Modal, test/gpu/edit.tsx (576 lit blocks,
  1080p, 90 frames): T4 156 s against llvmpipe on the same machine's 8 cores 203 s; a box on a Mac handed it to an A10
  (119 s) and the MP4 came back.
2026-11-10 21:52:21 -08:00

24 lines
728 B
JSON

{
"name": "@raea/cloud",
"license": "FSL-1.1-ALv2",
"private": true,
"version": "0.1.1",
"description": "raea and an ACP agent on a server of your own (docs/cloud.feature): one image (image/Dockerfile) with raea's Linux release, any agent the ACP registry lists and a small authenticated server, deploy files for Docker, Compose, Fly Machines and Kubernetes, and a TypeScript client (src/).",
"type": "module",
"main": "src/index.ts",
"exports": {
".": "./src/index.ts"
},
"files": ["src", "server", "image", "deploy", "README.md"],
"engines": {
"node": ">=22.19"
},
"dependencies": {
"ws": "8.18.3"
},
"devDependencies": {
"@types/node": "24.10.1",
"@types/ws": "8.18.1"
}
}