Skip to content

Abdulmumin1/littlestats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

209 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Littlestats

Data to make business decisions - analytics that helps you understand your users

alt text

License: MIT Stack: Cloudflare Workers


Features

  • Performance: < 1kb tracking script. Zero impact on your Core Web Vitals.
  • Real-Time: Powered by Cloudflare Durable Objects for instant data streaming via WebSockets.
  • Privacy-First: No cookies, no PII, no tracking across domains. GDPR/CCPA compliant out of the box.
  • Edge-Native: Runs entirely on the Cloudflare edge (Workers + D1 + Durable Objects).
  • Advanced Tracking: Automated UTM campaigns, custom events, funnels, and retention analysis.

Project Structure

This is a monorepo managed with pnpm:


Quick Start

For Users

Simply add the tracking script to your <head>:

<script 
  defer 
  data-site="YOUR_SITE_ID" 
  src="https://stats.littlestats.click/tracker.js"
></script>

For Developers (Self-Hosting)

Littlestats is fully open-source and easy to host on your own Cloudflare account.

  1. Clone & Install:

    git clone https://github.com/abdulmumin1/littlestats.git
    cd littlestats
    pnpm install
  2. Deploy Backend: Follow the Self-Hosting Guide to set up your Cloudflare D1 and deploy the worker.


Tech Stack

  • Runtime: Cloudflare Workers
  • Database: Cloudflare D1 (SQLite)
  • Real-time: Cloudflare Durable Objects
  • Frontend: SvelteKit 5 + Tailwind CSS
  • Auth: Better Auth
  • API: Hono

License

This project is licensed under the MIT License. See the LICENSE file for details.


About

Data to make good business decisions - analytics that helps you understand your users

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors