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.
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
.
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'