{"_id":"@browserbasehq/sdk-functions","_rev":"22-46582a39865dd0cb4bcefc5dd34d4cfa","name":"@browserbasehq/sdk-functions","dist-tags":{"latest":"1.0.3"},"versions":{"0.0.1":{"name":"@browserbasehq/sdk-functions","version":"0.0.1","keywords":[],"author":"","license":"ISC","_id":"@browserbasehq/sdk-functions@0.0.1","maintainers":[{"name":"miguel_g","email":"miguel@browserbase.com"},{"name":"nosaj","email":"jason@nosaj.io"},{"name":"jjjosephharrison","email":"jharrison@browserbase.com"},{"name":"zerofool","email":"adamjaggard@gmail.com"},{"name":"tinathetechie","email":"tina.fcook@gmail.com"},{"name":"paul-klein-browserbase","email":"paul@browserbase.com"},{"name":"desaadi","email":"dominiceliassaadi@gmail.com"},{"name":"tkattkat","email":"tkat@tkat.net"},{"name":"kylejeong","email":"kyle@browserbase.com"},{"name":"the-roaring","email":"vivien@browserbase.com"},{"name":"browserz","email":"zhao@browserbase.com"},{"name":"ajmcquilkin","email":"ajmcquilkin@gmail.com"},{"name":"seanmcguire12","email":"seanmcguire1@outlook.com"}],"bin":{"bb":"dist/cli.js"},"dist":{"shasum":"a333b80c779bd5e31610956dde8092baa571e56b","tarball":"https://registry.npmjs.org/@browserbasehq/sdk-functions/-/sdk-functions-0.0.1.tgz","fileCount":10,"integrity":"sha512-VFzQxt1/wcOsoq84YLYNa870ZptS3eoOutEoKhqjaFvX+xDZUH7ufukWYK3h37ZzDKSnQs47xYN5BGvUr2eS1A==","signatures":[{"sig":"MEQCIDgzKbbi0Z3XeHWMXPbYUHha92C1o22eVDpswPJwHbgSAiAz8KYz5LlPEVQsRqNdHBwGxNeiFTJzSu/hDDIJXMIGDw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":208174},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"64772e79646b0ad0e691cbe9e5863d507370572b","scripts":{"lint":"$npm_execpath run eslint && $npm_execpath run prettier && $npm_execpath run typecheck","test":"$npm_execpath build:tests && node --test dist-test/**/*.test.js","build":"$npm_execpath run lint && rm -rf dist && tsup","eslint":"eslint ./src","prettier":"prettier . --check --cache","test:only":"$npm_execpath build:tests && node --test-only --test dist-test/**/*.test.js","typecheck":"tsc --noEmit","eslint:fix":"eslint --fix ./src","build:tests":"tsc --project tsconfig.test.json","prettier:fix":"prettier . --write --cache"},"_npmUser":{"name":"ajmcquilkin","email":"ajmcquilkin@gmail.com"},"_npmVersion":"10.9.2","directories":{},"sideEffects":["./dist/index.js"],"_nodeVersion":"22.13.1","dependencies":{"tsx":"^4.20.5","zod":"^4.1.5","chalk":"^5.6.2","dotenv":"^17.2.3","archiver":"^7.0.1","commander":"^14.0.2","@std/expect":"jsr:^1.0.17","@browserbasehq/sdk":"^2.6.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.1","devDependencies":{"jiti":"^2.5.1","tsup":"^8.5.0","eslint":"^9.35.0","globals":"^16.3.0","ts-node":"^10.9.2","prettier":"3.6.2","@eslint/js":"^9.35.0","typescript":"^5.9.2","@types/node":"^24.3.1","tsconfig-paths":"^4.2.0","@types/archiver":"^7.0.0","typescript-eslint":"^8.42.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-functions_0.0.1_1763609058435_0.25324493855455765","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@browserbasehq/sdk-functions","version":"0.0.2","keywords":[],"author":"","license":"ISC","_id":"@browserbasehq/sdk-functions@0.0.2","maintainers":[{"name":"miguel_g","email":"miguel@browserbase.com"},{"name":"nosaj","email":"jason@nosaj.io"},{"name":"jjjosephharrison","email":"jharrison@browserbase.com"},{"name":"zerofool","email":"adamjaggard@gmail.com"},{"name":"tinathetechie","email":"tina.fcook@gmail.com"},{"name":"paul-klein-browserbase","email":"paul@browserbase.com"},{"name":"desaadi","email":"dominiceliassaadi@gmail.com"},{"name":"tkattkat","email":"tkat@tkat.net"},{"name":"kylejeong","email":"kyle@browserbase.com"},{"name":"the-roaring","email":"vivien@browserbase.com"},{"name":"browserz","email":"zhao@browserbase.com"},{"name":"ajmcquilkin","email":"ajmcquilkin@gmail.com"},{"name":"seanmcguire12","email":"seanmcguire1@outlook.com"}],"bin":{"bb":"dist/cli.js"},"dist":{"shasum":"9f696368818da2e0dc2498d04177126e88b39d85","tarball":"https://registry.npmjs.org/@browserbasehq/sdk-functions/-/sdk-functions-0.0.2.tgz","fileCount":13,"integrity":"sha512-1LlUMXm6oea8g3AWrh9bAJwz7y7J930gv6RwGmsf3DVB2V9h5RPR/h83P04VC477aotuzltUUQYHWWuJFYxu8w==","signatures":[{"sig":"MEUCIQDclwMIyxW+04vT1eLh4GphPUcS+O4xHBXwzW3NasuANgIgcBshz0KdXTOhRpobgOC6yfzrC6Dk+SrZgvM8bz7kjL0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":246060},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"7102caf12c1580d7682e9a660e6576a0c797909c","scripts":{"lint":"$npm_execpath run eslint && $npm_execpath run prettier && $npm_execpath run typecheck","test":"$npm_execpath build:tests && node --test dist-test/**/*.test.js","build":"$npm_execpath run lint && rm -rf dist && tsup","eslint":"eslint ./src","prettier":"prettier . --check --cache","test:only":"$npm_execpath build:tests && node --test-only --test dist-test/**/*.test.js","typecheck":"tsc --noEmit","eslint:fix":"eslint --fix ./src","build:tests":"tsc --project tsconfig.test.json","prettier:fix":"prettier . --write --cache"},"_npmUser":{"name":"ajmcquilkin","email":"ajmcquilkin@gmail.com"},"_npmVersion":"10.9.2","directories":{},"sideEffects":["./dist/index.js"],"_nodeVersion":"22.13.1","dependencies":{"tsx":"^4.20.5","zod":"^4.1.5","chalk":"^5.6.2","dotenv":"^17.2.3","archiver":"^7.0.1","commander":"^14.0.2","@std/expect":"jsr:^1.0.17","@browserbasehq/sdk":"^2.6.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.1","devDependencies":{"jiti":"^2.5.1","tsup":"^8.5.0","eslint":"^9.35.0","globals":"^16.3.0","ts-node":"^10.9.2","prettier":"3.6.2","@eslint/js":"^9.35.0","typescript":"^5.9.2","@types/node":"^24.3.1","tsconfig-paths":"^4.2.0","@types/archiver":"^7.0.0","typescript-eslint":"^8.42.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-functions_0.0.2_1763675837011_0.6910801601826584","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@browserbasehq/sdk-functions","version":"0.0.3","keywords":[],"author":"","license":"ISC","_id":"@browserbasehq/sdk-functions@0.0.3","maintainers":[{"name":"miguel_g","email":"miguel@browserbase.com"},{"name":"nosaj","email":"jason@nosaj.io"},{"name":"jjjosephharrison","email":"jharrison@browserbase.com"},{"name":"zerofool","email":"adamjaggard@gmail.com"},{"name":"tinathetechie","email":"tina.fcook@gmail.com"},{"name":"paul-klein-browserbase","email":"paul@browserbase.com"},{"name":"desaadi","email":"dominiceliassaadi@gmail.com"},{"name":"tkattkat","email":"tkat@tkat.net"},{"name":"kylejeong","email":"kyle@browserbase.com"},{"name":"the-roaring","email":"vivien@browserbase.com"},{"name":"browserz","email":"zhao@browserbase.com"},{"name":"ajmcquilkin","email":"ajmcquilkin@gmail.com"},{"name":"seanmcguire12","email":"seanmcguire1@outlook.com"}],"bin":{"bb":"dist/cli.js"},"dist":{"shasum":"d7b95756e66195c6f615561987589592d321fe73","tarball":"https://registry.npmjs.org/@browserbasehq/sdk-functions/-/sdk-functions-0.0.3.tgz","fileCount":13,"integrity":"sha512-IwYEbpZlqchi75uzvtTxpD5U49g+tpDCtBmGzOTVJjWmBQ4Kk5qowHzYR8pUx8lzloqrUoXC/OPAW1TjnAPahA==","signatures":[{"sig":"MEUCIQDji2PA5R74wGF1AC2oWdtrx6bMNxmI7mrFfsMk4imEpAIgYNJ7nOzgB/m5Y/DO6VVO6Bd8gb8WrQ+EUqnWezwOWY4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":246818},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"5700c855680d96a321a21da06ba11e0372b0267e","scripts":{"lint":"$npm_execpath run eslint && $npm_execpath run prettier && $npm_execpath run typecheck","test":"$npm_execpath build:tests && node --test dist-test/**/*.test.js","build":"$npm_execpath run lint && rm -rf dist && tsup","eslint":"eslint ./src","prettier":"prettier . --check --cache","test:only":"$npm_execpath build:tests && node --test-only --test dist-test/**/*.test.js","typecheck":"tsc --noEmit","eslint:fix":"eslint --fix ./src","build:tests":"tsc --project tsconfig.test.json","prettier:fix":"prettier . --write --cache"},"_npmUser":{"name":"ajmcquilkin","email":"ajmcquilkin@gmail.com"},"_npmVersion":"10.9.2","directories":{},"sideEffects":["./dist/index.js"],"_nodeVersion":"22.13.1","dependencies":{"tsx":"^4.20.5","zod":"^4.1.5","chalk":"^5.6.2","dotenv":"^17.2.3","archiver":"^7.0.1","commander":"^14.0.2","@browserbasehq/sdk":"^2.6.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.1","devDependencies":{"jiti":"^2.5.1","tsup":"^8.5.0","eslint":"^9.35.0","globals":"^16.3.0","ts-node":"^10.9.2","prettier":"3.6.2","@eslint/js":"^9.35.0","typescript":"^5.9.2","@types/node":"^24.3.1","tsconfig-paths":"^4.2.0","@types/archiver":"^7.0.0","typescript-eslint":"^8.42.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-functions_0.0.3_1763927562106_0.09256547223499845","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@browserbasehq/sdk-functions","version":"0.0.5","keywords":[],"author":"","license":"ISC","_id":"@browserbasehq/sdk-functions@0.0.5","maintainers":[{"name":"nosaj","email":"jason@nosaj.io"},{"name":"zerofool","email":"adamjaggard@gmail.com"},{"name":"desaadi","email":"dominiceliassaadi@gmail.com"},{"name":"ajmcquilkin","email":"ajmcquilkin@gmail.com"},{"name":"miguel_g","email":"miguel@browserbase.com"},{"name":"browserz","email":"zhao@browserbase.com"}],"bin":{"bb":"dist/cli.js"},"dist":{"shasum":"4d6c2671f284905ba4dc9cc2072375566d0bf8cd","tarball":"https://registry.npmjs.org/@browserbasehq/sdk-functions/-/sdk-functions-0.0.5.tgz","fileCount":13,"integrity":"sha512-FH6IIH1VCdeR9HwwWR4k38kJbImZMO9bOFwpUqPmW6rhKzn/SrRjmJ21KLGL6bCMbWp3D9T5LTmT8R4R5vXrhw==","signatures":[{"sig":"MEYCIQDhT6XOdhPQ+oj+RfXxK9NXmrBYsobYvMCcB+KlN0lMSQIhAJOLodVqVbmX1XV/0pNfFig4PAIqJIMYDgDzsExGeLEH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":247314},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"68dae6fbf5663d3e44360bc1156e8a9e1686b17d","scripts":{"lint":"$npm_execpath run eslint && $npm_execpath run prettier && $npm_execpath run typecheck","test":"$npm_execpath build:tests && node --test dist-test/**/*.test.js","build":"$npm_execpath run lint && rm -rf dist && tsup","eslint":"eslint ./src","prettier":"prettier . --check --cache","test:only":"$npm_execpath build:tests && node --test-only --test dist-test/**/*.test.js","typecheck":"tsc --noEmit","eslint:fix":"eslint --fix ./src","build:tests":"tsc --project tsconfig.test.json","prettier:fix":"prettier . --write --cache"},"_npmUser":{"name":"ajmcquilkin","email":"ajmcquilkin@gmail.com"},"_npmVersion":"11.6.2","description":"","directories":{},"sideEffects":["./dist/index.js"],"_nodeVersion":"24.11.1","dependencies":{"tsx":"^4.20.5","zod":"^4.1.5","chalk":"^5.6.2","dotenv":"^17.2.3","archiver":"^7.0.1","commander":"^14.0.2","@browserbasehq/sdk":"^2.6.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.1","devDependencies":{"jiti":"^2.5.1","tsup":"^8.5.0","eslint":"^9.35.0","globals":"^16.3.0","ts-node":"^10.9.2","prettier":"3.6.2","@eslint/js":"^9.35.0","typescript":"^5.9.2","@types/node":"^24.3.1","tsconfig-paths":"^4.2.0","@types/archiver":"^7.0.0","typescript-eslint":"^8.42.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-functions_0.0.5_1768344132313_0.8585864003431127","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@browserbasehq/sdk-functions","version":"0.0.6","keywords":[],"author":"","license":"ISC","_id":"@browserbasehq/sdk-functions@0.0.6","maintainers":[{"name":"seanmcguire12","email":"seanmcguire1@outlook.com"},{"name":"kylejeong","email":"kyle@browserbase.com"},{"name":"nosaj","email":"jason@nosaj.io"},{"name":"zerofool","email":"adamjaggard@gmail.com"},{"name":"desaadi","email":"dominiceliassaadi@gmail.com"},{"name":"ajmcquilkin","email":"ajmcquilkin@gmail.com"},{"name":"miguel_g","email":"miguel@browserbase.com"},{"name":"browserz","email":"zhao@browserbase.com"}],"bin":{"bb":"dist/cli.js"},"dist":{"shasum":"a250623022146092dd7f605f18be58d5d7df5196","tarball":"https://registry.npmjs.org/@browserbasehq/sdk-functions/-/sdk-functions-0.0.6.tgz","fileCount":13,"integrity":"sha512-2njpCL13lG+s5PJlEc0SDCPV93smrTShXJcOwrRZolLXvtJvU/lKRj0j7KCsnqlP+7oExftHOYYaxzh2tDyOOA==","signatures":[{"sig":"MEUCIGNwdfgSgJlnQi9cmIoGDMhmqStrOVUh5P3mCdK/LjuSAiEAirQlUl4D18OVy30a9S+1Q3LXbCtir+cRJTxAKQOgL+s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":279215},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"634180c5d67d4e75fc10697bc6ed1356ece57a99","scripts":{"lint":"$npm_execpath run eslint && $npm_execpath run prettier && $npm_execpath run typecheck","test":"$npm_execpath build:tests && node --test dist-test/**/*.test.js","build":"rm -rf dist && tsup","eslint":"eslint ./src","prettier":"prettier . --check --cache","test:e2e":"$npm_execpath run build:integration && node --test --test-timeout 300000 dist-integration-test/tests/e2e/**/*.test.js","test:only":"$npm_execpath build:tests && node --test-only --test dist-test/**/*.test.js","typecheck":"tsc --noEmit","eslint:fix":"eslint --fix ./src","build:tests":"tsc --project tsconfig.test.json","pretest:e2e":"$npm_execpath run build && pnpm pack","posttest:e2e":"rm -f browserbasehq-sdk-functions-*.tgz","prettier:fix":"prettier . --write --cache","test:integration":"$npm_execpath run build:integration && node --test --test-timeout 120000 dist-integration-test/tests/integration/**/*.test.js","build:integration":"tsc --project tsconfig.integration.json","pretest:integration":"$npm_execpath run build && pnpm pack","posttest:integration":"rm -f browserbasehq-sdk-functions-*.tgz"},"_npmUser":{"name":"ajmcquilkin","email":"ajmcquilkin@gmail.com"},"_npmVersion":"11.6.2","description":"[![NPM version](https://img.shields.io/npm/v/@browserbasehq/sdk-functions.svg)](https://npmjs.org/package/@browserbasehq/sdk-functions)","directories":{},"sideEffects":["./dist/index.js"],"_nodeVersion":"24.11.1","dependencies":{"tsx":"^4.20.5","zod":"^4.1.5","chalk":"^5.6.2","dotenv":"^17.2.3","archiver":"^7.0.1","commander":"^14.0.2","@browserbasehq/sdk":"^2.6.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.1","devDependencies":{"jiti":"^2.5.1","tsup":"^8.5.0","eslint":"^9.35.0","globals":"^16.3.0","ts-node":"^10.9.2","prettier":"3.6.2","@eslint/js":"^9.35.0","typescript":"^5.9.2","@types/node":"^24.3.1","tsconfig-paths":"^4.2.0","@types/archiver":"^7.0.0","typescript-eslint":"^8.42.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-functions_0.0.6_1770698863709_0.04921358349866911","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@browserbasehq/sdk-functions","version":"1.0.0","keywords":[],"author":"","license":"ISC","_id":"@browserbasehq/sdk-functions@1.0.0","maintainers":[{"name":"seanmcguire12","email":"seanmcguire1@outlook.com"},{"name":"kylejeong","email":"kyle@browserbase.com"},{"name":"nosaj","email":"jason@nosaj.io"},{"name":"zerofool","email":"adamjaggard@gmail.com"},{"name":"desaadi","email":"dominiceliassaadi@gmail.com"},{"name":"ajmcquilkin","email":"ajmcquilkin@gmail.com"},{"name":"miguel_g","email":"miguel@browserbase.com"},{"name":"browserz","email":"zhao@browserbase.com"}],"bin":{"bb":"dist/cli.js"},"dist":{"shasum":"18ad5fb6205fdd28c774a1c882daeea44924292a","tarball":"https://registry.npmjs.org/@browserbasehq/sdk-functions/-/sdk-functions-1.0.0.tgz","fileCount":13,"integrity":"sha512-xW/6rwjND7fKukL8raRbMlSQDtxA655D7LFUfQYn8JPZXmx+vXG1X9n/0ijrww/iSJzp+jk7XtVcvnzCYPEemw==","signatures":[{"sig":"MEQCIE1swpKRQEgQMsGrL3Bq81SbCxqvBVXyhiSRLuNXwVi7AiBJljsphDokFofv1s5nPCeluCSE4Q8kolgBkwla2+Gt/A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":279215},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"2e5bbb5d1b64ca4fe66c417b2be9ab870c8fe12b","scripts":{"lint":"$npm_execpath run eslint && $npm_execpath run prettier && $npm_execpath run typecheck","test":"$npm_execpath build:tests && node --test dist-test/**/*.test.js","build":"rm -rf dist && tsup","eslint":"eslint ./src","prettier":"prettier . --check --cache","test:e2e":"$npm_execpath run build:integration && node --test --test-timeout 300000 dist-integration-test/tests/e2e/**/*.test.js","test:only":"$npm_execpath build:tests && node --test-only --test dist-test/**/*.test.js","typecheck":"tsc --noEmit","eslint:fix":"eslint --fix ./src","build:tests":"tsc --project tsconfig.test.json","pretest:e2e":"$npm_execpath run build && pnpm pack","posttest:e2e":"rm -f browserbasehq-sdk-functions-*.tgz","prettier:fix":"prettier . --write --cache","test:integration":"$npm_execpath run build:integration && node --test --test-timeout 120000 dist-integration-test/tests/integration/**/*.test.js","build:integration":"tsc --project tsconfig.integration.json","pretest:integration":"$npm_execpath run build && pnpm pack","posttest:integration":"rm -f browserbasehq-sdk-functions-*.tgz"},"_npmUser":{"name":"ajmcquilkin","email":"ajmcquilkin@gmail.com"},"_npmVersion":"11.6.2","description":"[![NPM version](https://img.shields.io/npm/v/@browserbasehq/sdk-functions.svg)](https://npmjs.org/package/@browserbasehq/sdk-functions)","directories":{},"sideEffects":["./dist/index.js"],"_nodeVersion":"24.11.1","dependencies":{"tsx":"^4.20.5","zod":"^4.1.5","chalk":"^5.6.2","dotenv":"^17.2.3","archiver":"^7.0.1","commander":"^14.0.2","@browserbasehq/sdk":"^2.6.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.1","devDependencies":{"jiti":"^2.5.1","tsup":"^8.5.0","eslint":"^9.35.0","globals":"^16.3.0","ts-node":"^10.9.2","prettier":"3.6.2","@eslint/js":"^9.35.0","typescript":"^5.9.2","@types/node":"^24.3.1","tsconfig-paths":"^4.2.0","@types/archiver":"^7.0.0","typescript-eslint":"^8.42.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-functions_1.0.0_1770702945593_0.8681242770853828","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@browserbasehq/sdk-functions","version":"1.0.1","keywords":[],"author":"","license":"ISC","_id":"@browserbasehq/sdk-functions@1.0.1","maintainers":[{"name":"seanmcguire12","email":"seanmcguire1@outlook.com"},{"name":"kylejeong","email":"kyle@browserbase.com"},{"name":"nosaj","email":"jason@nosaj.io"},{"name":"zerofool","email":"adamjaggard@gmail.com"},{"name":"desaadi","email":"dominiceliassaadi@gmail.com"},{"name":"ajmcquilkin","email":"ajmcquilkin@gmail.com"},{"name":"miguel_g","email":"miguel@browserbase.com"},{"name":"browserz","email":"zhao@browserbase.com"}],"bin":{"bb":"dist/cli.js"},"dist":{"shasum":"a5b29cad9d1aebd630ae9fc4bc160e90e3f49079","tarball":"https://registry.npmjs.org/@browserbasehq/sdk-functions/-/sdk-functions-1.0.1.tgz","fileCount":13,"integrity":"sha512-TC9NXxXDLnCK7mhodIyu9Zfh12/kPLpzQB2q9LYE04G/OcNBds68FoSDf6fmHfd6EHh2qRbopFqhKGjV5FjaAA==","signatures":[{"sig":"MEUCIGHe8s8dYGrnZX9v4MGH6WAEWNmplOVHvuaYKb+L+X6YAiEAoetqanQWE7Ke1k58z2iYHW7SZGx2+Lprk+kA+QzP8rI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":279736},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"f23ee8455332fa5389b7638d9a42e700258160bd","scripts":{"lint":"$npm_execpath run eslint && $npm_execpath run prettier && $npm_execpath run typecheck","test":"$npm_execpath build:tests && node --test dist-test/**/*.test.js","build":"rm -rf dist && tsup","eslint":"eslint ./src","prettier":"prettier . --check --cache","test:e2e":"$npm_execpath run build:integration && node --test --test-timeout 300000 dist-integration-test/tests/e2e/**/*.test.js","test:only":"$npm_execpath build:tests && node --test-only --test dist-test/**/*.test.js","typecheck":"tsc --noEmit","eslint:fix":"eslint --fix ./src","build:tests":"tsc --project tsconfig.test.json","pretest:e2e":"$npm_execpath run build && pnpm pack","posttest:e2e":"rm -f browserbasehq-sdk-functions-*.tgz","prettier:fix":"prettier . --write --cache","test:integration":"$npm_execpath run build:integration && node --test --test-timeout 120000 dist-integration-test/tests/integration/**/*.test.js","build:integration":"tsc --project tsconfig.integration.json","pretest:integration":"$npm_execpath run build && pnpm pack","posttest:integration":"rm -f browserbasehq-sdk-functions-*.tgz"},"_npmUser":{"name":"ajmcquilkin","email":"ajmcquilkin@gmail.com"},"_npmVersion":"11.6.2","description":"[![NPM version](https://img.shields.io/npm/v/@browserbasehq/sdk-functions.svg)](https://npmjs.org/package/@browserbasehq/sdk-functions)","directories":{},"sideEffects":["./dist/index.js"],"_nodeVersion":"24.11.1","dependencies":{"tsx":"^4.20.5","zod":"^4.1.5","chalk":"^5.6.2","dotenv":"^17.2.3","archiver":"^7.0.1","commander":"^14.0.2","@browserbasehq/sdk":"^2.6.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.1","devDependencies":{"jiti":"^2.5.1","tsup":"^8.5.0","eslint":"^9.35.0","globals":"^16.3.0","ts-node":"^10.9.2","prettier":"3.6.2","@eslint/js":"^9.35.0","typescript":"^5.9.2","@types/node":"^24.3.1","tsconfig-paths":"^4.2.0","@types/archiver":"^7.0.0","typescript-eslint":"^8.42.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-functions_1.0.1_1770708494758_0.49173355618540615","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@browserbasehq/sdk-functions","version":"1.0.2","keywords":[],"author":"","license":"ISC","_id":"@browserbasehq/sdk-functions@1.0.2","maintainers":[{"name":"seanmcguire12","email":"seanmcguire1@outlook.com"},{"name":"kylejeong","email":"kyle@browserbase.com"},{"name":"nosaj","email":"jason@nosaj.io"},{"name":"zerofool","email":"adamjaggard@gmail.com"},{"name":"desaadi","email":"dominiceliassaadi@gmail.com"},{"name":"miguel_g","email":"miguel@browserbase.com"},{"name":"browserz","email":"zhao@browserbase.com"},{"name":"nsnx","email":"nick@browserbase.com"}],"homepage":"https://github.com/browserbase/sdk-functions-node#readme","bugs":{"url":"https://github.com/browserbase/sdk-functions-node/issues"},"bin":{"bb":"dist/cli.js"},"dist":{"shasum":"03bb915671aab43da9baa19e9d6c3b9f3613fa22","tarball":"https://registry.npmjs.org/@browserbasehq/sdk-functions/-/sdk-functions-1.0.2.tgz","fileCount":13,"integrity":"sha512-ZGc6qXzqFMxWYGA/hd3FfD9QEhYaMBD5G4vPNvShe6JkvN9zFmAidqFDwm3HgdlpChVmDZ+b0LtnTyKqJsNOWA==","signatures":[{"sig":"MEYCIQDToPWeJK4jgnDXnbF1KLZD0Cc9gS8Y2RGQEastWUWRAgIhAMUCA8HFU3az6l3zfxLUotohSKtlNEjac82Nd1L2WmkY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIGCGiVM0+CSyTbhg5YwbC0Pr4nGuiRWxTtal9i0BsNJfAiEA+Tfm5NwUUjkylr+aopF+2gHVInZuGfLI74ZeMyzOiAo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@browserbasehq%2fsdk-functions@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":278987},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"016ab1009f2e426a882e4c33f352dff4be3534f4","scripts":{"lint":"$npm_execpath run eslint && $npm_execpath run prettier && $npm_execpath run typecheck","test":"$npm_execpath build:tests && node --test dist-test/**/*.test.js","build":"rm -rf dist && tsup","eslint":"eslint ./src","prettier":"prettier . --check --cache","test:e2e":"$npm_execpath run build:integration && node --test --test-timeout 300000 dist-integration-test/tests/e2e/**/*.test.js","test:only":"$npm_execpath build:tests && node --test-only --test dist-test/**/*.test.js","typecheck":"tsc --noEmit","eslint:fix":"eslint --fix ./src","build:tests":"tsc --project tsconfig.test.json","pretest:e2e":"$npm_execpath run build && pnpm pack","posttest:e2e":"rm -f browserbasehq-sdk-functions-*.tgz","prettier:fix":"prettier . --write --cache","test:integration":"$npm_execpath run build:integration && node --test --test-timeout 120000 dist-integration-test/tests/integration/**/*.test.js","build:integration":"tsc --project tsconfig.integration.json","pretest:integration":"$npm_execpath run build && pnpm pack","posttest:integration":"rm -f browserbasehq-sdk-functions-*.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:91f1c040-eeb2-4fc2-8810-4a7f240b0657"}},"repository":{"url":"git+https://github.com/browserbase/sdk-functions-node.git","type":"git"},"_npmVersion":"11.20.0","description":"[![NPM version](https://img.shields.io/npm/v/@browserbasehq/sdk-functions.svg)](https://npmjs.org/package/@browserbasehq/sdk-functions)","directories":{},"sideEffects":["./dist/index.js"],"_nodeVersion":"24.21.0","dependencies":{"tsx":"^4.20.5","zod":"^4.1.5","chalk":"^5.6.2","dotenv":"^17.2.3","archiver":"^7.0.1","commander":"^14.0.2","@browserbasehq/sdk":"^2.10.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.1","devDependencies":{"jiti":"^2.5.1","tsup":"^8.5.0","eslint":"^9.35.0","globals":"^16.3.0","ts-node":"^10.9.2","prettier":"3.6.2","@eslint/js":"^9.35.0","typescript":"^5.9.2","@types/node":"^24.3.1","tsconfig-paths":"^4.2.0","@types/archiver":"^7.0.0","typescript-eslint":"^8.42.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-functions_1.0.2_1790372341369_0.8667654374452918","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"_id":"@browserbasehq/sdk-functions@1.0.3","bin":{"bb":"dist/cli.js"},"bugs":{"url":"https://github.com/browserbase/sdk-functions-node/issues"},"dist":{"shasum":"c102036d0efe1ad941c9aece4d51a1a56eeeca5d","tarball":"https://registry.npmjs.org/@browserbasehq/sdk-functions/-/sdk-functions-1.0.3.tgz","fileCount":14,"integrity":"sha512-M88czUKuBp5sMvfQ4D7JYUBuiCFWEwinmSCE0eIRP/ub/TptsBZXf+VgSjJfRPjWLUlU9ABfqz0TE6O74EQuIg==","signatures":[{"sig":"MEUCIGmySfUwIqj2fpl2hrL8eqHK+UPAF4Z4zytav1HQT0UhAiEA8Ww5EzR9vcqqGPB7TXk/+n+OxtDAsFyrJESb0kcX1Is=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCHCN/O8cxBiexNrulG4RMJUkqN0swUGddKfdjx5BsSKAIgShrYZ0YsbBcdLR95rWIN5dxp335we2SfT98vivZzoOE="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@browserbasehq%2fsdk-functions@1.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":286426},"main":"./dist/index.cjs","name":"@browserbasehq/sdk-functions","type":"module","types":"./dist/index.d.ts","author":"","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"47dbcd842c397b1d3792920f54742cb282f9938a","license":"ISC","scripts":{"lint":"$npm_execpath run eslint && $npm_execpath run prettier && $npm_execpath run typecheck","test":"$npm_execpath build:tests && node --test dist-test/**/*.test.js","build":"rm -rf dist && tsup","eslint":"eslint ./src","prettier":"prettier . --check --cache","test:e2e":"$npm_execpath run build:integration && node --test --test-timeout 300000 dist-integration-test/tests/e2e/**/*.test.js","test:only":"$npm_execpath build:tests && node --test-only --test dist-test/**/*.test.js","typecheck":"tsc --noEmit","eslint:fix":"eslint --fix ./src","build:tests":"tsc --project tsconfig.test.json","pretest:e2e":"$npm_execpath run build && pnpm pack","posttest:e2e":"rm -f browserbasehq-sdk-functions-*.tgz","prettier:fix":"prettier . --write --cache","test:integration":"$npm_execpath run build:integration && node --test --test-timeout 120000 dist-integration-test/tests/integration/**/*.test.js","build:integration":"tsc --project tsconfig.integration.json","pretest:integration":"$npm_execpath run build && pnpm pack","posttest:integration":"rm -f browserbasehq-sdk-functions-*.tgz"},"version":"1.0.3","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"91f1c040-eeb2-4fc2-8810-4a7f240b0657"}},"homepage":"https://github.com/browserbase/sdk-functions-node#readme","keywords":[],"repository":{"url":"git+https://github.com/browserbase/sdk-functions-node.git","type":"git"},"_npmVersion":"11.20.0","description":"[![NPM version](https://img.shields.io/npm/v/@browserbasehq/sdk-functions.svg)](https://npmjs.org/package/@browserbasehq/sdk-functions)","directories":{},"maintainers":[{"name":"seanmcguire12","email":"seanmcguire1@outlook.com"},{"name":"kylejeong","email":"kyle@browserbase.com"},{"name":"nosaj","email":"jason@nosaj.io"},{"name":"zerofool","email":"adamjaggard@gmail.com"},{"name":"desaadi","email":"dominiceliassaadi@gmail.com"},{"name":"miguel_g","email":"miguel@browserbase.com"},{"name":"browserz","email":"zhao@browserbase.com"},{"name":"nsnx","email":"nick@browserbase.com"}],"sideEffects":["./dist/index.js"],"_nodeVersion":"24.21.0","dependencies":{"tsx":"^4.20.5","zod":"^4.1.5","chalk":"^5.6.2","dotenv":"^17.2.3","archiver":"^7.0.1","commander":"^14.0.2","@browserbasehq/sdk":"^2.10.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.1","devDependencies":{"jiti":"^2.5.1","tsup":"^8.5.0","eslint":"^9.35.0","globals":"^16.3.0","ts-node":"^10.9.2","prettier":"3.6.2","@eslint/js":"^9.35.0","typescript":"^5.9.2","@types/node":"^24.3.1","tsconfig-paths":"^4.2.0","@types/archiver":"^7.0.0","typescript-eslint":"^8.42.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk-functions_1.0.3_1790741970881_0.8061442574142881"}}},"time":{"created":"2025-11-20T03:24:18.434Z","modified":"2026-09-30T04:19:32.130Z","0.0.1":"2025-11-20T03:24:18.638Z","0.0.2":"2025-11-20T21:57:17.189Z","0.0.3":"2025-11-23T19:52:42.289Z","0.0.4":"2025-11-24T12:56:36.776Z","0.0.5":"2026-01-13T22:42:12.499Z","0.0.6":"2026-02-10T04:47:43.867Z","1.0.0":"2026-02-10T05:55:45.789Z","1.0.1":"2026-02-10T07:28:14.936Z","1.0.2":"2026-09-25T21:39:01.534Z","1.0.3":"2026-09-30T04:19:30.990Z"},"bugs":{"url":"https://github.com/browserbase/sdk-functions-node/issues"},"license":"ISC","homepage":"https://github.com/browserbase/sdk-functions-node#readme","keywords":[],"repository":{"url":"git+https://github.com/browserbase/sdk-functions-node.git","type":"git"},"description":"[![NPM version](https://img.shields.io/npm/v/@browserbasehq/sdk-functions.svg)](https://npmjs.org/package/@browserbasehq/sdk-functions)","maintainers":[{"name":"seanmcguire12","email":"seanmcguire1@outlook.com"},{"name":"kylejeong","email":"kyle@browserbase.com"},{"name":"nosaj","email":"jason@nosaj.io"},{"name":"zerofool","email":"adamjaggard@gmail.com"},{"name":"desaadi","email":"dominiceliassaadi@gmail.com"},{"name":"miguel_g","email":"miguel@browserbase.com"},{"name":"browserz","email":"zhao@browserbase.com"},{"name":"nsnx","email":"nick@browserbase.com"}],"readme":"# Browserbase Functions Node SDK\n\n[![NPM version](https://img.shields.io/npm/v/@browserbasehq/sdk-functions.svg)](https://npmjs.org/package/@browserbasehq/sdk-functions)\n\nThe Browserbase Functions SDK lets you define, develop, and deploy serverless browser automation functions on [Browserbase](https://browserbase.com). Each function gets a managed browser session — write your automation logic, test it locally, and publish it to the cloud.\n\nThe full documentation can be found on [docs.browserbase.com](https://docs.browserbase.com/functions/quickstart).\n\n## Installation\n\n```sh\npnpm add @browserbasehq/sdk-functions\n```\n\nor with npm:\n\n```sh\nnpm install @browserbasehq/sdk-functions\n```\n\n## Quick Start\n\nScaffold a new project with the CLI:\n\n```sh\npnpm dlx @browserbasehq/sdk-functions init my-project\ncd my-project\n```\n\nAdd your Browserbase API key to `.env`:\n\n```sh\nBROWSERBASE_API_KEY=your_api_key_here\n```\n\nThe starter function uses [Stagehand](https://docs.stagehand.dev), which needs its extension in the browser session. Upload the extension then paste the returned `id` into `extensionId` in `index.ts`:\n\n```sh\nbrowse cloud extensions upload node_modules/@browserbasehq/stagehand/dist/assets/stagehand-extension.zip\n```\n\nStart the local development server:\n\n```sh\npnpm bb dev index.ts\n```\n\nWhen ready, publish to Browserbase:\n\n```sh\npnpm bb publish index.ts\n```\n\nThen [attach your API key as a secret](#secrets) to the published function.\n\n## Usage\n\n### Basic Function\n\n```ts\nimport { defineFn } from \"@browserbasehq/sdk-functions\";\n\ndefineFn(\"hello-world\", async () => {\n  return { message: \"Hello from Browserbase!\" };\n});\n```\n\n### Browser Automation\n\nEvery function receives a `context` with a managed browser session. Connect [Stagehand](https://docs.stagehand.dev) to it by session ID:\n\n```ts\nimport { defineFn } from \"@browserbasehq/sdk-functions\";\nimport { browserbase, Stagehand } from \"@browserbasehq/stagehand\";\nimport { z } from \"zod/v4\";\n\ndefineFn(\n  \"scrape-titles\",\n  async (context) => {\n    const browser = await browserbase.connect({\n      // The local dev server has no secrets, so fall back to .env.\n      apiKey:\n        context.secrets.BROWSERBASE_API_KEY ?? process.env.BROWSERBASE_API_KEY!,\n      sessionId: context.session.id,\n    });\n    // In this example, Stagehand uses the Model Gateway where Browserbase charges for the tokens\n    const stagehand = await Stagehand.create({ browser });\n    const page = (await browser.context.activePage())!;\n\n    await page.goto(\"https://news.ycombinator.com\");\n    const { data } = await stagehand.extract(\n      \"Extract the titles of the top 5 stories\",\n      z.object({ titles: z.array(z.string()).max(5) }),\n    );\n\n    await stagehand.close();\n    return { titles: data.titles };\n  },\n  // The ID from `browse cloud extensions upload`. Stagehand needs its extension in the session.\n  { sessionConfig: { extensionId: \"your-extension-id\" } },\n);\n```\n\n### Parameter Validation\n\nUse [Zod](https://zod.dev) schemas to validate parameters passed to your function:\n\n```ts\nimport { defineFn } from \"@browserbasehq/sdk-functions\";\nimport z from \"zod\";\n\ndefineFn(\n  \"multiply\",\n  async (_context, params) => {\n    return { result: params.a * params.b };\n  },\n  {\n    parametersSchema: z.object({\n      a: z.number(),\n      b: z.number(),\n    }),\n  },\n);\n```\n\n### Custom Browser Configuration\n\nPass `sessionConfig` to customize the browser session (uses the same options as the [Browserbase SDK session create params](https://docs.browserbase.com/reference/api/create-a-session)):\n\n```ts\nimport { defineFn } from \"@browserbasehq/sdk-functions\";\nimport { browserbase, Stagehand } from \"@browserbasehq/stagehand\";\nimport { z } from \"zod/v4\";\n\ndefineFn(\n  \"stealth-scraper\",\n  async (context) => {\n    const browser = await browserbase.connect({\n      apiKey:\n        context.secrets.BROWSERBASE_API_KEY ?? process.env.BROWSERBASE_API_KEY!,\n      sessionId: context.session.id,\n    });\n    const stagehand = await Stagehand.create({ browser });\n    const page = (await browser.context.activePage())!;\n\n    await page.goto(\"https://example.com\");\n    const { data } = await stagehand.extract(\n      \"Extract the main text of the page\",\n      z.object({ content: z.string() }),\n    );\n\n    await stagehand.close();\n    return { content: data.content };\n  },\n  {\n    sessionConfig: {\n      extensionId: \"your-extension-id\", // Stagehand's extension\n      browserSettings: { advancedStealth: true },\n    },\n  },\n);\n```\n\n### Secrets\n\nKeep API keys in encrypted project secrets. Each secret attached to a function is available as `context.secrets[name]`. The Stagehand examples read `BROWSERBASE_API_KEY` this way. They don't need a model API key: without a `model` option, Stagehand uses the [Browserbase Model Gateway](https://docs.stagehand.dev/v4/configuration/models#model-gateway), which picks a model for each call. Browserbase charges for the tokens.\n\nCreate the secret and attach it to the published function with the [`browse` CLI](https://www.npmjs.com/package/browse):\n\n```sh\nbrowse cloud secrets create BROWSERBASE_API_KEY --env BROWSERBASE_API_KEY\nbrowse functions secrets attach <functionId> <secretId>\n```\n\nUse the Function ID from `builtFunctions[].id` in the publish output. The local development server doesn't pass secrets, so the examples fall back to the values in `.env`.\n\n## CLI Reference\n\nThe `bb` CLI is included with the package.\n\n| Command                   | Description                                                    |\n| ------------------------- | -------------------------------------------------------------- |\n| `bb init [project-name]`  | Scaffold a new project (defaults to `my-browserbase-function`) |\n| `bb dev <entrypoint>`     | Start a local development server                               |\n| `bb publish <entrypoint>` | Deploy your function to Browserbase                            |\n| `bb invoke <functionId>`  | Invoke a deployed function                                     |\n\n### `bb init`\n\n```sh\nbb init my-project\nbb init my-project --package-manager npm\n```\n\nOptions:\n\n- `-p, --package-manager <manager>` — Package manager to use (`npm` or `pnpm`, defaults to `pnpm`)\n\n### `bb dev`\n\n```sh\nbb dev index.ts\nbb dev index.ts --port 3000\n```\n\nOptions:\n\n- `-p, --port <number>` — Port to listen on (default: `14113`)\n- `-h, --host <string>` — Host to bind to (default: `127.0.0.1`)\n\n### `bb publish`\n\n```sh\nbb publish index.ts\nbb publish index.ts --dry-run\n```\n\nOptions:\n\n- `--dry-run` — Show what would be published without uploading\n- `-u, --api-url <url>` — Custom API endpoint URL\n\n### `bb invoke`\n\n```sh\nbb invoke <functionId>\nbb invoke <functionId> --params '{\"key\": \"value\"}'\n```\n\nOptions:\n\n- `-p, --params <json>` — JSON parameters to pass to the function\n- `--no-wait` — Don't wait for the invocation to complete\n- `--check-status <invocationId>` — Check the status of an existing invocation\n- `-u, --api-url <url>` — Custom API endpoint URL\n\n## Configuration\n\nSet variables in your environment or in a `.env` file for the CLI and the local development server. Deployed functions read them from [secrets](#secrets) instead.\n\n| Variable              | Required | Description              |\n| --------------------- | -------- | ------------------------ |\n| `BROWSERBASE_API_KEY` | Yes      | Your Browserbase API key |\n\nGet your API key from [browserbase.com](https://browserbase.com).\n\n## Requirements\n\n- Node.js 18+\n- TypeScript >= 4.5\n","readmeFilename":"README.md"}