Skip to content

Commit e20f0da

Browse files
Merge branch 'Litlyx:main' into main
2 parents 2c3a1c2 + 06fb8bf commit e20f0da

File tree

324 files changed

+4134
-566768
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

324 files changed

+4134
-566768
lines changed

.dockerignore

Lines changed: 13 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,26 @@
1+
shared/node_modules
2+
shared/.output
3+
4+
scripts/node_modules
15

2-
# Broker
3-
broker/node_modules
4-
broker/scripts/start_dev.js
5-
broker/ecosystem.config.cjs
6-
broker/ecosystem.config.example.cjs
7-
broker/Dockerfile
8-
broker/.gitignore
9-
broker/dist
6+
lyx-ui/node_modules
7+
lyx-ui/.nuxt
8+
lyx-ui/.output
109

11-
# Producer
1210
producer/node_modules
1311
producer/scripts/start_dev.js
1412
producer/ecosystem.config.cjs
15-
producer/ecosystem.config.example.cjs
16-
producer/Dockerfile
17-
producer/.gitignore
18-
producer/dist
1913

20-
# Dashboard
14+
consumer/node_modules
15+
consumer/scripts/start_dev.js
16+
consumer/ecosystem.config.cjs
17+
2118
dashboard/node_modules
2219
dashboard/.nuxt
2320
dashboard/.output
21+
dashboard/explains
2422
dashboard/tests
25-
dashboard/.env.example
2623
dashboard/.env
27-
dashboard/.gitignore
24+
dashboard/winston-*.ndjson
2825
dashboard/ecosystem.config.cjs
29-
dashboard/out.pdf
30-
dashboard/timeline.report.txt
31-
dashboard/Dockerfile
32-
dashboard/vitest.config.ts
33-
dashboard/vitest.setup.ts
34-
35-
# Shared
36-
shared/node_modules
37-
shared/.gitignore
3826

39-
# Others
40-
docs/*
41-
landing/*
42-
docker/*
43-
dev/*
44-
assets/*
45-
CODE_OF_CONDUCT.md
46-
LICENSE
47-
readme.md
48-
SECURITY.md
49-
steps
50-
docker-compose.yml
51-
docker-compose.admin.yml

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files.exclude": {
3+
"**/node_modules": true
4+
}
5+
}

Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM node:21-alpine as base
2+
3+
FROM base as build
4+
5+
RUN npm i -g pnpm
6+
RUN npm i -g pm2
7+
8+
# COPY --link dashboard/package.json dashboard/pnpm-lock.yaml ./
9+
# RUN npm install --production=false
10+
11+
WORKDIR /home/app
12+
13+
COPY --link dashboard ./dashboard
14+
COPY --link lyx-ui ./lyx-ui
15+
COPY --link consumer ./consumer
16+
COPY --link producer ./producer
17+
COPY --link shared ./shared
18+
19+
WORKDIR /home/app/producer
20+
RUN pnpm install
21+
22+
WORKDIR /home/app/consumer
23+
RUN pnpm install
24+
25+
WORKDIR /home/app/dashboard
26+
RUN pnpm install
27+
RUN pnpm run dev
28+
29+
30+
# CMD [ "node", "/home/app/.output/server/index.mjs" ]

README.md

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
</p>
55

66
<h4 align="center">
7-
🌐 <a href="https://litlyx.com">Website</a> 📚 <a href="https://docs.litlyx.com">Docs</a> 👾 <a href="https://discord.gg/9cQykjsmWX">Join Discord</a> 🔥 <a href="https://dashboard.litlyx.com">Start for free!</a>
7+
🌐 <a href="https://litlyx.com">Website</a> 📚 <a href="https://docs.litlyx.com">Docs</a> 👾 <a href="https://discord.gg/9cQykjsmWX">Join Discord</a> 🔥 <a href="https://dashboard.litlyx.com">Try Litlyx Cloud. It's Free.</a>
88
</h4>
99

1010
#
1111
<p align="center">
12-
The easiest, developer-centric analytics tool.<br>
13-
Litlyxis an open-source, self-hostable analytics solution for modern framework. Setup takes less than 30 seconds!
12+
The freshest, developer-friendly analytics tool.<br>
13+
Litlyx is an open-source, self-hostable analytics solution for modern frameworks. Setup takes less than 30 seconds!
1414
</p>
1515

