{"_id":"@artmizu/analytics-nuxt","_rev":"3-29f8d715c058d07df180738ed9beab3a","time":{"created":"2022-12-14T22:23:12.415Z","1.0.0":"2022-12-14T20:41:10.231Z","modified":"2022-12-14T22:53:36.010Z","1.0.1":"2022-12-14T22:23:12.655Z","1.0.2":"2022-12-14T22:53:35.919Z"},"name":"@artmizu/analytics-nuxt","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@artmizu/analytics-nuxt","type":"module","packageManager":"pnpm@7.16.1","description":"Allows you to better understand what's going on with your application and how to optimize performance and other things in production","license":"MIT","repository":{"type":"git","url":"git+https://github.com/artmizu/analytics-nuxt.git"},"publishConfig":{"access":"public"},"exports":{".":{"require":"./dist/module.cjs","import":"./dist/module.mjs"}},"main":"./dist/module.cjs","types":"./dist/types.d.ts","engines":{"node":"<=17"},"dependencies":{"@mswjs/interceptors":"^0.19.2","@nuxt/kit":"^3.0.0","defu":"^6.1.1","h3":"^0.8.6","prom-client":"^14.1.0"},"devDependencies":{"@antfu/eslint-config":"^0.30.1","@nuxt/module-builder":"^0.2.1","@nuxt/schema":"^3.0.0","@nuxt/test-utils":"3.0.0","@types/node":"^18.11.15","eslint":"^8.29.0","husky":"^8.0.2","nuxt":"^3.0.0","playwright":"^1.28.1","typescript":"4.8.4","vitest":"^0.25.8"},"version":"1.0.1","scripts":{"dev":"nuxi dev playground","dev:build":"nuxi build playground","dev:prepare":"nuxt-module-build --stub && nuxi prepare playground","test":"vitest","lint":"eslint .","typecheck":"tsc --noEmit"},"bugs":{"url":"https://github.com/artmizu/analytics-nuxt/issues"},"homepage":"https://github.com/artmizu/analytics-nuxt#readme","_id":"@artmizu/analytics-nuxt@1.0.1","_integrity":"sha512-RsXSRcXyhuu8w7GMda+9VeRh4meIKTfagRyffqMC1mMYsisH7mjOl3PKDxQwXgI+IBFHqnP+/s2lntR9vz4ftg==","_resolved":"/tmp/b2c2cffb33cb6cfaf3e211a86757f824/artmizu-analytics-nuxt-1.0.1.tgz","_from":"file:artmizu-analytics-nuxt-1.0.1.tgz","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-RsXSRcXyhuu8w7GMda+9VeRh4meIKTfagRyffqMC1mMYsisH7mjOl3PKDxQwXgI+IBFHqnP+/s2lntR9vz4ftg==","shasum":"f53dc8333d4b01ed3cafc356cc96f1898942e837","tarball":"https://registry.npmjs.org/@artmizu/analytics-nuxt/-/analytics-nuxt-1.0.1.tgz","fileCount":19,"unpackedSize":10495,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDExrnj9WHdh3dDTX+9DU51hR8Wp8u0DDtJQcnQSc15NQIhAIztffAPX06IF+UA+IteR01BTgxZxu1UaYxjOrFiWtmx"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmkzQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpPfA//TahxdVAs+2uN2HbGApKKcf6oUVO2j2Jrkiv8rG4DKVWUHjGk\r\nah5MaM6980SLChKOJtYXjLEbth3ebO9S1Yyq3NliUcciBIzQDb3FwA5dr2JG\r\n18IaLQkAinxrL9dOG2X5mHVrKL03mD7V84wm+gfjNGOlvXfn3xs14uEnbvjY\r\nqppC5InHYJLXfsr5WkwILCUcAnMM3wWnwoO1jR4nJ3U0P7Z35uu1ONsqNIYa\r\nxgmE/Y607XJ9O7MkLHvNDeD6cII7HePYXJ5A0+bqNoE5fkhRUbDDgZ+RIHD4\r\n/NERsY3bprr2dywP35iPL1mVOaMmaPE88qyIooFIOQhD+D1FmxKDX3uso0mk\r\n/n9EmvP5pVWA0KQKZ94lClpGYDl9ciNMvXJIFSOfKGI74osRXZelnSYjBJqb\r\nvSQQdsI2boa6V6qSC6givufDmNW6PEOMqEXWt5pJ7Rg6vIyZEh25wR/Sj/VN\r\n/1N3t1r/RLtOpPT/nLNzM0VLLT4UOWgEoOsA/NotC4mrZ4EByN4l15RNRRg8\r\njmGrj6t4JHsgkyPYwIvJYj1Lsf4xSO4X+1arQtc9xEZg158A1jkHPwSZsuBC\r\nAHW6ntwW+DW75UvDQb3cLah7LccEvwF/3giKOV2fGHYZ4NQ2ApLlQpm15++9\r\nVAiUFFIUv8DrrtSN0j7dGT69XDAy9tkbMqU=\r\n=0zRK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"artmizu","email":"mochej2@gmail.com"},"directories":{},"maintainers":[{"name":"artmizu","email":"mochej2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/analytics-nuxt_1.0.1_1671056592471_0.518609738965373"},"_hasShrinkwrap":false},"1.0.2":{"name":"@artmizu/analytics-nuxt","type":"module","version":"1.0.2","packageManager":"pnpm@7.16.1","description":"Allows you to better understand what's going on with your application and how to optimize performance and other things in production","license":"MIT","repository":{"type":"git","url":"git+https://github.com/artmizu/analytics-nuxt.git"},"publishConfig":{"access":"public"},"exports":{".":{"require":"./dist/module.cjs","import":"./dist/module.mjs"}},"main":"./dist/module.cjs","types":"./dist/types.d.ts","engines":{"node":"<=17"},"dependencies":{"@mswjs/interceptors":"^0.19.2","@nuxt/kit":"^3.0.0","defu":"^6.1.1","h3":"^0.8.6","prom-client":"^14.1.0"},"devDependencies":{"@antfu/eslint-config":"^0.30.1","@nuxt/module-builder":"^0.2.1","@nuxt/schema":"^3.0.0","@nuxt/test-utils":"3.0.0","@types/node":"^18.11.15","eslint":"^8.29.0","husky":"^8.0.2","nuxt":"^3.0.0","playwright":"^1.28.1","typescript":"4.8.4","vitest":"^0.25.8"},"scripts":{"dev":"nuxi dev playground","dev:build":"nuxi build playground","dev:prepare":"nuxt-module-build --stub && nuxi prepare playground","test":"vitest","lint":"eslint .","typecheck":"tsc --noEmit"},"bugs":{"url":"https://github.com/artmizu/analytics-nuxt/issues"},"homepage":"https://github.com/artmizu/analytics-nuxt#readme","_id":"@artmizu/analytics-nuxt@1.0.2","_integrity":"sha512-Ggrr/tizh7vXI6Nos7eee6Y6KJsYTo0zr3CbHOzYBsacm7NgnPXtmF5rxypryDES7n1Chhjzxs69/0rm6TS5OA==","_resolved":"/tmp/64724af98789368b929ad8a804649043/artmizu-analytics-nuxt-1.0.2.tgz","_from":"file:artmizu-analytics-nuxt-1.0.2.tgz","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Ggrr/tizh7vXI6Nos7eee6Y6KJsYTo0zr3CbHOzYBsacm7NgnPXtmF5rxypryDES7n1Chhjzxs69/0rm6TS5OA==","shasum":"c369a83f2eceef34cf8b9a410be7bfb023b1c532","tarball":"https://registry.npmjs.org/@artmizu/analytics-nuxt/-/analytics-nuxt-1.0.2.tgz","fileCount":19,"unpackedSize":10450,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAZ+ufN3iQmst0NCNISQCFEpZt7oWVlLCJmoMP27tUxdAiEAttcSlNA5/heVd/E9ZVsIpEokBYfoWM5eTUVPFC7x9RI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmlPvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnGQ//Ydvi3ZahbXm7qS0wr4KrYJJytFI9xuPfPtJDEUT3x6iNGO9N\r\nGsEWOQ4+2bMhJjPHwOlW0PFKzpY0Z06RPXtRyEAKsUp0NyjZcgQoiWhhdH5L\r\n2xx9eEzQUdNC0uZ3+0BDab1MtBm3xKC6XrTiwNFZ+xpJP7Vo+sy+WLH7aSPW\r\nRgTys942e2spSB/Ayi4iAPF7ptw+pnNceWcvOgsJdMUiXY+hphrk1cmjny3f\r\n948lslnrUWVNSsj+whCUJMt28UTyRDJACwnLGlcy0GnFRZpX92pALXbvlXFz\r\nz1UaFKGljwf33SngGjf8aLF/2/8v+8YaW6jbgxpPMRJ/GobtnmJrbxxzEWMA\r\nHXEMuGH1S6HSGiSc6kUADT1KNf1EZ0qvw03A4dqCvSlgZkyS2fTpESqKUH37\r\nGdcaH7K6l+Tc/qbmLipIGj/I48yyBbTWzmt+NqrjVWtMFpQ3id30dWITU3gM\r\nncCIgBkXnFthYG8slXw6muNBUKFR52Uol3wL9mUJxmJSqRV+T/vdKJvsaQvM\r\nMTKKrCPdMYUTzA8pXn0gp0S65dC4hH1OTKGYvihYjSr6q5pdQEZ5c3FHTk5b\r\nh3Y7Czgn0ij7YuY5NP5u66rxRuaInnddXlsQGHkOelS3NTMhtKBP0zZFxnCf\r\nCjLhO/9Ah2jvVUaTt1czA9h0+dihFeikxLA=\r\n=uQy2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"artmizu","email":"mochej2@gmail.com"},"directories":{},"maintainers":[{"name":"artmizu","email":"mochej2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/analytics-nuxt_1.0.2_1671058415774_0.8239398708315222"},"_hasShrinkwrap":false}},"maintainers":[{"name":"artmizu","email":"mochej2@gmail.com"}],"description":"Allows you to better understand what's going on with your application and how to optimize performance and other things in production","homepage":"https://github.com/artmizu/analytics-nuxt#readme","repository":{"type":"git","url":"git+https://github.com/artmizu/analytics-nuxt.git"},"bugs":{"url":"https://github.com/artmizu/analytics-nuxt/issues"},"license":"MIT","readme":"![GitHub Workflow Status](https://img.shields.io/github/workflow/status/artmizu/analytics-nuxt/CI?label=CI&style=plastic) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/artmizu/analytics-nuxt/release-please?label=release&style=plastic)\n\n![Cover](https://raw.githubusercontent.com/artmizu/analytics-nuxt/main/.github/cover.jpg) \n\n# 📊 Nuxt 3 Analytics \nAllows you to better understand what's going on with your application and how to optimize performance and other things in production. **Nuxt 2** users can use [this version](https://github.com/artmizu/analytics-nuxt-2).\n\n## Package support Node <= 17.x, for Node >= 18.x users\nActually package is worked, but requests time coudn't be calculated due to limitation of the [@mswjs/interceptors](https://www.npmjs.com/package/@mswjs/interceptors). When it is updated, I will update this package.\n\n## Features\n* Default NodeJS metrics exported through the prometheus middleware\n* Custom metrics about pages render time and external request consumption time\n* Health check middleware\n\n## Default routes\n* `/metrics` - prometheus metrics\n* `/health` - health check\n\n## Installation\nInstall package via a package manager: \n```bash\n# using npm\nnpm install @artmizu/analytics-nuxt\n\n# using yarn\nyarn add @artmizu/analytics-nuxt\n\n# using pnpm\npnpm add @artmizu/analytics-nuxt\n```\n\nAdd it to a modules section of your nuxt config:\n```js\nexport default {\n  modules: ['@artmizu/analytics-nuxt']\n}\n```\n\n## Grafana sample setup\nOnce the metrics have been collected by Prometheus, you will want to review them. I use Grafana for this purpose, and my metrics setup looks something like this:\n![Cover](https://raw.githubusercontent.com/artmizu/analytics-nuxt/main/.github/grafana.jpg)\n\n## Options\nYou can pass it through module options and the nuxt config property `analytics`.\n\n### verbose\n- Type: `boolean`\n- Default: `true`\n- Description: Additional logs in dev mode, about page rendering time and time of external API requests","readmeFilename":"README.md"}