Open Source
All templates and components

App template

Browserless

A headless Chrome that your automation tools drive with a token.

Memory when idle
about 300 MiB
CI measures it once the app is ready and before any traffic. Leave room for more.
Tested on
x86 servers

Introduction

Browserless runs headless Chrome as a service. Puppeteer, Playwright and other automation clients connect to it over WebSocket or HTTP, so they do not need a browser on their own machine.

This template runs one Browserless instance behind your domain. Every call needs a token that is generated at deploy time.

Values you provide

You don’t fill in anything when you deploy.

Made for you

These values are generated at deploy and kept in a Kubernetes Secret, shown as Secret/key.

  • browserless-secrets/token

Getting started

  1. In Zeabur OSS, open the browserless service. When Overview shows its replica as ready, the service is up. Its domain is on the Networking tab under Public domains, for example browserless.example.com.

  2. Get the token. Open Variables, click browserless-secrets under From config files and secrets, and click the eye icon next to token. Without Zeabur OSS, read Secret browserless-secrets, key token, with kubectl:

    kubectl -n <namespace> get secret browserless-secrets -o jsonpath='{.data.token}' | base64 -d
    
  3. Point your client at the domain and send the token in an Authorization: Bearer <token> header. If the client cannot set headers, add ?token=<token> to the URL. For Puppeteer:

    const browser = await puppeteer.connect({
      browserWSEndpoint: "wss://browserless.example.com?token=<token>",
    });
    

    There is no web page and no sign-in. Calls without the token get 401.

Configuration

Connect from Playwright

Use chromium.connectOverCDP("wss://<your domain>?token=<token>"). See Playwright connection in the Browserless docs.

Change the token

On the service’s Variables tab, click browserless-secrets, enter a new value for token, then review and apply. The running replica keeps the old token until you click Restart at the top of the service page. Update every client that uses the old token.

Troubleshooting

Sessions wait in a queue or time out

The template allows a limited number of browser sessions at once (CONCURRENT) and queues the rest (QUEUED). Close browsers your client no longer needs, or raise the memory limit of the service before you raise these values. See Docker configuration.

The page shows 502 or does not load

Open the browserless service in Zeabur OSS. Check that Overview shows its replica as ready, then read the Logs tab. If the replica is not ready, open Deployments and switch to Events. If Events show OOMKilled, the service ran out of memory. Raise Maximum memory under Settings → Compute. If the service is slow or keeps reconnecting, open the Usage tab. Near memory max means the memory is close to the limit. Raise Maximum memory the same way. If the domain or the certificate stays pending, see Troubleshooting on the domains page.

Without Zeabur OSS, read the logs with kubectl -n <namespace> logs deployment/browserless and the events with kubectl -n <namespace> get events --sort-by=.lastTimestamp.

See Adjust replicas, resources, and health checks and View logs, events, and usage, and open a terminal in the Zeabur OSS docs.

Resources

Each service is guaranteed the first amount and can use up to the second.

  • browserless

    Ports

    3000

    CPU

    0.25 cores to 2 cores

    Memory

    512 MiB to 2 GiB

Technical details

This release

Version
latest
Licence
SSPL-1.0 OR LicenseRef-Browserless-Commercial
Homepage
github.com

Tested in CI

CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.

DistributionPlatformKubernetesPassedIdle memory
kindlinux/amd64v1.37.0302 MiB

Security

Browserless runs as a restricted non-root container with a read-only filesystem. Its API needs a token, and the pod has no Kubernetes service-account token. Outbound traffic is not limited. Do not share one instance between tenants you do not trust.

Known risks

  1. Risk

    The browser starts with --no-sandbox, because upstream launches Chromium that way. If a website exploits the browser, the attacker can take over the container, read its Browserless token and see what other browser sessions show.

    How it is handled

    Let only trusted clients call the API. Keep the image patched. For sensitive browsing, run this service in its own tenant namespace on dedicated nodes. Keep the restricted admission policy, and do not grant SYS_ADMIN or host access. Do not share one instance between tenants you do not trust.

  2. Risk

    Anyone who can use the browser API can make the server open internal addresses (SSRF). Browserless can block private networks by itself, but that is off by default.

    How it is handled

    The file protocol, GET-style browser calls and CORS are disabled. The template does not limit outbound traffic, so the browser can still open private, cluster and cloud metadata addresses. Before untrusted clients use the API, add an egress NetworkPolicy that blocks private address ranges.

  3. Risk

    Browserless uses an SSPL and commercial dual license. SSPL is not an OSI-approved open source license, and closed-source commercial use is restricted.

    How it is handled

    The template description names the license. Deploying does not give you a license. Check which license applies to you, and ask a lawyer before using it in a commercial product.

  4. Risk

    One shared token allows powerful automation. It can also show up in client URLs and access logs.

    How it is handled

    The token is generated at deploy time. Send it in the Authorization header where the client supports it. Limit who can read the Kubernetes Secret and the logs. Strip query strings in any external proxy logs. Rotate the token if it leaks.

What the cluster needs

Zeabur OSS suggests the components a cluster is missing. Without it, install them first.