
Browserbase Functions SDK
https://github.com/browserbase/sdk-functions-node- Category
- Developer Tools
- Rank
- No. 1871Tools index
Previous survey · No. 1877 ·
- Pricing
- Open Source
- Type
- TOOL
- Builder
- browserbase
- GitHub
- 4 stars
- Date
About
Define, develop, and deploy serverless browser automation functions on Browserbase using Node.js.
What it does
It turns typed JavaScript or TypeScript handlers into remotely invokable browser jobs. Each job receives connection details for a managed browser session, while the package handles registration, parameter schemas, local execution, publishing, invocation, and runtime result reporting.
Why it's ranked here
This is a focused bridge between application code and Browserbase’s hosted runtime. The included command line workflow covers scaffolding through invocation, while managed sessions and schema validation remove substantial setup. Its value depends on accepting Browserbase as the execution platform.
What's good
Local development and cloud publishing share one function definition model. Zod schemas validate parameters and become persisted JSON Schema. Session configuration exposes Browserbase options, including advanced stealth. Publishing supports dry runs, and invocation supports asynchronous submission plus later status checks.
Tradeoffs
A Browserbase API key is required, and deployment targets Browserbase or a compatible custom endpoint. Browser interaction still requires a separate automation library such as Playwright. Projects need Node.js 18 or newer, while scaffolding supports only npm and pnpm.
How to use it well
Use it for small, callable scraping or browser workflow units that need local testing and managed cloud sessions. Keep handlers focused, validate external parameters, and inspect dry runs before publishing. It does not replace Playwright or provide a general-purpose hosting platform.
Technical notes+
package.json publishes only dist, exposes ESM, CommonJS, declarations, and the bb binary, and declares ISC licensing. src/index.ts creates singleton environment, registry, and runtime clients, then starts runInvocationLoop when the phase is runtime. src/define/index.ts registers definitions and writes manifests during introspection or local execution; src/define/helpers.ts clears the manifest directory on the first registration and converts Zod objects to JSON Schema. src/runtime/index.ts implements Lambda-style polling and response endpoints, but formatRuntimeError splits Error stacks with "/n" rather than "\n". src/utils/env.ts casts environment values without runtime validation, and src/utils/env.test.ts explicitly confirms that arbitrary values pass through.
Observed
- License
- ISC
- Primary language
- TypeScript
- Package
- Published as @browserbasehq/sdk-functions through npm-compatible registries
- Module formats
- Provides ESM, CommonJS, and TypeScript declaration outputs
- Interfaces
- TypeScript library plus the bb command line interface
- CLI surface
- Includes project initialization, local development, publishing, and remote invocation
- Platform requirements
- Requires Node.js 18 or newer and TypeScript 4.5 or newer
- Testing structure
- Package scripts define unit, integration, and end-to-end test workflows
Read from README.md, package.json, src/index.ts, src/cli/main.ts, src/utils/env.ts, src/define/index.ts, src/runtime/loop.ts, src/types/schema.ts, src/utils/errors.ts, src/runtime/index.ts, src/types/handler.ts, src/types/helpers.ts, src/define/helpers.ts, src/schemas/events.ts, src/utils/env.test.ts.
What it can do
Define serverless browser automation functions
Node.js function definitions → Browser automation function specifications
Develop browser automation workflows
JavaScript/Node.js code and browser interaction requirements → Executable browser automation functions
Deploy serverless functions to Browserbase
Browser automation function code → Deployed serverless functions on Browserbase platform
Automate web browser interactions
Target websites and interaction parameters → Automated browser actions and results
Execute serverless browser automation tasks
Function triggers and runtime parameters → Browser automation task results
Tags
Tech Stack
Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.