open-index/open-npm huggingface dataset:
npm package: @kbyte-tech/astro-clarity
Description: Microsoft Clarity analytics in your Astro site
Author: Kbyte Tech
Latest version: 0.0.8

# Astro Clarity

Astro Clarity is a lightweight wrapper that seamlessly integrates Clarity analytics with Astro, making it effortless to track user interactions and performance metrics on your Astro-powered websites.

## Installation

### npm
```bash
npm install @kbyte-tech/astro-clarity
```

### Yarn
```bash
yarn add @kbyte-tech/astro-clarity
```

### pnpm
```bash
pnpm add @kbyte-tech/astro-clarity
```

## Usage

```js
// file: astro.config.mjs
import clarity from '@kbyte-tech/astro-clarity';

export default defineConfig({
  integrations: [
    // ... other integrations
    // Add the Clarity integration
    clarity({
      enabled: true,
      projectId: 'YOUR_PROJECT_ID',
    }),
  ],
});
```