Overview
Discover what makes Litlyx powerful
Litlyx is a lightweight, privacy‑first analytics platform designed for developers who need quick insight without the overhead of cookies or intrusive tracking. Built on a modern JavaScript stack, it exposes a simple yet powerful API that can be dropped into any web project—whether it’s a vanilla site, a React/Next.js app, or a WordPress installation via a plugin. The core of Litlyx tracks standard KPIs such as visits, unique visitors, real‑time online users, and bounce rate out of the box while also allowing custom event tracking with rich metadata.
Cookie‑free
Universal SDK
Custom events
Real‑time dashboard
Overview
Litlyx is a lightweight, privacy‑first analytics platform designed for developers who need quick insight without the overhead of cookies or intrusive tracking. Built on a modern JavaScript stack, it exposes a simple yet powerful API that can be dropped into any web project—whether it’s a vanilla site, a React/Next.js app, or a WordPress installation via a plugin. The core of Litlyx tracks standard KPIs such as visits, unique visitors, real‑time online users, and bounce rate out of the box while also allowing custom event tracking with rich metadata.
Key Features
- Cookie‑free: All data is sent without storing any client‑side cookies, ensuring full GDPR compliance out of the box.
- Universal SDK: A single
litlyx-jspackage works across browsers, Node.js, and popular frameworks (React, Vue, Svelte). - Custom events: Developers can fire arbitrary events (
Lit.event('checkout', { metadata })) and enrich them with structured data. - Real‑time dashboard: The self‑hosted UI, running on Node/Express, visualises visits and events in real time, with optional AI insights via the public API.
- Self‑hosted & Docker: A
docker-compose.ymlis included; the dashboard and event broker run in separate containers, making deployment as simple asdocker‑compose up.
Technical Stack
| Layer | Technology |
|---|---|
| Client SDK | Vanilla JavaScript / TypeScript, bundled with Rollup for tree‑shaking. |
| Event Broker | Node.js + Express, websockets (Socket.IO) for real‑time data push. |
| Dashboard | React + Vite, Chakra UI; communicates with the broker via REST and WebSocket. |
| Database | PostgreSQL (via Prisma ORM) stores projects, events, and aggregated metrics. |
| Containerization | Docker images on DockerHub; orchestrated with Docker‑Compose or Kubernetes manifests. |
| CI/CD | GitHub Actions build and publish the SDK, Docker images, and documentation. |
Core Capabilities
- Project‑based isolation: Each project has its own ID; the SDK uses
data-projectorLit.init(id)to namespace events. - REST API:
/eventendpoint accepts raw JSON payloads, enabling server‑side event injection or integration with third‑party services. - Webhooks: Projects can register URLs to receive event notifications for custom workflows (e.g., trigger a Slack message on a high‑value purchase).
- Metadata schema: Arbitrary key/value pairs are stored per event; the dashboard automatically aggregates numeric fields for charts.
- Real‑time analytics: Socket.IO streams live visitor counts and event streams to the UI, allowing instant dashboards.
Deployment & Infrastructure
- Self‑hosting: A single
docker-compose.ymlbrings up the broker, dashboard, and PostgreSQL. - Scalability: Stateless Node.js services can be replicated behind a load balancer; PostgreSQL can be upgraded to a managed cluster for larger workloads.
- Environment variables:
HOST,PORT,DB_URL, andJWT_SECRETconfigure the stack; secrets can be injected via Docker secrets or Kubernetes ConfigMaps. - Data retention: Events are stored in raw form for 30 days, after which they’re aggregated and purged to keep storage lean.
Integration & Extensibility
- Plugin system: The dashboard exposes a plugin API; developers can write React components that tap into the event stream or add new visualizations.
- SDK hooks: The
litlyx-jspackage allows intercepting the event queue to add custom logic (e.g., rate limiting or conditional tracking). - API keys: Each project receives a unique key; this can be embedded in front‑end code or used server‑side for secure event injection.
- Webhooks: Register callbacks for specific event types, enabling downstream processing (CRM syncs, notification services).
Developer Experience
- Documentation: The official docs (https://docs.litlyx.com) cover SDK usage, API endpoints, and deployment guides with clear examples.
- Community: A Discord channel offers real‑time support; the GitHub repo has over 1.5k stars and active issue tracking.
- Configuration: No complex dashboards or multi‑tenant setup; a single config file (
docker-compose.yml) is sufficient for most use cases. - Testing: The SDK ships with TypeScript typings, and the backend exposes a Swagger UI for quick API exploration.
Use Cases
- Privacy‑centric websites: Blogs or e‑commerce sites that must avoid cookies yet need basic traffic analytics.
- Developer portals: Projects that want to expose real‑time visitor stats without a full analytics stack.
- Internal dashboards: Companies that require custom event tracking (e.g., feature usage) integrated with their own infrastructure.
- Rapid prototyping: MVPs that need analytics quickly; the 30‑second setup lets teams iterate without waiting for a full GA implementation.
Advantages Over Alternatives
| Criterion | Litlyx | Google Analytics | Matomo | Plausible |
|---|---|---|---|---|
| Privacy | Cookie‑free, GDPR‑compliant | Requires cookies | Self‑hosted but cookie‑based | Cookie‑free |
| ** |
Open SourceReady to get started?
Join the community and start self-hosting Litlyx today
Related Apps in data-analysis
Uptime Kuma
Self-hosted uptime monitoring for all services
Apache Superset
Open‑source BI for fast, no‑code data exploration
Metabase
Easy open‑source business intelligence for everyone
Netron
Visualize AI models in any browser or desktop
Umami
Privacy‑focused, lightweight web analytics
PostHog
Open‑source product analytics and experimentation platform
Weekly Views
Repository Health
Information
Explore More Apps
Endurain
Self-hosted fitness tracker with full data control
Bitpoll
Self‑hosted poll platform for dates, times and general questions
Homepage
Fast, secure self‑hosted dashboard for over 100 services
Karaoke Eternal
Host and enjoy karaoke parties from any browser
draw.io
Create diagrams and flowcharts offline or online
pyLoad
Python‑based lightweight download manager with web control