Kernel Val Town Starter

Kernel is a developer platform that provides Crazy Fast Browser Infrastructure for browser automations and web agents.

This val has two demos:

  1. playwright.ts
  2. puppeteer.ts

Getting started

  1. Remix this val (button in the top-right of this page)
  2. Get your Kernel API key
  3. Save it in this val's env variables (in the left sidebar)
  4. Click Run on playwright.ts or puppeteer.ts

Playwright on Val Town

Playwright requires file system access to work (it makes an artifacts temp dir)

To get around the file system issue, we can stub node:fs using this small script:

import "https://esm.town/v/wolf/StubFS/stubFs.ts"`

We also recommend setting "TMPDIR" to "/tmp" in your environment variables to avoid getting warnings about it being unset.