{"id":22489688,"url":"https://github.com/nuxt-modules/partytown","last_synced_at":"2025-08-18T12:39:08.328Z","repository":{"id":37019222,"uuid":"455129853","full_name":"nuxt-modules/partytown","owner":"nuxt-modules","description":"Partytown integration for Nuxt. Run third-party scripts from a web worker.","archived":false,"fork":false,"pushed_at":"2025-08-17T18:48:16.000Z","size":3952,"stargazers_count":344,"open_issues_count":15,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-17T20:37:53.861Z","etag":null,"topics":["nuxt","nuxt-module","partytown","performance","web-worker"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nuxt-modules.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["danielroe"]}},"created_at":"2022-02-03T10:58:05.000Z","updated_at":"2025-08-11T16:12:23.000Z","dependencies_parsed_at":"2023-09-22T12:04:53.790Z","dependency_job_id":"48d54b06-fba3-4923-a317-48193914d033","html_url":"https://github.com/nuxt-modules/partytown","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/nuxt-modules/partytown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-modules%2Fpartytown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-modules%2Fpartytown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-modules%2Fpartytown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-modules%2Fpartytown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuxt-modules","download_url":"https://codeload.github.com/nuxt-modules/partytown/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-modules%2Fpartytown/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270995895,"owners_count":24681930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nuxt","nuxt-module","partytown","performance","web-worker"],"created_at":"2024-12-06T17:20:25.742Z","updated_at":"2025-08-18T12:39:08.281Z","avatar_url":"https://github.com/nuxt-modules.png","language":"TypeScript","funding_links":["https://github.com/sponsors/danielroe"],"categories":["TypeScript"],"sub_categories":[],"readme":"# @nuxtjs/partytown\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]\n[![Codecov][codecov-src]][codecov-href]\n[![License][license-src]][license-href]\n\n\u003e [Partytown](https://partytown.builder.io/) integration for [Nuxt](https://v3.nuxtjs.org)\n\n## Features\n\n- 👌 Zero-config required\n- 🔥 Relocates resource intensive scripts into a web worker\n- ⚡️ Speeds up your site\n- 💯 Nuxt 3 and Nuxt Bridge support\n\n## Quick setup\n\n1. Install `@nuxtjs/partytown`!\n\n   ```bash\n   npx nuxi@latest module add partytown\n   ```\n\n2. Add it to the `modules` section of `nuxt.config.ts`\n\n   ```js\n   export default defineNuxtConfig({\n     modules: ['@nuxtjs/partytown'],\n   })\n   ```\n\n3. Add `type: 'text/partytown'` attribute to any scripts you want to be handled by partytown.\n\n   ```vue\n   \u003ctemplate\u003e\n     \u003cdiv\u003e\n       \u003cScript type=\"text/partytown\" src=\"https://example.com/analytics.js\" /\u003e\n     \u003c/div\u003e\n   \u003c/template\u003e\n   ```\n\n## Configuration\n\nPartytown supports a number of options, which you can pass in your `nuxt.config.ts` file:\n\n```js\nexport default defineNuxtConfig({\n  // ...\n  partytown: {\n    /**\n     * When `true`, Partytown scripts are not minified. See https://partytown.builder.io/configuration\n     * on how to enable more logging.\n     *\n     * @default true in development\n     */\n    debug: boolean\n    /**\n     * Path (relative to your base URL) where the Partytown library should be served from.\n     *\n     * @default '~partytown'\n     */\n    lib: string\n    // For other options, see https://partytown.builder.io/configuration\n  },\n})\n```\n\n## Example Configurations\n\n### Crisp\n\n```js\nexport default defineNuxtConfig({\n  modules: ['@nuxtjs/partytown'],\n  partytown: {\n    forward: ['$crisp', '$crisp.push'],\n  },\n  app: {\n    head: {\n      script: [\n        // Insert your CRISP Script here e.g.:\n        { innerHTML: 'window.$crisp = []; window.CRISP_WEBSITE_ID = \"0000\"' },\n        { src: 'https://client.crisp.chat/l.js', async: true, type: 'text/partytown' },\n      ],\n    },\n  },\n})\n```\n\n### Google Tag Manager\n\n```js\nexport default defineNuxtConfig({\n  modules: ['@nuxtjs/partytown'],\n  partytown: {\n    forward: ['dataLayer.push'],\n  },\n  app: {\n    head: {\n      script: [\n        // Insert your Google Tag Manager Script here\n        { src: '-', async: true, type: 'text/partytown' },\n      ],\n    },\n  },\n})\n```\n\n### Plausible Analytics\n\n```js\nexport default defineNuxtConfig({\n  modules: ['@nuxtjs/partytown'],\n  partytown: {\n    forward: ['$plausible', '$plausible.push'],\n  },\n  app: {\n    head: {\n      script: [\n        { innerHTML: 'window.$plausible = [];' },\n        // Update this\n        {\n          src: 'https://plausible.io/js/script.js',\n          defer: true,\n          type: 'text/partytown',\n          'data-domain': 'your-domains',\n        },\n      ],\n    },\n  },\n})\n```\n\n## Development\n\n- Run `yarn prepare` to generate type stubs.\n- Use `yarn dev` to start [playground](./playground) in development mode.\n\n## Licence\n\n[MIT Licence](./LICENCE)\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/@nuxtjs/partytown/latest.svg\n[npm-version-href]: https://npmjs.com/package/@nuxtjs/partytown\n[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxtjs/partytown.svg\n[npm-downloads-href]: https://npm.chart.dev/@nuxtjs/partytown\n[github-actions-ci-src]: https://github.com/nuxt-modules/partytown/workflows/ci/badge.svg\n[github-actions-ci-href]: https://github.com/nuxt-modules/partytown/actions?query=workflow%3Aci\n[codecov-src]: https://img.shields.io/codecov/c/github/nuxt-modules/partytown.svg\n[codecov-href]: https://codecov.io/gh/nuxt-modules/partytown\n[license-src]: https://img.shields.io/npm/l/@nuxtjs/partytown.svg\n[license-href]: https://npmjs.com/package/@nuxtjs/partytown\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxt-modules%2Fpartytown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuxt-modules%2Fpartytown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxt-modules%2Fpartytown/lists"}