Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mcansh/remix-web-vitals


https://github.com/mcansh/remix-web-vitals

Last synced: 16 days ago
JSON representation

Awesome Lists containing this project

README

        

# Vercel Remix Web Vitals

Save Web Vitals to Vercel

## Installation

```sh
# npm
npm i @mcansh/remix-web-vitals

# pnpm
pnpm i @mcansh/remix-web-vitals

# yarn
yarn add @mcansh/remix-web-vitals

# bun
bun add @mcansh/remix-web-vitals
```

## Usage

```tsx
import { WebVitals } from "@mcansh/remix-web-vitals";

export async function loader() {
return json({ analyticsId: process.env.VERCEL_WEB_ANALYTICS_ID });
}

export default function App() {
let { analyticsId } = useLoaderData();

return (












{analyticsId ? : null}


);
}
```