Skip to content

browserbase/browserbase-extension

Repository files navigation

Browserbase Chrome Extension Example

This is a Plasmo extension project bootstrapped with plasmo init.

This is a simple extension for the purpose of demonstrating how to upload a chrome extension to Browserbase.

Getting Started

First, clone the repository and install the dependencies:

pnpm install
# or
npm install

run the development server:

pnpm dev
# or
npm run dev

For further guidance, visit our Documentation

Generating a zip bundle for Browserbase using Plasmo CLI

Run the following:

pnpm build --zip
# or
npm run build -- --zip

You should see the build directory, with the zip file inside called chrome-mv3-prod.zip.

Uploading a chrome extension to Browserbase

Run the following command, replacing <BROWSERBASE_API_KEY> with your Browserbase API key.

This should return a response with the extension ID.

curl --request POST \
  --url https://www.browserbase.com/v1/extensions \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-BB-API-Key: <BROWSERBASE_API_KEY>' \
  --form 'file=@build/chrome-mv3-prod.zip'

About

Basic chrome extension for Browserbase Docs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published