---
sidebar_position: 1
---

# Welcome to LitLyx

Discover ultra-fast, real-time analytics with LitLyx 🔥 **Read time: 1 minute ⏱️** Developers, let's dive in!

## What is LitLyx?

LitLyx integrates real-time analytics and custom events into any project using just a single line of code. Compatible with over 15 JavaScript/TypeScript frameworks, it is designed for developers but accessible to all, from designers to investors, to enrich projects with essential KPIs.

## Integrating LitLyx

Integrating LitLyx is straightforward ✨. Follow this simple code to add LitLyx to your project quickly:

### Quick Integration Guide


#### Universal Insertion
Place this line in your project (recommended below the body tag in index.html):


```html
<script defer data-project="project_id_here" src="https://cdn.jsdelivr.net/npm/litlyx@1.1.0/browser/litlyx.js"></script>
```


#### Framework-Specific Steps (e.g., Nuxt.js, Next.js)

1. **Access the Dashboard**: Visit 👉 [dashboard](https://dashboard.litlyx.com) and sign in.
2. **Create Your First Project**: Simply enter a name for your project to get started.
3. **Setup LitLyx**:  Use the following commands to install and initialize LitLyx 👇

```bash
npm i litlyx
```

```ts
//import
import { Lit } from 'litlyx';
```

```ts
//initialize & auto-collect page visits and many more insights
Lit.init('project_id');
```

## Why Choose LitLyx?

With LitLyx, you gain several advantages:

- **Efficiency**: Setup in less than a minute.
- **Real-Time Data**: Real-time feedback on user interactions & website performance.
- **Scalability**: Built to handle from small projects to large-scale applications.
- **User-Friendly**: Designed with simplicity in mind.
- **Zero-waste**: Designed to be less than 4 KB.
- **Open-source**: LitLyx is Open-Source.

### Enhance your website or app with LitLyx today! 🔥
