MCPcopy
hub / github.com/QwikDev/partytown

github.com/QwikDev/partytown @v0.14.0 sqlite

repository ↗ · DeepWiki ↗ · release v0.14.0 ↗
7,106 symbols 21,519 edges 252 files 291 documented · 4%
README

Partytown 🎉

Partytown github fit 2x

A fun location for your third-party scripts to hang out

Partytown is a lazy-loaded library to help relocate resource intensive scripts into a web worker, and off of the 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.

Note: Partytown is still in beta and not guaranteed to work in every scenario. Please see our FAQ and Trade-Off sections for more info.

The 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 should be moved to a web worker. Main thread performance is, without question, more important than web worker thread performance.

Without Partytown and With Partytown: Your code and third-party code compete for main thread resources

Community

Related Projects

  • 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.
  • Mitosis: Write components once, run everywhere. Compiles to Vue, React, Solid, Angular, Svelte, and more.
  • Builder: Drag and drop page builder and CMS for React, Vue, Angular, and more.

     <img width="250" alt="Made with love by Builder.io" src="https://user-images.githubusercontent.com/844291/230786555-a58479e4-75f3-4222-a6eb-74c5af953eac.png">

Extension points exported contracts — how you extend this code

WorkerInstance (Interface)
(no doc) [1 implementers]
src/lib/types.ts
PartytownProps (Interface)
(no doc)
src/react/snippet.tsx
PartytownRollupOptions (Interface)
(no doc)
src/utils/rollup.ts
BuildOptions (Interface)
(no doc)
scripts/utils.ts
TestContext (Interface)
(no doc)
tests/unit/utils.ts
QwikRouterPlatform (Interface)
(no doc)
docs/src/entry.cloudflare-pages.tsx
WorkerWindow (Interface)
(no doc) [1 implementers]
src/lib/types.ts
PartytownDocument (Interface)
(no doc)
src/react/snippet.tsx

Core symbols most depended-on inside this repo

n
called by 914
tests/integrations/intercom/shim.latest.js
forEach
called by 880
src/lib/web-worker/worker-serialization.ts
replace
called by 870
src/lib/web-worker/worker-window.ts
n
called by 650
tests/integrations/wistia/E-v1.js
n
called by 614
tests/integrations/underoutfit_kiwi/kiwisizing.SizingPlugin.js
n
called by 614
tests/integrations/kiwisizing/kiwisizing.SizingPlugin.js
n
called by 596
tests/integrations/intercom/vendor-modern.d054d6ff.js
e
called by 533
tests/integrations/hubspot/shell.js

Shape

Function 5,443
Method 1,192
Class 419
Interface 43
Enum 9

Languages

TypeScript100%

Modules by API surface

tests/integrations/mermaid/mermaid.js2,024 symbols
tests/integrations/intercom/app-modern.e4d2d085.js1,305 symbols
tests/integrations/intercom/frame-modern.5069da72.js522 symbols
tests/integrations/gtm/gtag.js507 symbols
tests/integrations/gtm/gtm.js386 symbols
tests/integrations/intercom/vendors~app-modern.c7bfd661.js322 symbols
tests/integrations/clarity/clarity.bundle.js314 symbols
tests/integrations/wistia/assets/external/engines/manual_quality_video.js153 symbols
tests/integrations/jquery/jquery.js112 symbols
tests/integrations/wistia/assets/external/vulcanV2Player/video/controls/VolumeSliderControl/VolumeSliderControl.js83 symbols
tests/integrations/wistia/E-v1.js78 symbols
tests/integrations/wistia/assets/external/engines/hls_video.js76 symbols

Dependencies from manifests, versioned

@changesets/cli2.27.11 · 1×
@changesets/get-github-info0.6.0 · 1×
@changesets/types6.0.0 · 1×
@microsoft/api-extractor7.19.5 · 1×
@playwright/test1.48.2 · 1×
@qwik.dev/core2.0.0-beta.27 · 1×
@qwik.dev/partytownfile:../.. · 1×
@qwik.dev/router2.0.0-beta.27 · 1×
@rollup/plugin-terser0.4.3 · 1×
@types/eslint8.56.10 · 1×
@types/fs-extra11.0.2 · 1×
@types/node18.17.15 · 1×

For agents

$ claude mcp add partytown \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact