functions
/functions
Wdraża automatyzację przeglądarki jako funkcje w chmurze Browserbase, z harmonogramem, cronem lub endpointem webhook.
- Autor
- browserbase ↗
- Repozytorium
- skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 01.09.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 5
Brak sygnałów. Repozytorium zmienione 01.09.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Wdraża automatyzację przeglądarki jako funkcje w chmurze Browserbase, z harmonogramem, cronem lub endpointem webhook.
Oryginalny opis (EN)
Deploy serverless browser automation as cloud functions using Browserbase. Use when the user wants to deploy browser automation to run on a schedule or cron, create a webhook endpoint for browser tasks, run automation in the cloud instead of locally, or asks about Browserbase Functions.
Jak działa
- Prerequisites
- Creating a Function Project
- Function Structure
- Development Workflow
- Deploying
- Quick Reference
Podgląd SKILL.md
---
name: functions
description: "Deploy serverless browser automation as cloud functions using Browserbase. Use when the user wants to deploy browser automation to run on a schedule or cron, create a webhook endpoint for browser tasks, run automation in the cloud instead of locally, or asks about Browserbase Functions."
compatibility: "Requires the browse CLI (`npm install -g browse`), Node.js 18+ with pnpm or npm, and BROWSERBASE_API_KEY."
license: MIT
allowed-tools: Bash Read Write Edit
---
# Browserbase Functions
Deploy serverless browser automation using the official `browse` CLI.
## Prerequisites
Get an API key from: https://browserbase.com/settings
```bash
export BROWSERBASE_API_KEY="your_api_key"
```
## Creating a Function Project
### 1. Initialize
```bash
browse functions init my-function
cd my-function
```
This creates:
```
my-function/
├── package.json
├── index.ts # Your function code
└── .env # Add credentials here
```
### 2. Add Credentials to .env
```bash
echo "BROWSERBASE_API_KEY=$BROWSERBASE_API_KEY" >> .env
```
### 3. Install Dependencies
```bash
pnpm install
```
## Function Structure
```typescript
import { defineFn } from "@browserbasehq/sdk-functions";
import { chromium } from "playwright-core";
defineFn("my-function", async (context) => {
const { session, params } = context;
// Connect to browser
const browser = await chromium.connectOverCDP(session.connectUrl);
const page = browser.contexts()[0]!.pages()[0]!;
// Your automation
await page.goto(params.url || "https://example.com");
const title = await page.title();
// Return JSON-serializable result
return { success: true, title };
});
```
**Key objects:**
- `context.session.connectUrl` - CDP endpoint to connect Playwright
- `context.params` - Input parameters from invocation
## Development Workflow
### 1. Start Dev Server
```bash
browse functions dev index.ts
```
Server runs at `http://127.0.0.1:14113`
### 2. Test Locally
```bash
curl -X POST http://127.0.0.1:14113/v1/functions/my-function/invoke \
-H "Content-Type: application/json" \
-d '{"params": {"url": "https://news.ycombinator.com"}}'
```
### 3. Iterate
The dev server auto-reloads on file changes. Use `console.log()` for debugging - output appears in the terminal.
## Deploying
```bash
browse functions publish index.ts
```
Output:
```
Function published successfully
Build ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Function ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
```
**Save the Function ID** - you need it to invoke.
## Quick Reference
| Command | Description |
|---------|-------------|
| `browse functions init <name>` | Create new project |
| `browse functions dev <file>` | Start local dev server |
| `browse functions publish <file>` | Deploy to Browserbase |
For invocation examples, common patterns, and troubleshooting, see [REFERENCE.md](REFERENCE.md).
Pliki w paczce (3)
- LICENSE.txt 1 KB
- REFERENCE.md 4 KB
- SKILL.md 3 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · browserbase/skills | 95 | MIT |
| zavudev/zavu-skills | 91 | Apache-2.0 |
Migawka bazy z 13.11.2026 · wersja paczki 3d534c1f129f (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100browserbase
Obsługuje zarządzane sesje headless Chromium w chmurze Browserbase dla automatyzacji przeglądarki, agentów AI i zadań scrapowania: sesje, konteksty, uruchomienia równoległe i Stagehand. - 100browserbase-webhooks
Odbiera i weryfikuje webhooki Browserbase, w tym podpis Standard Webhooks, przechowywanie sekretu whsec_, rotację sekretów i zdarzenia Functions takie jak functions.invocations.completed. - 100gcp-cloud-functions
Wdraża funkcje serverless w Google Cloud Functions, konfiguruje wyzwalacze i zarządza wdrożeniami. - 100gcp-cloud-functions
Wdraża funkcje serverless w Google Cloud Functions, konfiguruje wyzwalacze i zarządza wdrożeniami. - 100gcp-cloud-functions
Wdraża funkcje serverless w Google Cloud Functions, konfiguruje wyzwalacze i zarządza wdrożeniami. - 95cloud-run-puppeteer
Wdraża automatyzację przeglądarki Puppeteer na Google Cloud Run w Dockerze, do zadań headless Chrome i serverless.