Data to make business decisions - analytics that helps you understand your users
- 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.
This is a monorepo managed with pnpm:
/packages/dashboard: The Backend. Hono-based API running on Cloudflare Workers./packages/web: The Frontend. SvelteKit dashboard for visualizing your data.- Self-Hosting Guide: Detailed instructions for deploying your own instance to Cloudflare.
Simply add the tracking script to your <head>:
<script
defer
data-site="YOUR_SITE_ID"
src="https://stats.littlestats.click/tracker.js"
></script>Littlestats is fully open-source and easy to host on your own Cloudflare account.
-
Clone & Install:
git clone https://github.com/abdulmumin1/littlestats.git cd littlestats pnpm install -
Deploy Backend: Follow the Self-Hosting Guide to set up your Cloudflare D1 and deploy the worker.
- Runtime: Cloudflare Workers
- Database: Cloudflare D1 (SQLite)
- Real-time: Cloudflare Durable Objects
- Frontend: SvelteKit 5 + Tailwind CSS
- Auth: Better Auth
- API: Hono
This project is licensed under the MIT License. See the LICENSE file for details.
