{"name":"@builder.io/partytown","version":"0.3.6","description":"Relocate resource intensive third-party scripts off of the main thread and into a web worker.","license":"MIT","main":"index.cjs","module":"index.mjs","types":"index.d.ts","type":"module","exports":{"./integration":{"import":"./integration/index.mjs","require":"./integration/index.cjs"},"./integration/index.mjs":"./integration/index.mjs","./integration/index.cjs":"./integration/index.cjs","./react":{"import":"./react/index.mjs","require":"./react/index.cjs"},"./react/index.mjs":"./react/index.mjs","./react/index.cjs":"./react/index.cjs","./services/index.mjs":"./services/index.mjs","./services/index.cjs":"./services/index.cjs","./services":{"import":"./services/index.mjs","require":"./services/index.cjs"},"./utils":{"import":"./utils/index.mjs","require":"./utils/index.cjs"},"./utils/index.mjs":"./utils/index.mjs","./utils/index.cjs":"./utils/index.cjs","./package.json":"./package.json",".":{"import":"./index.mjs","require":"./index.cjs"}},"bin":{"partytown":"bin/partytown.cjs"},"scripts":{"build":"tsc && rollup -c scripts/rollup.config.js","build.prod":"tsc && rollup -c scripts/rollup.config.js --configApi","build.site":"npm run build && cd docs/site && npm i && npm run build && node ../../scripts/copy-site.cjs","build.watch":"rollup -c scripts/rollup.config.js -w --configDev","start":"npm run dev","dev":"tsc && concurrently \"npm:build.watch\" \"npm:tsc.watch\" -n build,tsc -c magenta,yellow","release":"npm run build && npm test && np --no-tests","serve":"node scripts/serve.cjs 4000","serve.test":"node scripts/serve.cjs 4001","serve.atomics":"node scripts/serve.cjs 4002 --atomics","serve.atomics.test":"node scripts/serve.cjs 4003 --atomics","test":"npm run test.unit && npm run test.chromium","test.atomics":"playwright test tests/integrations tests/platform --config playwright.atomics.config.ts --browser=chromium","test.chromium":"playwright test tests/integrations tests/platform --browser=chromium","test.webkit":"playwright test tests/integrations tests/platform --browser=webkit","test.nextjs.chromium":"cd tests/nextjs && npm i && playwright test --config playwright.nextjs.ts --browser=chromium","test.nextjs.webkit":"cd tests/nextjs && npm i && playwright test --config playwright.nextjs.ts --browser=webkit","benchmark":"node tests/benchmarks/run.cjs","test.unit":"uvu -r tsm tests/unit","tsc.watch":"tsc -w","version":"npm run build.prod","fmt":"prettier --config package.json --write src"},"devDependencies":{"@microsoft/api-extractor":"^7.19.2","@playwright/test":"^1.17.1","@types/fs-extra":"^9.0.13","@types/react":"^17.0.37","concurrently":"^6.4.0","domino":"^2.1.6","fs-extra":"^10.0.0","gzip-size":"^6.0.0","node-fetch":"^3.1.0","np":"^7.6.0","playwright":"^1.17.2","prettier":"^2.5.1","rollup":"^2.61.1","rollup-plugin-terser":"^7.0.2","tslib":"^2.3.1","tsm":"^2.2.1","typescript":"^4.5.4","uvu":"^0.5.2"},"prettier":{"trailingComma":"es5","tabWidth":2,"semi":true,"singleQuote":true,"printWidth":100,"useTabs":false,"quoteProps":"consistent"},"author":{"name":"Builder.io Team"},"homepage":"https://github.com/BuilderIO/partytown#readme","repository":{"type":"git","url":"git+https://github.com/BuilderIO/partytown.git"},"keywords":["web worker","3rd-party","third-party","analytics","webapp","performance","lighthouse","core web vitals","react"],"publishConfig":{"access":"public"},"gitHead":"0b613834d905284edd574160ee375a0891248bc2","bugs":{"url":"https://github.com/BuilderIO/partytown/issues"},"_id":"@builder.io/partytown@0.3.6","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-hmIfzL6rCxxM76ggyM0LMUp/LTJfLzf0JRrbzXFkNYJLw8ZTH8A4N9o170Aa7/EWbvNdk5SD4hBKIKWw03BgZg==","shasum":"7bce38dceae58c70931cae95cdab31f6369f5d98","tarball":"http://registry-npm.ywwl.com/@builder.io/partytown/download/@builder.io/partytown-0.3.6.tgz","fileCount":34,"unpackedSize":314622,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDp6UACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrAgg/9ExXxYLxOwf09xeXjMn1zPbTt3aXs1w3W5WjufpI48PWSM0q1\r\npZv5mu4Ly7asArEY9v5ZGOo3PazfBcMvAFnT8QBmsP1UwIGeynXv0ALbqzuE\r\ntp1VSATidUZudcBTtAsmYxkZmXlP9a+nIvwpS+5zQEZ8rLeRwFO3qaj6Wul5\r\nMhIcHzRaNTV3I62M4NAh9sjmwpLgGkxVsSDYUVnTdEwpzBiWS2auYW6LUB6C\r\n3PUOHy1mEH3VOp7B07lWhK1nYpt64vkEq5rC+YqltE0x8lGLnNkNt0g8TEFa\r\n92dvPA+h6W9PjvnIo1LYdeWSYHtRT781Sk0M3vstIdJ5qwCW1lTh5cnKa+Ly\r\nc7vZJxB7OP0zwOpnxlaIIoBNuDHDwE29Z87fgQmT8dwIW0raHCXYu4clBbW3\r\nJ+vxrRl37dQP9QRpWbOKXFfNlGihklteM/EuvRJLf7GjcB2QzUT+w+I8y+8p\r\n7x04qS+L0+OpUJPLCOQ6x+8a0Q5KQqSGYB7DJnOUXYqwJiQXOGo2iWC5atjq\r\nyQ4HQCngEM11ualO+lI7PhnCQgxorl9Cx9h7jiVZ/JhwFaasJmpv5UoFvSY4\r\nqC0jkcW45n5UcWm1Z13BkOkSkZMQSPLGgJkJI0wD3kDM0/btbaYyCFiAhKew\r\n85VSIwjoE98ndUMDRTnm861twzi9GIgJfd8=\r\n=2UUv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIExbeNIYXEh6GG7DNDY3oqN+HlxOth5l1dc1ZQLP7v02AiEAghjYJRMHp5oOfF70xLBBr3ucVGZS57HfnNGsYugLGDw="}],"size":78200,"noattachment":false,"key":"/@builder.io/partytown/-/@builder.io/partytown-0.3.6.tgz"},"_npmUser":{"name":"adamdbradley","email":"adam@builder.io"},"directories":{},"maintainers":[{"name":"shyam-builder","email":"shyam@builder.io"},{"name":"manucorporat","email":"manu.mtza@gmail.com"},{"name":"steve8708","email":"sewell.steve@gmail.com"},{"name":"samijaber","email":"jabersami@gmail.com"},{"name":"caleb.amsden","email":"caleb@builder.io"},{"name":"teleaziz123","email":"aziz@builder.io"},{"name":"mrkoreye","email":"korey@builder.io"},{"name":"mandx","email":"gmandx@gmail.com"},{"name":"dkendal","email":"dylan@builder.io"},{"name":"mhevery","email":"misko@hevery.com"},{"name":"adamdbradley","email":"adam@builder.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/partytown_0.3.6_1645125268217_0.12372439362239085"},"_hasShrinkwrap":false,"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":1645125268439,"deprecated":"Use @qwik.dev/partytown instead","_cnpm_publish_time":1645125268439,"dist-tags":{"latest":"0.10.3"}}