> browserbase
You are an expert in BrowserBase, the cloud platform for running headless browsers at scale. You help developers deploy browser-based automations, AI agents, and web scraping pipelines using managed Chromium instances with residential proxies, session recording, stealth mode, and parallel execution — without managing browser infrastructure.
curl "https://skillshub.wtf/TerminalSkills/skills/browserbase?format=md"BrowserBase — Cloud Browser Infrastructure for AI Agents
You are an expert in BrowserBase, the cloud platform for running headless browsers at scale. You help developers deploy browser-based automations, AI agents, and web scraping pipelines using managed Chromium instances with residential proxies, session recording, stealth mode, and parallel execution — without managing browser infrastructure.
Core Capabilities
Session Management
import Browserbase from "@browserbasehq/sdk";
import { chromium } from "playwright-core";
const bb = new Browserbase({ apiKey: process.env.BROWSERBASE_API_KEY! });
// Create a browser session
const session = await bb.sessions.create({
projectId: process.env.BROWSERBASE_PROJECT_ID!,
browserSettings: {
fingerprint: {
locales: ["en-US"],
screen: { maxWidth: 1920, maxHeight: 1080 },
},
viewport: { width: 1280, height: 720 },
},
proxies: true, // Residential proxy (avoid blocks)
keepAlive: true, // Keep session alive between connections
timeout: 300, // Max session duration (seconds)
});
// Connect with Playwright
const browser = await chromium.connectOverCDP(session.connectUrl);
const context = browser.contexts()[0];
const page = context.pages()[0];
await page.goto("https://example.com");
// ... automation logic ...
// Session recording available at:
console.log(`Recording: https://browserbase.com/sessions/${session.id}`);
Parallel Execution
// Process 50 URLs concurrently with cloud browsers
async function scrapeInParallel(urls: string[], concurrency = 10) {
const results: any[] = [];
// Process in batches
for (let i = 0; i < urls.length; i += concurrency) {
const batch = urls.slice(i, i + concurrency);
const batchResults = await Promise.allSettled(
batch.map(async (url) => {
const session = await bb.sessions.create({
projectId: process.env.BROWSERBASE_PROJECT_ID!,
proxies: true,
keepAlive: false, // Auto-cleanup
});
const browser = await chromium.connectOverCDP(session.connectUrl);
const page = browser.contexts()[0].pages()[0];
try {
await page.goto(url, { waitUntil: "networkidle" });
const data = await page.evaluate(() => {
// Extract data from page
return { title: document.title, text: document.body.innerText.substring(0, 5000) };
});
return { url, ...data };
} finally {
await browser.close();
}
})
);
results.push(...batchResults);
}
return results;
}
Persistent Context (Login Sessions)
// Create a context that persists cookies/auth across sessions
const context = await bb.contexts.create({
projectId: process.env.BROWSERBASE_PROJECT_ID!,
});
// First session: log in and save context
const loginSession = await bb.sessions.create({
projectId: process.env.BROWSERBASE_PROJECT_ID!,
browserSettings: { context: { id: context.id, persist: true } },
});
// ... log in via Playwright ...
// Later sessions reuse the authenticated context
const workSession = await bb.sessions.create({
projectId: process.env.BROWSERBASE_PROJECT_ID!,
browserSettings: { context: { id: context.id, persist: true } },
});
// Already logged in — cookies persisted
Installation
npm install @browserbasehq/sdk playwright-core
# Get API key: https://browserbase.com
Best Practices
- Proxies for scraping — Enable
proxies: truefor sites that block datacenter IPs; BrowserBase provides residential proxies - Session recordings — Every session is recorded; use recordings to debug failed automations without re-running
- Persistent contexts — Use contexts to share login state across sessions; avoid re-authenticating every time
- keepAlive for multi-step — Set
keepAlive: truefor long workflows;falsefor one-shot scraping - Stealth by default — BrowserBase configures fingerprints and headers to look like a real browser; no extra stealth plugins needed
- Concurrency limits — Respect your plan's concurrent session limit; use batching with
Promise.allSettledfor parallel work - Combine with Stagehand — Use BrowserBase as the browser backend for Stagehand AI automation; set
env: "BROWSERBASE" - Timeouts — Set session
timeoutto prevent zombie sessions; sessions auto-terminate when the timeout expires
> related_skills --same-repo
> zustand
You are an expert in Zustand, the small, fast, and scalable state management library for React. You help developers manage global state without boilerplate using Zustand's hook-based stores, selectors for performance, middleware (persist, devtools, immer), computed values, and async actions — replacing Redux complexity with a simple, un-opinionated API in under 1KB.
> zoho
Integrate and automate Zoho products. Use when a user asks to work with Zoho CRM, Zoho Books, Zoho Desk, Zoho Projects, Zoho Mail, or Zoho Creator, build custom integrations via Zoho APIs, automate workflows with Deluge scripting, sync data between Zoho apps and external systems, manage leads and deals, automate invoicing, build custom Zoho Creator apps, set up webhooks, or manage Zoho organization settings. Covers Zoho CRM, Books, Desk, Projects, Creator, and cross-product integrations.
> zod
You are an expert in Zod, the TypeScript-first schema declaration and validation library. You help developers define schemas that validate data at runtime AND infer TypeScript types at compile time — eliminating the need to write types and validators separately. Used for API input validation, form validation, environment variables, config files, and any data boundary.
> zipkin
Deploy and configure Zipkin for distributed tracing and request flow visualization. Use when a user needs to set up trace collection, instrument Java/Spring or other services with Zipkin, analyze service dependencies, or configure storage backends for trace data.