FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
onkernel
onkernelkernel_starter
Crazy-fast hosted browser infra
Public
Like
kernel_starter
Home
Code
3
README.md
playwright.ts
puppeteer.ts
Branches
1
Pull requests
Remixes
History
Environment variables
2
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
README.md

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:

Create val
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.

Code
README.mdplaywright.tspuppeteer.ts
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.