We would like our users to be able to use the Cloudflare Workers IDE to write and test Workers code in our own app. Is that possible?
The use case is simple - we are using Workers to run custom validation rules in JS e.g. if you update a form field - it must contain 16 characters and 3 upper-case letters. Basically - it’s custom validation.
To do this - our idea was simple - let our users write Worker-ready/compliant code so that we can wrap that code and run it as a Worker.
Instead of our users going to Cloudflare and setting up a dummy account, just to edit JS and test their Worker (which lives on our domain anyway) - can we “embed” or wrap the Workers IDE - i.e. the one below - into our own app - so that our users write custom functions, but can still gain the benefits of the IDE/testing, etc?
We will run and pay for the Worker, but our customers need to write the code on our end, as it makes far more sense (we run code on their behalf). We will likely have moderation before go-live, so not worried about unsafe use at this time.