{"schemaVersion":1,"id":"partytown","name":"Partytown","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/partytown/","officialUrl":"https://github.com/QwikDev/partytown","isCatalog":false,"description":"A runtime for moving third-party web scripts to a worker: it helps offload a site's main thread while preserving required browser interactions.","tasks":["Move suitable third-party scripts to a worker","Connect worker execution and test the scripts' required browser interactions"],"categoryIds":["frontend"],"subcategoryIds":["frontend.utilities"],"tags":["Partytown","web","Development"],"aliases":["QwikDev/partytown","partytown","party-town"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"MIT for the code; dependencies have separate licenses.","selectionGuide":{"purpose":"Move suitable third-party scripts to a worker","chooseWhen":["Move suitable third-party scripts to a worker","Connect worker execution and test the scripts' required browser interactions"],"considerInstead":[],"requirements":[],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: MIT for the code; dependencies have separate licenses.","event.preventDefault in a worker handler does not cancel an already completed main thread action. Cross-origin iframes created by Partytown scripts have separate cookie/storage restrictions; scripts lacking required CORS headers need proxy configuration."],"faq":[{"question":"What can you use for free in Partytown?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with Partytown?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for Partytown?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with Partytown?","answer":"Identify page scripts that load the main thread. Connect worker execution and test the scripts' required browser interactions. Add real data and error handling; check the production build."},{"question":"Which third-party scripts suit Partytown, and what limits arise?","answer":"Partytown moves selected resource-intensive scripts into a worker. The official guide considers event handlers with background data sending suitable, while scripts with extensive DOM insertion and complex interfaces are less suitable. Enable scripts one at a time; cross-thread DOM operations are intentionally delayed and batched."}],"related":[],"sources":["https://github.com/QwikDev/partytown","https://raw.githubusercontent.com/QwikDev/partytown/HEAD/README.md","https://raw.githubusercontent.com/QwikDev/partytown/HEAD/LICENSE","https://www.open-source-tools.com/","https://partytown.qwik.dev/trade-offs/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Move suitable third-party scripts to a worker.","inputs":["Web application source code and the intended workflow.","The project's framework and runtime version."],"steps":["Identify page scripts that load the main thread.","Connect worker execution and test the scripts' required browser interactions.","Add real data and error handling; check the production build."],"checks":["The workflow works after a page refresh and with invalid data.","The bundle, server rendering, and supported browsers suit the project."]},"sources":["https://github.com/QwikDev/partytown","https://raw.githubusercontent.com/QwikDev/partytown/HEAD/README.md","https://raw.githubusercontent.com/QwikDev/partytown/HEAD/LICENSE","https://www.open-source-tools.com/","https://partytown.qwik.dev/trade-offs/"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Web framework / library","kind":"library","pricingNote":"Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/QwikDev/partytown","label":"Official source"},{"url":"https://raw.githubusercontent.com/QwikDev/partytown/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/QwikDev/partytown/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"},{"url":"https://partytown.qwik.dev/trade-offs/","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}