{"id":13506566,"url":"https://github.com/nuxt-modules/logrocket","last_synced_at":"2025-08-18T12:39:08.881Z","repository":{"id":34039857,"uuid":"166571377","full_name":"nuxt-modules/logrocket","owner":"nuxt-modules","description":"LogRocket module for Nuxt","archived":false,"fork":false,"pushed_at":"2025-08-13T12:12:53.000Z","size":3098,"stargazers_count":144,"open_issues_count":17,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-13T14:22:24.382Z","etag":null,"topics":["logrocket","nuxt","nuxt-module"],"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":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-01-19T17:02:19.000Z","updated_at":"2024-11-22T12:14:13.000Z","dependencies_parsed_at":"2024-02-14T16:28:57.604Z","dependency_job_id":"7c650e6d-991e-4e12-95eb-b036599b4781","html_url":"https://github.com/nuxt-modules/logrocket","commit_stats":null,"previous_names":["nuxt-modules/logrocket","nuxt-community/nuxt-logrocket"],"tags_count":37,"template":false,"template_full_name":null,"purl":"pkg:github/nuxt-modules/logrocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-modules%2Flogrocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-modules%2Flogrocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-modules%2Flogrocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-modules%2Flogrocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuxt-modules","download_url":"https://codeload.github.com/nuxt-modules/logrocket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-modules%2Flogrocket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270995906,"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":["logrocket","nuxt","nuxt-module"],"created_at":"2024-08-01T01:00:53.787Z","updated_at":"2025-08-18T12:39:08.854Z","avatar_url":"https://github.com/nuxt-modules.png","language":"TypeScript","funding_links":[],"categories":["Uncategorized","TypeScript"],"sub_categories":["Uncategorized"],"readme":"![nuxt-logrocket-social-card](https://github.com/nuxt-modules/logrocket/assets/904724/e8ee6381-899f-4a0c-87c2-290fd1cf98ea)\n\n# Nuxt LogRocket\n\n[![npm (scoped with tag)](https://img.shields.io/npm/v/nuxt-logrocket/latest.svg?style=flat-square)](https://npmjs.com/package/nuxt-logrocket)\n[![npm](https://img.shields.io/npm/dm/nuxt-logrocket.svg?style=flat-square)](https://npmjs.com/package/nuxt-logrocket)\n[![CircleCI](https://img.shields.io/circleci/project/github/nuxt-modules/logrocket.svg?style=flat-square)](https://circleci.com/gh/nuxt-modules/logrocket)\n[![Codecov](https://img.shields.io/codecov/c/github/nuxt-community/nuxt-logrocket.svg?style=flat-square)](https://codecov.io/gh/nuxt-community/nuxt-logrocket)\n[![js-standard-style](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com)\n\nSession replays, product analytics and more for Nuxt apps.\n\n[📖 **Release Notes**](./CHANGELOG.md)\n\n## Features\n\n- Nuxt 3 \u0026 Nuxt Bridge\n- Supports [Pinia](https://pinia.vuejs.org) integration\n- Ability to run in development mode\n\n## Setup\n\n- Add `nuxt-logrocket` dependency to your project\n\n```sh\nnpm i nuxt-logrocket\n```\n\n- Add `nuxt-logrocket` to the `modules` section of your `nuxt.config.ts` file\n\n```ts\nimport { defineNuxtConfig } from 'nuxt'\n\nexport default defineNuxtConfig({\n  modules: ['nuxt-logrocket'],\n\n  logRocket: {\n    id: '',\n    dev: false,\n    config: {\n      //\n    }\n  }\n})\n```\n\n## Options\n\nOptions can be passed using either [Runtime Config](https://v3.nuxtjs.org/guide/features/runtime-config/#environment-variables) or the `logRocket` section in `nuxt.config.ts`.\nSetting a value for the required `id` option is enough in most cases.\n\nBelow is the complete list of options:\n\n| Option | Type | Default | Required |\n| :-- | :-- | :-- | :-- |\n| id | `String` | `''` | True |\n| dev | `Boolean` | `true` | False |\n| enablePinia | `Boolean` | `true` | False |\n| release | `String` | `null` | False |\n| consoleEnabled | `Boolean` | `true` | False |\n| networkEnabled | `Boolean` | `true` | False |\n| networkRequestSanitizer | `Function` | - | False |\n| networkResponseSanitizer | `Function` | - | False |\n| domEnabled | `Boolean` | `true` | False |\n| inputSanitizer | `Boolean` | `false` | False |\n| textSanitizer | `Boolean` | `false` | False |\n| baseHref | `String` | `null` | False |\n| shouldCaptureIP | `Boolean` | `true` | False |\n| rootHostname | `String` | `null` | False |\n| shouldDebugLog | `Boolean` | `true` | False |\n| mergeIframes | `Boolean` | `false` | False |\n\nThis is an example containing the default values for the options:\n\n```ts\n{\n  id: '',\n  dev: true,\n  enablePinia: true,\n  config: {\n    release: null,\n    console: {\n      isEnabled: true\n    },\n    network: {\n      isEnabled: true,\n      networkRequestSanitizer: () =\u003e {},\n      networkResponseSanitizer: () =\u003e {}\n    },\n    dom: {\n      isEnabled: true,\n      inputSanitizer: false,\n      textSanitizer: false,\n      baseHref: null\n    },\n    shouldCaptureIP: true,\n    rootHostname: null,\n    shouldDebugLog: true,\n    mergeIframes: false\n  }\n}\n```\n\n## Usage\n\nLogRocket gets automatically injected into your application when it is setup correctly. By default this module works only in `production` and on client-side events.\n\nIn order to use LogRocket's injected functionality in your application, you can use :\n\n```ts\nconst { $logRocket } = useNuxtApp()\n```\n\nVisit LogRocket's website for a full list of features : [Docs](https://docs.logrocket.com/docs)\n\n### Pinia\n\nThis module automatically detects [Pinia](https://pinia.vuejs.org) store mutations and attaches them to the LogRocket session.\n\nThis functionality is enabled by **default**, and can be disabled by setting the `enablePinia` options to `false`.\n\n```ts\nimport { defineNuxtConfig } from 'nuxt'\n\nexport default defineNuxtConfig({\n  modules: ['nuxt-logrocket'],\n\n  logRocket: {\n    id: '',\n    enablePinia: false\n  }\n})\n```\n\n## Development\n\n- Clone this repository\n- Install dependencies using `yarn install`\n- Start development server using `yarn run dev`\n- Point your browser to `http://localhost:3000`\n\n## License\n\n[MIT License](./LICENSE) - Alibaba Travels Co\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxt-modules%2Flogrocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuxt-modules%2Flogrocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxt-modules%2Flogrocket/lists"}