WebGL in Workers

I am trying to make this via cloudflare workers.
But sadly WebGL does not work in cloudflare.

What is the usecase?

I have a worker that tries to go to the page and is making a screenshot on canvas on the webpage.
This implementation is working for 90% of cases, however when someone uses WebGL (in p5js), the returned image from worker is a white screen.


I already have an implementation: https://github.com/kodadot/workers/tree/main/capture
Working minimal PoC (on Vercel): https://github.com/vikiival/vercelgl

https://dev.to/rainerselvet/serverless-3d-webgl-rendering-with-threejs-4o11

I was sent here from #browser-rendering-api-beta
browser-rendering-api
GitHub
Implementation of Cloudflare Workers in KodaDot. Contribute to kodadot/workers development by creating an account on GitHub.
GitHub
Contribute to vikiival/vercelgl development by creating an account on GitHub.
DEV Community
This image above was rendered in a serverless function on page load (not kidding, check the image...
Was this page helpful?