Steel
Steel is an open-source browser API that lets you control fleets of browsers in the cloud.
Since Val Town can't run browsers locally, Steel provides a way to run browser automation tools like Puppeteer and Playwright by connecting to remote browsers hosted on Steel's infrastructure.
Quick start with Puppeteer
- Remix this Steel Puppeteer val
- Get your free Steel API key
- Add it to your Environment Variables (via left sidebar of your val) as
STEEL_API_KEY - Click
Runon themain.tsxfile - View the output in the logs
Note
To use Puppeteer in Val Town, we recommend using the deno-puppeteer library – as is done in the above starter val.
Quick start with Playwright
You can also use Playwright with Steel on Val Town.
Similar to the setup instructions above:
- Remix this Steel Playwright val
- Get your free Steel API key
- Add it to your Environment Variables (via left sidebar of your val) as
STEEL_API_KEY - Set
TMPDIRto/tmpin your Environment Variables to avoid warnings - Click
Runon themain.tsfile - View the output in the logs
Note
We use a small script to handle Playwright's file system requirements in Val Town.
Also, each Steel API key supports only one active browser session. Starting a new session will close any existing session.