. The script auto-detects single-page applications and tracks pageviews, events, Web Vitals, and more."}}]}
Xine Analytics 2.0

Analytics Without Compromise.

A lightweight, cookie-free alternative to Google Analytics. Self-host on your own infrastructure or deploy completely for free with Vercel + Supabase. Own your data.

Features packed,
yet deeply integrated.

Built on Next.js 16 and PostgreSQL. Powered by a single 8KB script that does everything without tracking cookies.

Realtime Dashboard

Live visitor tracking with GSAP animated UI updates.

Cookie-Free

100% compliant with privacy laws, zero PII collection.

Web Vitals Tracking

Monitor LCP, FCP, CLS, INP directly in the dashboard.

Session Replays

Visual replays of user journeys to understand rage clicks and UX issues.

Self-Hosted Postgres

Powered by Drizzle ORM and Postgres for infinite scalability.

Developer API

Pull analytics data programmatically via our secure v1 API.

t.js (8KB minified)
<script defer data-domain="yourdomain.com" src="https://xine.yoursite.com/t.js"> </script>
// Automatically tracks:
// - Pageviews
// - Outbound Clicks
// - File Downloads
// - 404 Errors
// - Core Web Vitals
Integration

One line of code. Infinite insights.

Embedding Xine is as easy as dropping a single script tag into your HTML. Our tracker detects single-page applications automatically and is optimized to never block the main thread.

  • Edge-compatible middleware Auth
  • PostgreSQL 16+ JSONB optimized
  • Client-side aggregation to reduce network load
Deployment

Three ways to host. All completely free.

Whether you want to manage your own server or leverage serverless cloud infrastructure, Xine gives you full control.

Docker Compose

RECOMMENDED FOR VPS

Spin up the application and a PostgreSQL database instantly with a single command.

$ git clone https://github.com/melvinprince/xine-by-unisource.dev.git
$ cd xine
$ docker-compose up -d
Read Docker Guide

Free Cloud Tier

VERCEL + SUPABASE

Deploy Serverless for $0/mo. Perfect for starting out without managing infrastructure.

1. Create free Supabase Postgres database.
2. 1-Click deploy to Vercel.
3. Push schema with drizzle-kit.
Read Cloud Guide

Manual Node.js

BARE METAL / PM2

Full control over the Node.js runtime and PostgreSQL configuration.

$ npm install
$ cp .env.example .env.local
$ npm run build
$ pm2 start npm --name "xine" -- start
Read Manual Guide

Frequently Asked Questions

Is Xine Analytics free?

Yes. Xine is completely free and open-source under the AGPL-3.0 license. You self-host it on your own infrastructure with Docker Compose or deploy manually to any VPS. There are no usage limits, no feature gates, and no hidden costs.

Does Xine use cookies?

No. Xine is 100% cookie-free. It uses localStorage for anonymous visitor identification and sessionStorage for session tracking. No cookie consent banners are required, making it fully compliant with the ePrivacy Directive.

Is Xine GDPR compliant?

Yes. Xine collects no personally identifiable information (PII), sets no cookies, and does not perform cross-site tracking. All data stays on your server. It is fully compliant with GDPR, CCPA, and PECR without requiring consent banners.

What tech stack does Xine use?

Xine is built with Next.js 16 (App Router), TypeScript, PostgreSQL 16+, Drizzle ORM, Tailwind CSS, GSAP animations, and Recharts. The tracking script is vanilla JavaScript at just 8KB minified.

How do I install the Xine tracking script?

Add a single script tag to your HTML: <script defer data-domain='yourdomain.com' src='https://your-xine-instance.com/t.js'></script>. It auto-detects single-page applications and tracks pageviews, events, Web Vitals, and more.

Own your analytics.

Xine provides a premium analytical experience for free. Host it via Docker Compose or deploy manually to your VPS.

Licensed under AGPL-3.0. Made by Unisource.