[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"workflow-asset-bb0b2056":3,"seo:featured-workflow:bb0b2056-4cf1-11f1-9bc6-00163e2b0d79:es":85,"workflow-related-asset-bb0b2056-bb0b2056-4cf1-11f1-9bc6-00163e2b0d79":86},{"id":4,"uuid":5,"slug":6,"title":7,"description":8,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":13,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":15,"tags":22,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":29,"asset_kind":30,"target_tools":31,"install_mode":35,"entrypoint":19,"risk_profile":36,"dependencies":38,"verification":44,"agent_metadata":47,"agent_fit":60,"trust":72,"provenance":81,"created_at":83,"updated_at":84},2997,"bb0b2056-4cf1-11f1-9bc6-00163e2b0d79","asset-bb0b2056","Partytown — Run Third-Party Scripts in a Web Worker","A lightweight library that relocates resource-intensive third-party scripts off of the main thread and into a web worker, improving page performance and Core Web Vitals.","8a910e34-3180-11f1-9bc6-00163e2b0d79","Script Depot","",0,2,"en",[16],{"id":17,"step_order":18,"title":19,"description":11,"prompt_template":20,"variables":11,"depends_on":21,"expected_output":11},3560,1,"Partytown Overview","# Partytown — Run Third-Party Scripts in a Web Worker\n\n## Quick Use\n```bash\nnpm install @builder.io\u002Fpartytown\n# Copy the Partytown lib files to your public directory\nnpx partytown copylib public\u002F~partytown\n```\n\n```html\n\u003Cscript>\n  partytown = { forward: ['dataLayer.push'] };\n\u003C\u002Fscript>\n\u003Cscript src=\"\u002F~partytown\u002Fpartytown.js\">\u003C\u002Fscript>\n\u003Cscript type=\"text\u002Fpartytown\" src=\"https:\u002F\u002Fwww.googletagmanager.com\u002Fgtag\u002Fjs?id=G-XXX\">\u003C\u002Fscript>\n```\n\n## Introduction\nPartytown moves third-party scripts like analytics, tag managers, and tracking pixels off the main thread and into a web worker. This frees the main thread for your application code, leading to faster page loads and better responsiveness.\n\n## What Partytown Does\n- Executes third-party scripts inside a web worker instead of the main thread\n- Provides synchronous DOM access from the worker via a service worker proxy\n- Forwards global function calls (like `dataLayer.push`) from main thread to worker\n- Reduces main-thread blocking caused by analytics, ads, and chat widgets\n- Integrates with Next.js, Nuxt, Astro, Remix, and other frameworks via plugins\n\n## Architecture Overview\nPartytown uses a service worker as a middleware layer between the web worker and the main thread. When a third-party script running in the worker tries to access the DOM, the request is proxied through the service worker to the main thread using synchronous XHR. This approach allows scripts that expect synchronous DOM access to work transparently inside a worker without code changes.\n\n## Self-Hosting & Configuration\n- Install via npm and copy library files to your public directory with `npx partytown copylib`\n- Add the Partytown snippet to the `\u003Chead>` of your HTML before any third-party scripts\n- Change third-party script tags from `type=\"text\u002Fjavascript\"` to `type=\"text\u002Fpartytown\"`\n- Configure the `forward` array to proxy global function calls like `dataLayer.push` or `fbq`\n- Use framework-specific integrations for Next.js (`@builder.io\u002Fpartytown\u002Fnextjs`), Astro, or Nuxt\n\n## Key Features\n- Zero changes to third-party script code required\n- Configurable forwarding for global function calls and event queues\n- Built-in integrations for Next.js, Nuxt, Astro, Remix, and SvelteKit\n- Sandboxing: third-party scripts cannot access cookies or localStorage unless explicitly allowed\n- Atomic DOM operations batched for minimal cross-thread communication overhead\n\n## Comparison with Similar Tools\n- **Google Tag Manager server-side** — runs tags on a server; Partytown runs them client-side in a worker\n- **Zaraz (Cloudflare)** — edge-based third-party script management; Partytown is self-hosted and framework-agnostic\n- **Script defer\u002Fasync** — reduces parser blocking but scripts still run on the main thread; Partytown moves execution entirely off-thread\n- **Web Workers (manual)** — require rewriting scripts; Partytown provides transparent DOM proxying\n- **Inline script lazy loading** — delays execution; Partytown runs scripts concurrently without blocking\n\n## FAQ\n**Q: Does Partytown work with Google Analytics and GTM?**\nA: Yes. Google Tag Manager and Google Analytics are common use cases. You add them as `type=\"text\u002Fpartytown\"` scripts and forward `dataLayer.push`.\n\n**Q: Will every third-party script work in Partytown?**\nA: Most analytics and tracking scripts work. Scripts that heavily manipulate the visible DOM (like chat widgets that render UI) may need testing. The project maintains a list of tested integrations.\n\n**Q: Does Partytown add latency to events?**\nA: There is a small overhead from cross-thread communication, but for analytics and tracking this is negligible. The net effect is positive because your main thread runs faster.\n\n**Q: Is Partytown production-ready?**\nA: It is used in production by multiple companies. The library is still labeled beta, so thorough testing with your specific third-party scripts is recommended.\n\n## Sources\n- https:\u002F\u002Fgithub.com\u002FQwikDev\u002Fpartytown\n- https:\u002F\u002Fpartytown.builder.io\u002F","0",[23],{"id":24,"name":25,"slug":26,"icon":27},11,"Scripts","script","📜",false,"1d313fd5ac6e17860333c4c2097534927b1c9c3fd338421a3fa07522476c7446","skill",[32,33,34],"claude_code","codex","gemini_cli","single",{"executes_code":28,"modifies_global_config":28,"requires_secrets":37,"uses_absolute_paths":28,"network_access":28},[],{"npm":39,"pip":41,"brew":42,"system":43},[40],"@builder.io\u002Fpartytown",[],[],[],{"commands":45,"expected_files":46},[],[19],{"asset_kind":30,"target_tools":48,"install_mode":35,"entrypoint":19,"risk_profile":49,"dependencies":51,"content_hash":29,"verification":56,"inferred":59},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":50,"uses_absolute_paths":28,"network_access":28},[],{"npm":52,"pip":53,"brew":54,"system":55},[40],[],[],[],{"commands":57,"expected_files":58},[],[19],true,{"target":33,"score":61,"status":62,"policy":63,"why":64,"asset_kind":30,"install_mode":35},98,"native","allow",[65,66,67,68,69,70,71],"target_tools includes codex","asset_kind skill","install_mode single","markdown-only","policy allow","safe markdown-only Codex install","trust established",{"author_trust_level":73,"verified_publisher":28,"asset_signed_hash":29,"signature_status":74,"install_count":12,"report_count":12,"dangerous_capability_badges":75,"review_status":76,"signals":77},"established","hash_only",[],"unreviewed",[78,79,80],"author has published assets","content hash available","no dangerous capability badges",{"owner_uuid":9,"owner_name":10,"source_url":82,"content_hash":29,"visibility":18,"created_at":83,"updated_at":84},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fasset-bb0b2056","2026-05-11 12:27:33","2026-05-11 16:27:00",null,[87,139,186,233],{"id":88,"uuid":89,"slug":90,"title":91,"description":92,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":93,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":94,"tags":95,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":97,"asset_kind":30,"target_tools":98,"install_mode":35,"entrypoint":99,"risk_profile":100,"dependencies":102,"verification":107,"agent_metadata":110,"agent_fit":122,"trust":124,"provenance":127,"created_at":129,"updated_at":130,"__relatedScore":131,"__relatedReasons":132,"__sharedTags":137},1775,"b4599ad6-3bca-11f1-9bc6-00163e2b0d79","komga-self-hosted-comics-manga-server-b4599ad6","Komga — Self-Hosted Comics and Manga Server","A media server for comics, manga, and digital books. Komga scans your library, provides a web-based reader, and serves content via OPDS for third-party reading apps.",85,[],[96],{"id":24,"name":25,"slug":26,"icon":27},"d88006ff436c3fbbfceae480938f2bfeaa982ffc3a4b6cb3fa0127fd2c8507cc",[32,33,34],"Komga Overview",{"executes_code":28,"modifies_global_config":28,"requires_secrets":101,"uses_absolute_paths":28,"network_access":28},[],{"npm":103,"pip":104,"brew":105,"system":106},[],[],[],[],{"commands":108,"expected_files":109},[],[99],{"asset_kind":30,"target_tools":111,"install_mode":35,"entrypoint":99,"risk_profile":112,"dependencies":114,"content_hash":97,"verification":119},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":113,"uses_absolute_paths":28,"network_access":28},[],{"npm":115,"pip":116,"brew":117,"system":118},[],[],[],[],{"commands":120,"expected_files":121},[],[99],{"target":33,"score":61,"status":62,"policy":63,"why":123,"asset_kind":30,"install_mode":35},[65,66,67,68,69,70,71],{"author_trust_level":73,"verified_publisher":28,"asset_signed_hash":97,"signature_status":74,"install_count":12,"report_count":12,"dangerous_capability_badges":125,"review_status":76,"signals":126},[],[78,79,80],{"owner_uuid":9,"owner_name":10,"source_url":128,"content_hash":97,"visibility":18,"created_at":129,"updated_at":130},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fkomga-self-hosted-comics-manga-server-b4599ad6","2026-04-19 16:35:22","2026-05-11 11:43:56",92.90174767686536,[133,134,135,136],"topic-match","same-kind","same-target","same-author",[26,138],"scripts",{"id":140,"uuid":141,"slug":142,"title":143,"description":144,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":145,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":146,"tags":147,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":149,"asset_kind":30,"target_tools":150,"install_mode":35,"entrypoint":151,"risk_profile":152,"dependencies":154,"verification":159,"agent_metadata":162,"agent_fit":174,"trust":176,"provenance":179,"created_at":181,"updated_at":182,"__relatedScore":183,"__relatedReasons":184,"__sharedTags":185},1914,"6469e991-3d9d-11f1-9bc6-00163e2b0d79","webllm-run-large-language-models-directly-browser-6469e991","WebLLM — Run Large Language Models Directly in the Browser","WebLLM is an MLC project that brings LLM inference to web browsers using WebGPU. It runs models like LLaMA, Mistral, and Phi entirely client-side with no server required, enabling private AI chat and text generation from any modern browser.",66,[],[148],{"id":24,"name":25,"slug":26,"icon":27},"d30e3353c2aae0b2dea7e1ae195e4f12a17bb4330573d6529e73797e02c58cb4",[32,33,34],"WebLLM Browser AI",{"executes_code":28,"modifies_global_config":28,"requires_secrets":153,"uses_absolute_paths":28,"network_access":28},[],{"npm":155,"pip":156,"brew":157,"system":158},[],[],[],[],{"commands":160,"expected_files":161},[],[151],{"asset_kind":30,"target_tools":163,"install_mode":35,"entrypoint":151,"risk_profile":164,"dependencies":166,"content_hash":149,"verification":171},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":165,"uses_absolute_paths":28,"network_access":28},[],{"npm":167,"pip":168,"brew":169,"system":170},[],[],[],[],{"commands":172,"expected_files":173},[],[151],{"target":33,"score":61,"status":62,"policy":63,"why":175,"asset_kind":30,"install_mode":35},[65,66,67,68,69,70,71],{"author_trust_level":73,"verified_publisher":28,"asset_signed_hash":149,"signature_status":74,"install_count":12,"report_count":12,"dangerous_capability_badges":177,"review_status":76,"signals":178},[],[78,79,80],{"owner_uuid":9,"owner_name":10,"source_url":180,"content_hash":149,"visibility":18,"created_at":181,"updated_at":182},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fwebllm-run-large-language-models-directly-browser-6469e991","2026-04-22 00:16:02","2026-05-11 00:25:22",85.73911220405124,[133,134,135,136],[26,138],{"id":187,"uuid":188,"slug":189,"title":190,"description":191,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":192,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":193,"tags":194,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":196,"asset_kind":30,"target_tools":197,"install_mode":35,"entrypoint":198,"risk_profile":199,"dependencies":201,"verification":206,"agent_metadata":209,"agent_fit":221,"trust":223,"provenance":226,"created_at":228,"updated_at":229,"__relatedScore":230,"__relatedReasons":231,"__sharedTags":232},2903,"ccfeeaef-4be4-11f1-9bc6-00163e2b0d79","asset-ccfeeaef","Robyn — High-Performance Python Web Framework with Rust Runtime","A fast Python web framework that uses a Rust-based async runtime for request handling while keeping the developer experience in pure Python.",19,[],[195],{"id":24,"name":25,"slug":26,"icon":27},"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",[32,33,34],"SKILL.md",{"executes_code":28,"modifies_global_config":28,"requires_secrets":200,"uses_absolute_paths":28,"network_access":28},[],{"npm":202,"pip":203,"brew":204,"system":205},[],[],[],[],{"commands":207,"expected_files":208},[],[],{"asset_kind":30,"target_tools":210,"install_mode":35,"entrypoint":198,"risk_profile":211,"dependencies":213,"content_hash":196,"verification":218,"inferred":59},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":212,"uses_absolute_paths":28,"network_access":28},[],{"npm":214,"pip":215,"brew":216,"system":217},[],[],[],[],{"commands":219,"expected_files":220},[],[],{"target":33,"score":61,"status":62,"policy":63,"why":222,"asset_kind":30,"install_mode":35},[65,66,67,68,69,70,71],{"author_trust_level":73,"verified_publisher":28,"asset_signed_hash":196,"signature_status":74,"install_count":12,"report_count":12,"dangerous_capability_badges":224,"review_status":76,"signals":225},[],[78,79,80],{"owner_uuid":9,"owner_name":10,"source_url":227,"content_hash":196,"visibility":18,"created_at":228,"updated_at":229},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fasset-ccfeeaef","2026-05-10 04:22:28","2026-05-11 15:54:03",84.95154499349597,[133,134,135,136],[26,138],{"id":234,"uuid":235,"slug":236,"title":237,"description":238,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":239,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":240,"tags":241,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":243,"asset_kind":30,"target_tools":244,"install_mode":35,"entrypoint":245,"risk_profile":246,"dependencies":248,"verification":253,"agent_metadata":256,"agent_fit":268,"trust":270,"provenance":273,"created_at":275,"updated_at":276,"__relatedScore":277,"__relatedReasons":278,"__sharedTags":279},1850,"d2c0991a-3cd3-11f1-9bc6-00163e2b0d79","screego-self-hosted-screen-sharing-developers-d2c0991a","Screego — Self-Hosted Screen Sharing for Developers","A lightweight self-hosted screen sharing tool built with Go and WebRTC, designed for developer teams who need low-latency sharing without third-party services.",21,[],[242],{"id":24,"name":25,"slug":26,"icon":27},"88a8dffd31a24b72c2221a94204395cd8302efe2ec72bfaa20019241235b522d",[32,33,34],"Screego",{"executes_code":28,"modifies_global_config":28,"requires_secrets":247,"uses_absolute_paths":28,"network_access":28},[],{"npm":249,"pip":250,"brew":251,"system":252},[],[],[],[],{"commands":254,"expected_files":255},[],[245],{"asset_kind":30,"target_tools":257,"install_mode":35,"entrypoint":245,"risk_profile":258,"dependencies":260,"content_hash":243,"verification":265},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":259,"uses_absolute_paths":28,"network_access":28},[],{"npm":261,"pip":262,"brew":263,"system":264},[],[],[],[],{"commands":266,"expected_files":267},[],[245],{"target":33,"score":61,"status":62,"policy":63,"why":269,"asset_kind":30,"install_mode":35},[65,66,67,68,69,70,71],{"author_trust_level":73,"verified_publisher":28,"asset_signed_hash":243,"signature_status":74,"install_count":12,"report_count":12,"dangerous_capability_badges":271,"review_status":76,"signals":272},[],[78,79,80],{"owner_uuid":9,"owner_name":10,"source_url":274,"content_hash":243,"visibility":18,"created_at":275,"updated_at":276},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fscreego-self-hosted-screen-sharing-developers-d2c0991a","2026-04-21 00:13:09","2026-05-11 05:11:50",83.01363402123332,[133,134,135,136],[26,138]]