1616
#
@@ -23,27 +23,27 @@
2323

2424
#
2525

26-
## Pre-Requisites on Cloud Version
26+
## Get Started on our Cloud Version
2727

2828
Sign-up on [Litlyx.com](https://dashboard.litlyx.com) and create a project. Then simply use your project_id to connect Litlyx to your website OR Self-Host Litlyx with Docker.
2929

3030
## Universal Installation
3131

3232
```html
33-
<script defer data-project="project_id_here" src="https://cdn.jsdelivr.net/gh/litlyx/litlyx-js/browser/litlyx.js"></script>
33+
<script defer data-project="your_project_id" src="https://cdn.jsdelivr.net/gh/litlyx/litlyx-js/browser/litlyx.js"></script>
3434
```
3535

36-
Importing Litlyx with a direct script instantly starts tracking 10 KPIs, including `Page visits`, `Browsers`, `Devices`, `Operating Systems`, `Real-Time Online Users`, `Unique Sessions`, `Countries`, and `Average Session Time`.
36+
Importing Litlyx with a direct script instantly starts tracking `Page visits`, `Browsers`, `Devices`, `Operating Systems`, `Bouncing Rate`, `Real-Time Online Users`, `Unique Sessions`, `Countries`, and `Average Session Time`.
3737

3838
# All Javascript Runtimes
3939

40-
You can install Litlyx using `npm`, `yarn`, or `pnpm`:
40+
You can install Litlyx using `npm`, `pnpm`, `yarn` or any modern package managers:
4141

4242
```sh
4343
npm i litlyx-js
4444
```
4545

46-
Litlyx natively works with all JavaScript / TypeScript frameworks. You can use Litlyx in all WordPress Websites by injecting JS code using a plug-in. Litlyx also works in serverless enviroments with Cloud (or Edge) Functions.
46+
Litlyx natively works with all JavaScript / TypeScript frameworks. You can use Litlyx in all WordPress Websites by injecting JS code using a plug-in. Litlyx also works in serverless environments with Cloud (or Edge) Functions.
4747

4848
<p align="center">
4949
<img src="assets/tech.png" />
@@ -65,7 +65,7 @@ Lit.init('your_project_id');
6565

6666
After initialization, Litlyx will automatically track analytics such as `Page visits`, `Browsers`, `Devices`, `Operating Systems`, `Real-Time Online Users`, `Unique Sessions`, `Countries`, and `Average Session Time`.
6767

68-
# Custom Events
68+
# Track Custom Events
6969

7070
You aren't just limited to the built-in KPIs. With Litlyx, you can create your own events to track in your project.
7171

@@ -80,6 +80,7 @@ Lit.event('click_on_buy_item', {
8080
metadata: {
8181
'product-name': 'Coca-Cola',
8282
'price': 1.50,
83+
'currency': 'EUR'
8384
}
8485
});
8586
```
@@ -119,6 +120,19 @@ docker-compose up
119120

120121
at localhost:3000 you will see your own instance of the Litlyx Dashboard.
121122

123+
## Forward data to your local instance with script tag
124+
125+
To forward your data on your self-hosted instance, you need to set up the following variables: add your `data-host`, add your `data-port`, and add your `data-secure`, setting it to true if it is HTTPS, and false if it is HTTP.
126+
127+
```html
128+
<script defer data-project="your_project_id"
129+
data-host="your-host-name"
130+
data-port="your-port"
131+
data-secure="true/false"
132+
src="https://cdn.jsdelivr.net/gh/litlyx/litlyx-js/browser/litlyx.js">
133+
</script>
134+
```
135+
122136
# Official Docs
123137

124138
For more info read our [documentation](https://docs.litlyx.com). (will be improved in the near future using Mintlify!)

assets/claim.png

-8.25 KB
Loading

broker/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

broker/Dockerfile

Lines changed: 0 additions & 43 deletions
This file was deleted.

broker/ecosystem.config.example.cjs

Lines changed: 0 additions & 20 deletions
This file was deleted.

broker/jest.config.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

broker/package.json

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)