{"id":16371423,"url":"https://github.com/mcansh/remix-web-vitals","last_synced_at":"2025-03-23T02:34:25.235Z","repository":{"id":182146681,"uuid":"648383370","full_name":"mcansh/remix-web-vitals","owner":"mcansh","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-11T19:21:52.000Z","size":230,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-18T06:27:47.778Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@mcansh/remix-web-vitals","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcansh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-06-01T21:03:48.000Z","updated_at":"2024-02-12T11:25:31.000Z","dependencies_parsed_at":"2024-01-11T23:40:22.392Z","dependency_job_id":"be97750e-bf8f-456e-aae2-56240694154f","html_url":"https://github.com/mcansh/remix-web-vitals","commit_stats":null,"previous_names":["mcansh/remix-web-vitals"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcansh%2Fremix-web-vitals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcansh%2Fremix-web-vitals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcansh%2Fremix-web-vitals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcansh%2Fremix-web-vitals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcansh","download_url":"https://codeload.github.com/mcansh/remix-web-vitals/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221843124,"owners_count":16890263,"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","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":[],"created_at":"2024-10-11T03:08:04.764Z","updated_at":"2024-10-28T14:47:59.203Z","avatar_url":"https://github.com/mcansh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vercel Remix Web Vitals\n\nSave Web Vitals to Vercel\n\n## Installation\n\n```sh\n# npm\nnpm i @mcansh/remix-web-vitals\n\n# pnpm\npnpm i @mcansh/remix-web-vitals\n\n# yarn\nyarn add @mcansh/remix-web-vitals\n\n# bun\nbun add @mcansh/remix-web-vitals\n```\n\n## Usage\n\n```tsx\nimport { WebVitals } from \"@mcansh/remix-web-vitals\";\n\nexport async function loader() {\n  return json({ analyticsId: process.env.VERCEL_WEB_ANALYTICS_ID });\n}\n\nexport default function App() {\n  let { analyticsId } = useLoaderData\u003ctypeof loader\u003e();\n\n  return (\n    \u003chtml lang=\"en\"\u003e\n      \u003chead\u003e\n        \u003cmeta charSet=\"UTF-8\" /\u003e\n        \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /\u003e\n        \u003cMeta /\u003e\n        \u003cLinks /\u003e\n      \u003c/head\u003e\n      \u003cbody\u003e\n        \u003cOutlet /\u003e\n        \u003cScrollRestoration /\u003e\n        \u003cScripts /\u003e\n        \u003cLiveReload /\u003e\n        {analyticsId ? \u003cWebVitals analyticsId={analyticsId} /\u003e : null}\n      \u003c/body\u003e\n    \u003c/html\u003e\n  );\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcansh%2Fremix-web-vitals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcansh%2Fremix-web-vitals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcansh%2Fremix-web-vitals/lists"}