
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@freestyle-sh/with-playwright
Advanced tools
Playwright runtime for [Freestyle](https://freestyle.sh) VMs, including browser installs.
Playwright runtime for Freestyle VMs, including browser installs.
npm install @freestyle-sh/with-playwright freestyle
import { freestyle } from "freestyle";
import { VmPlaywright } from "@freestyle-sh/with-playwright";
const { vm } = await freestyle.vms.create({
with: {
playwright: new VmPlaywright(),
},
});
const res = await vm.playwright.runCode({
code: `
const { chromium } = require("playwright");
(async () => {
const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto("https://example.com");
const title = await page.title();
await browser.close();
console.log(JSON.stringify({ title }));
})();
`,
});
console.log(res);
new VmPlaywright({
nodeVersion: "24",
playwrightVersion: "1.47.0",
installDeps: true,
browsers: ["chromium"],
})
| Option | Type | Default | Description |
|---|---|---|---|
nodeVersion | string | "24" | Node.js version to install via NVM. |
playwrightVersion | string | undefined | Playwright version to install. |
installDeps | boolean | true | Install Playwright system dependencies via --with-deps. |
browsers | ("chromium" | "firefox" | "webkit")[] | undefined | Limit browser installs; default installs all. |
vm.playwright.runCode({ code: string })Executes JavaScript code in the Playwright-ready Node.js runtime.
Returns: Promise<RunCodeResponse>
type RunCodeResponse<Result> = {
result: Result;
stdout?: string;
stderr?: string;
statusCode?: number;
};
vm.playwright.install(options?)Installs npm packages with npm install.
await vm.playwright.install({ deps: ["@playwright/test"] });
Returns: Promise<InstallResult>
type InstallResult = {
success: boolean;
stdout?: string;
stderr?: string;
};
FAQs
Playwright runtime for [Freestyle](https://freestyle.sh) VMs, including browser installs.
We found that @freestyle-sh/with-playwright demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.