{"name":"@builder.io/partytown","version":"0.10.3","keywords":["web worker","3rd-party","third-party","analytics","webapp","performance","lighthouse","core web vitals","react"],"author":{"name":"Builder.io Team"},"license":"MIT","_id":"@builder.io/partytown@0.10.3","maintainers":[{"name":"steve8708","email":"sewell.steve@gmail.com"},{"name":"samijaber","email":"jabersami@gmail.com"},{"name":"teleaziz123","email":"aziz@builder.io"},{"name":"mrkoreye","email":"korey@builder.io"},{"name":"strd6","email":"daniel@danielx.net"},{"name":"mhevery","email":"misko@hevery.com"},{"name":"adamdbradley","email":"adam@builder.io"},{"name":"gustavohgs","email":"gustavo@builder.io"},{"name":"manucorporat","email":"manu.mtza@gmail.com"},{"name":"shyam-builder","email":"shyam@builder.io"},{"name":"sanyamkamat","email":"sanyamkamat@gmail.com"},{"name":"murtaza-haveliwala","email":"murtaza@builder.io"},{"name":"harmeet.builder","email":"harmeet@builder.io"},{"name":"midhunadarvin","email":"midhunadarvin@gmail.com"},{"name":"kylefowler","email":"kyle.e.fowler@gmail.com"},{"name":"builderio-bot","email":"sami+builderio-bot@builder.io"},{"name":"armela","email":"armela@builder.io"},{"name":"anaghavarhade","email":"anagha@builder.io"},{"name":"sidmohanty11","email":"sidmohanty11@gmail.com"},{"name":"wmertens","email":"Wout.Mertens+npm@gmail.com"},{"name":"jackshelton","email":"me@jackshelton.com"},{"name":"gioboa","email":"giorgiob.boa@gmail.com"},{"name":"shairez","email":"shai@hirez.io"}],"homepage":"https://github.com/BuilderIO/partytown#readme","bugs":{"url":"https://github.com/BuilderIO/partytown/issues"},"bin":{"partytown":"bin/partytown.cjs"},"dist":{"shasum":"32d7179cab9aee1f7cdb3093340039cbd3466252","tarball":"http://registry-npm.ywwl.com/@builder.io/partytown/download/@builder.io/partytown-0.10.3.tgz","fileCount":31,"integrity":"sha512-N2SWA3c5vEad3rgdAFM3zMb6uc7aXqibkgAz4ijvYzycgQXJ4dE5oH6fGFMXSQWj6ayVlLT1/CmpflYUJHfmQg==","signatures":[{"sig":"MEQCIFxRFgVE0sAErr1wSsOxmhvkQlNZ0A2BGdTXGe9Np/smAiBJAG6bllfg2rd6ga6G/+rFLV9t/NG9UwzSaU90eKHX5w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":393984,"size":97253,"noattachment":false,"key":"/@builder.io/partytown/-/@builder.io/partytown-0.10.3.tgz"},"main":"index.cjs","type":"module","types":"index.d.ts","module":"index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"},"./react":{"types":"./react/index.d.ts","import":"./react/index.mjs","require":"./react/index.cjs"},"./utils":{"types":"./utils/index.d.ts","import":"./utils/index.mjs","require":"./utils/index.cjs"},"./services":{"types":"./services/index.d.ts","import":"./services/index.mjs","require":"./services/index.cjs"},"./integration":{"types":"./integration/index.d.ts","import":"./integration/index.mjs","require":"./integration/index.cjs"},"./package.json":"./package.json","./react/index.cjs":"./react/index.cjs","./react/index.mjs":"./react/index.mjs","./utils/index.cjs":"./utils/index.cjs","./utils/index.mjs":"./utils/index.mjs","./services/index.cjs":"./services/index.cjs","./services/index.mjs":"./services/index.mjs","./integration/index.cjs":"./integration/index.cjs","./integration/index.mjs":"./integration/index.mjs"},"gitHead":"75d8fd1c1505a1a59fc7d24dfa2c1a5ca17a914b","scripts":{"dev":"tsc && concurrently \"npm:build.watch\" \"npm:tsc.watch\" -n build,tsc -c magenta,yellow","fmt":"prettier --config package.json --write src scripts","test":"npm run test.unit && npm run test.chromium","build":"tsc && rollup -c scripts/rollup.config.js","serve":"node scripts/serve.cjs 4000","start":"npm run dev","release":"npm run build && npm test && np --no-tests","version":"npm run build.prod","benchmark":"node tests/benchmarks/run.cjs","fmt.check":"prettier --config package.json --check src scripts","test.unit":"uvu -r tsm tests/unit","tsc.watch":"tsc -w","build.prod":"tsc && rollup -c scripts/rollup.config.js --configReleaseBuild","build.site":"npm run build && cd docs/site && npm i && npm run build && node ../../scripts/copy-site.cjs","serve.test":"node scripts/serve.cjs 4001","build.watch":"rollup -c scripts/rollup.config.js -w --configDev","test.webkit":"playwright test tests/integrations tests/platform --browser=webkit","test.atomics":"playwright test tests/integrations tests/platform --config playwright.atomics.config.ts --browser=chromium","test.firefox":"playwright test tests/integrations tests/platform --browser=firefox","serve.atomics":"node scripts/serve.cjs 4002 --atomics","test.chromium":"playwright test tests/integrations tests/platform --browser=chromium","serve.atomics.test":"node scripts/serve.cjs 4003 --atomics","test.nextjs.webkit":"cd tests/nextjs && npm i && playwright test --config playwright.nextjs.ts --browser=webkit","test.nextjs.firefox":"cd tests/nextjs && npm i && playwright test --config playwright.nextjs.ts --browser=firefox","test.nextjs.chromium":"cd tests/nextjs && npm i && playwright test --config playwright.nextjs.ts --browser=chromium"},"_npmUser":{"name":"gioboa","email":"giorgiob.boa@gmail.com"},"prettier":{"semi":true,"useTabs":false,"tabWidth":2,"printWidth":100,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"deprecated":"Use @qwik.dev/partytown instead","repository":{"url":"git+https://github.com/BuilderIO/partytown.git","type":"git"},"_npmVersion":"10.2.3","description":"Relocate resource intensive third-party scripts off of the main thread and into a web worker.","directories":{},"_nodeVersion":"20.10.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.0.5","devDependencies":{"np":"^7.6.1","tsm":"^2.2.1","uvu":"^0.5.3","tslib":"^2.3.1","domino":"^2.1.6","rollup":"^3.29.1","fs-extra":"^11.1.1","prettier":"^2.6.0","gzip-size":"^6.0.0","playwright":"^1.17.2","typescript":"^4.6.2","@types/node":"^18.17.15","@types/react":"^17.0.42","concurrently":"^7.0.0","@types/fs-extra":"^11.0.2","@playwright/test":"^1.17.1","@rollup/plugin-terser":"^0.4.3","@microsoft/api-extractor":"^7.19.5"},"_npmOperationalInternal":{"tmp":"tmp/partytown_0.10.3_1734733031708_0.6396891747500415","host":"s3://npm-registry-packages-npm-production"},"readme":"# Partytown 🎉\n\n<img width=\"838\" alt=\"Partytown github fit 2x\" src=\"https://user-images.githubusercontent.com/452425/134568488-f36f4640-9ada-4a78-a969-2b8315cf7f47.png\">\n\n- [Introducing Partytown: Run Third-Party Scripts From a Web Worker](https://dev.to/adamdbradley/introducing-partytown-run-third-party-scripts-from-a-web-worker-2cnp)\n- [How Partytown's Sync Communication Works](https://dev.to/adamdbradley/how-partytown-s-sync-communication-works-4244)\n- [How we cut 99% of our JavaScript with Qwik + Partytown](https://www.builder.io/blog/how-we-cut-99-percent-js-with-qwik-and-partytown)\n- [Partytown is now in Beta](https://www.builder.io/blog/partytown-is-now-in-beta)\n\n> A fun location for your third-party scripts to hang out\n\nPartytown is a lazy-loaded library to help relocate resource intensive scripts into a [web worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API), and off of the [main thread](https://developer.mozilla.org/en-US/docs/Glossary/Main_thread). Its goal is to help speed up sites by dedicating the main thread to your code, and offloading third-party scripts to a web worker.\n\n> Note: Partytown is still in beta and not guaranteed to work in every scenario. Please see our [FAQ](https://partytown.builder.io/faq) and [Trade-Off](https://partytown.builder.io/trade-offs) sections for more info.\n\nThe philosophy is that the main thread should be dedicated to your code, and any scripts that are not required to be in the [critical path](https://developers.google.com/web/fundamentals/performance/critical-rendering-path) should be moved to a web worker. Main thread performance is, without question, more important than web worker thread performance.\n\n- [Getting Started](https://partytown.builder.io/getting-started)\n- [Integrations](https://partytown.builder.io/integrations)\n- [Configuration](https://partytown.builder.io/configuration)\n- [Releases](https://github.com/BuilderIO/partytown/releases)\n- [FAQs](https://partytown.builder.io/faq)\n\n![Without Partytown and With Partytown: Your code and third-party code compete for main thread resources](https://user-images.githubusercontent.com/452425/152393346-6f721a4f-3f66-410a-8878-a2b49e24307f.png)\n\n## Community\n\n- [@QwikDev](https://twitter.com/QwikDev)\n- [@Builderio](https://twitter.com/builderio)\n- [Local Development](https://github.com/BuilderIO/partytown/blob/main/CONTRIBUTING.md#local-development)\n- [For Plugin Authors / Developers](https://github.com/BuilderIO/partytown/blob/main/CONTRIBUTING.md#plugin-authors-developers)\n\n## Related Projects\n\n- [Qwik](https://github.com/BuilderIO/qwik): An open-source framework designed for best possible time to interactive, by focusing on resumability of server-side-rendering of HTML, and fine-grained lazy-loading of code.\n- [Mitosis](https://github.com/BuilderIO/mitosis): Write components once, run everywhere. Compiles to Vue, React, Solid, Angular, Svelte, and more.\n- [Builder](https://github.com/BuilderIO/builder): Drag and drop page builder and CMS for React, Vue, Angular, and more.\n\n<br>\n<br>\n<p align=\"center\">\n   <a href=\"https://www.builder.io/m/developers\">\n      <picture>\n         <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://user-images.githubusercontent.com/844291/230786554-eb225eeb-2f6b-4286-b8c2-535b1131744a.png\">\n         <img width=\"250\" alt=\"Made with love by Builder.io\" src=\"https://user-images.githubusercontent.com/844291/230786555-a58479e4-75f3-4222-a6eb-74c5af953eac.png\">\n       </picture>\n   </a>\n</p>\n","publish_time":1734733031903,"_cnpm_publish_time":1734733031903,"dist-tags":{"latest":"0.10.3"}}