This topic describes how to deploy a Gem Browser application with a few clicks by using the Application Center of Volcano Engine Function as a Service (veFaaS).
tip
This feature is in beta. Contact your account manager to apply for a trial.
- Application introduction
GEM Browser is a lightweight cloud browser sandbox service that supports the Chrome DevTools Protocol (CDP) protocol, Puppeteer and Playwright tools, Server-Sent Events (SSE)/streamable HTTP calls, and Virtual Network Computing (VNC) remote operations. GEM Browser delivers the following features:
- Lightweight browser kernel with a significantly faster response than standard Chrome
- Supports CDP, with a single browser instance running in a container
- Supports browser display and manual takeover through VNC and Canvas, with screen resolution adjustable during runtime
- Supports proxy integration
- Supports custom browser add-ons such as uBlock
- Supports visual-mode screenshots (with browser tabs) and GUI operations
Native runtime
- Associated cloud services
warning
The fees for using associated cloud services will be incurred. For billing details, see the billing documentation of the associated cloud services.
- veFaaS: veFaaS is used to create sandbox instances.
- All the cloud services associated with the application have been activated.
- The VeFaaSFullAccess, APIGFullAccess, and STSAssumeRoleAccess policies have been attached to Identity and Access Management (IAM) users. If one of the preceding policies is not attached, contact the root user or the administrator for authorization. For details, see Creating and authorizing users.
- An APIG instance of the serverless gateway type has been created. For detailed operations, see Creating instances.
- If you use veFaaS for the first time, make sure that the cross-service authorization is complete. If the authorization is not complete, the cross-service authorization page will appear, which provides guidance on authorization.
- A cloud sandbox instance has been created, and its access address has been obtained. For details, see Creating sandbox instances. You can also create a sandbox instance by using an API or an all-in-one SDK. For details, see the Creating sandbox instances by using the API or SDK section of this topic.
- In the top navigation bar, select the target region.
- In the left navigation bar, click App > My app.
- On the My app page, click Create app.
- On the Create app page, find the Gem Browser template and click Create.
- On the Create app page, specify the parameters of the application.
- Click Confirm to create and deploy the application.
You will be automatically redirected to the application details page, which displays the application deployment logs in real time.
After the application is deployed, click the access address under API Gateway in the cloud resources section of the application details page to open the interactive interface of your application.
Using All-in-One Sandbox
You can call All-in-One Sandbox by using an API, SDK, and MCP.
tip
In the sample code, $URL indicates the access endpoint of the sandbox. For the method of obtaining the endpoint, see Accessing sandbox instances. Creating sandbox instances by using the API or SDK
In addition to creating sandbox instances in the veFaaS console, you can also create sandbox instances by using an API or an all-in-one SDK.
- The sample Python all-in-one SDK is as follows.