{"name":"@builder.io/partytown","version":"0.0.3","description":"Relocate resource intensive 3rd-party scripts off of the main thread and into a web worker.","license":"MIT","exports":{"./react":{"import":"./index.mjs","require":"./index.cjs"}},"scripts":{"build":"tsc && rollup -c","dev":"rollup -c -w --configDev","serve":"sirv tests --port 4000 --dev","serve.test":"sirv tests --port 5000  --dev --quiet","playwright":"playwright test --browser=chromium","playwright.webkit":"playwright test --browser=webkit","release":"np --no-2fa","version":"npm run build","test":"start-server-and-test serve.test http://localhost:5000/ playwright","test.webkit":"start-server-and-test serve.test http://localhost:5000/ playwright.webkit"},"devDependencies":{"@microsoft/api-extractor":"^7.18.9","@playwright/test":"^1.14.1","@rollup/plugin-typescript":"^8.2.5","@types/fs-extra":"^9.0.12","@types/react":"^17.0.21","fs-extra":"^10.0.0","gzip-size":"^6.0.0","np":"^7.5.0","prettier":"^2.4.0","rollup":"^2.56.3","rollup-plugin-terser":"^7.0.2","sirv-cli":"^1.0.14","start-server-and-test":"^1.14.0","ts-jest":"^27.0.5","tslib":"^2.3.1","typescript":"^4.4.3"},"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":"b009038bb6cf2d443e749a724c372d1ff4a1ed93","bugs":{"url":"https://github.com/BuilderIO/partytown/issues"},"_id":"@builder.io/partytown@0.0.3","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-O0OqBqUL9zTHyBizss7tAUm/SqGLImQiqm26vQS4fHheVftA/YQZS8X9q/7mGWxMX269k+fJW2MiKyXPC11rcQ==","shasum":"e558618fb3b46b4d1dd7ae595443f4b7419536e3","tarball":"http://registry-npm.ywwl.com/@builder.io/partytown/download/@builder.io/partytown-0.0.3.tgz","fileCount":15,"unpackedSize":105040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQhq4CRA9TVsSAnZWagAABIUP/39kZ9viDsc7vWR4dXIY\nkF1j1i1m2PGcyLUBGGr863Se5cnXMyUjlZBIGMiEV81Fe5+OPezCZeFviJ5P\n3BiXnztap6vYC2AJn3wqmCTOs3QTZR6qjsG1rYVLLE0buIfZDlp4gpp7nIZd\ncsnzjqI535iNt569FVskLTb9DG1nvACULJBq1KpJJveVJArLglcL9XhN1eWf\n5jhDzmh24fszRXEe2g1rBbK2zD4CcV7EOILEVTaO7wn0st/fjABuq5cXa41+\nD4Av+BxiSBUttA0O8DP+BpqfUSbIvqNZ1BCkZwaF/zxxyi/4TjxOC23YftS9\njBVj46scVI5fq3DUJXBU1LUYtmTbp8ioNO7nfcQuwHWla72WD+C4C5m6TbDR\nUix9d/LtMSVN0bVZxPXEoKtE2qqxshsaClFeLW2xYwZwS0E+kRc0TQTuyuZM\njFhTpthZ9/700p64ozrI4fOAAq9UvXSZKAv8trSW8tB6XR9Fxo+xPxsgtnLA\nHmfXdby1l9M6ElYbiUsK9lwMogjOXYMigRhxQ4c6CQsuCx9mGDlF5ShXG+h8\nGAQYX6e4IOyQZabnJLHaTeJp5531rkaZOExpxUs6ulM1V0lOHAf+ZXyY/y39\nGcCerMg5TBA69uXa0VKZRs5ORmVjsfiG7P3j4g+97h89fYa3sdlYj7HZ5NQX\neeZL\r\n=HIoZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC46G4ZGRrVw1lmQHIYfoDbkYf68t/JmOnzc4u5XQUbrQIgQzaEfZ098mCEb7mk2Xm8fEJ6Dh3y+8a9TM3TGbYFItE="}],"size":29268,"noattachment":false,"key":"/@builder.io/partytown/-/@builder.io/partytown-0.0.3.tgz"},"_npmUser":{"name":"adamdbradley","email":"adam@builder.io"},"directories":{},"maintainers":[{"name":"steve8708","email":"sewell.steve@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.0.3_1631722168455_0.2660373242229477"},"_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":1631722168654,"deprecated":"Use @qwik.dev/partytown instead","_cnpm_publish_time":1631722168654,"dist-tags":{"latest":"0.10.3"}}