{"_id":"@braneproject/partytown","_rev":"1-418807f57847255fb4744f4f05669da6","name":"@braneproject/partytown","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@braneproject/partytown","version":"0.1.0","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","./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"}},"scripts":{"build":"tsc && rollup -c scripts/rollup.config.js","build.prod":"tsc && rollup -c scripts/rollup.config.js --configApi","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","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","prepack":"npm run build.prod"},"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"},"homepage":"https://github.com/braneproject/partytown#readme","repository":{"type":"git","url":"git+https://github.com/braneproject/partytown.git"},"keywords":["web worker","3rd-party","third-party","analytics","webapp","performance","lighthouse","core web vitals","react"],"publishConfig":{"access":"public"},"gitHead":"495bd529dc85ac736553498e0c6268432f69fa72","bugs":{"url":"https://github.com/braneproject/partytown/issues"},"_id":"@braneproject/partytown@0.1.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-Ml9bt3ib6hErYTQIA8sU9c87n93iAAAOdSCrbVjJJbVY7kCynSH4zY5paQBTQyWPx2jCvC7ca+XEFislYqozKQ==","shasum":"590f3cf7b8f451fd58608367274bd149812b122b","tarball":"https://registry.npmjs.org/@braneproject/partytown/-/partytown-0.1.0.tgz","fileCount":29,"unpackedSize":307063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7SyoCRA9TVsSAnZWagAAfUoP+gKz6Mv0Kxh2H1nQvK1n\nwt1J1yFeuRz/sJ6lMQJ3pQwU59KKvOxULmJm3tddgAppEUFH4yuBlb4S/KzU\nnAob7AKKSDxejqgwjpW0qElnFQUEhB+bvH7z7iro1lKx6u+WHLKc2Jr2CsJk\nS+QQn/uE86IuLPzaL+Xu5cuhXOxnXv4zukrdSJmKxqfkYdLDvY0ktRrutSed\nYI1/3VlgcwETNLEuQ7YT7evmav0lR7JpWMm+zA1S9VUuQhyGjxf8piLhJBcO\nkBNYYb0z9vxPSGBTrXc6ThysRFOLZziW0SaOnhFrKMSUj80Ir1NKypGD9kqX\nlxILlbVc1gxsvS65bEyZvgn8yYXHUQTfSB+lGax/BazBNftOBoYniiukrDWF\nouOyP7wlEvGu3BmlRSuIUKWoLF3D0tOCbwm/KwfamrCSLgLPsc1iHY99UwkV\nIpS/qdoVYxWv17aXZNju7poOjGPpEElwMyKQ1Qas3FqrdEFslpcMwmFIFpgA\nefQGdSkH7nl3FK5Ukf39Pr3XEpQPG+lTXjNMx6OdyFYhqpdcRZTNGvxaYZmI\nkFeBJyta18YjqxpI36KNoIIaOig0n9lnLQLb9sZZaWq92YqwgWaAkV3XwDzR\nkGOvP3rl0OQ6REg61FQvNIoAsTD5WRz6eIWFapmGIAosjTGzuF9l9amZGj5F\ncooN\r\n=Caqf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH0Z6oy1UiAB1FyBK7YUC4PsRX3+GoRPUiBN9w7R8J8fAiBiI936FTILWkgBzw++jLdQFlJYOox08lSPsypvw08Aog=="}]},"_npmUser":{"name":"cometkim","email":"hey@hyeseong.kim"},"directories":{},"maintainers":[{"name":"cometkim","email":"hey@hyeseong.kim"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/partytown_0.1.0_1642933416693_0.8393717603632977"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-23T10:23:36.640Z","0.1.0":"2022-01-23T10:23:36.828Z","modified":"2022-04-04T20:26:50.435Z"},"maintainers":[{"name":"cometkim","email":"hey@hyeseong.kim"}],"description":"Relocate resource intensive third-party scripts off of the main thread and into a web worker.","homepage":"https://github.com/braneproject/partytown#readme","keywords":["web worker","3rd-party","third-party","analytics","webapp","performance","lighthouse","core web vitals","react"],"repository":{"type":"git","url":"git+https://github.com/braneproject/partytown.git"},"bugs":{"url":"https://github.com/braneproject/partytown/issues"},"license":"MIT","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\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. See the [example page](https://partytown.builder.io/example/) and [test pages](https://partytown.builder.io/) for some live demos.\n\n[Getting Started](https://github.com/BuilderIO/partytown/wiki/Getting-Started)\n\n![Without Partytown and With Partytown: Your code and third-party code compete for main thread resources](https://user-images.githubusercontent.com/452425/149344822-53154491-fd70-47ad-8c92-3ff5e4ccb4ec.jpeg)\n\n## Docs\n\n- [Introduction](https://github.com/BuilderIO/partytown/wiki)\n  - [Third-Party Scripts](https://github.com/BuilderIO/partytown/wiki#negative-impacts-from-third-party-scripts)\n  - [Goals](https://github.com/BuilderIO/partytown/wiki#goals)\n  - [Web Workers](https://github.com/BuilderIO/partytown/wiki#web-workers)\n  - [Trade-Offs](https://github.com/BuilderIO/partytown/wiki#trade-offs)\n  - [Use-Cases](https://github.com/BuilderIO/partytown/wiki#use-cases)\n- [How Does It Work?](https://github.com/BuilderIO/partytown/wiki/How-Does-It-Work%3F)\n- [Getting Started](https://github.com/BuilderIO/partytown/wiki/Getting-Started)\n  - [React](https://github.com/BuilderIO/partytown/wiki/Getting-Started#react)\n  - [Webpack](https://github.com/BuilderIO/partytown/wiki/Getting-Started#webpack)\n- [Configuration](https://github.com/BuilderIO/partytown/wiki/Configuration)\n- [Forwarding Events and Triggers](https://github.com/BuilderIO/partytown/wiki/Forwarding-Events-and-Triggers)\n- [Sandboxing](https://github.com/BuilderIO/partytown/wiki/Sandboxing)\n- [Proxying Requests](https://github.com/BuilderIO/partytown/wiki/Proxying-Requests)\n- [Integrating Services](https://github.com/BuilderIO/partytown/wiki/Integrating-Services)\n- [Debugging](https://github.com/BuilderIO/partytown/wiki/Debugging)\n- [Enabling Atomics](https://github.com/BuilderIO/partytown/wiki/Enabling-Atomics)\n- [Distribution](https://github.com/BuilderIO/partytown/wiki/Distribution)\n- [Browser Support](https://github.com/BuilderIO/partytown/wiki/Browser-Support)\n\n## Community\n\n- [Partytown Discord](https://discord.gg/hbuEtxdEZ3)\n- [@QwikDev](https://twitter.com/QwikDev)\n- [@builderio](https://twitter.com/builderio)\n- [Local Development](https://github.com/BuilderIO/partytown/blob/main/DEVELOPER.md#local-development)\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): Drag and drop page builder and CMS for React, Vue, Angular, and more.\n\n---\n\nMade with ❤️ by [Builder.io](https://github.com/BuilderIO/)\n","readmeFilename":"README.md"}