Bklit is a privacy-focused, open-source analytics platform built for modern web applications. Track pageviews, custom events, user sessions, and conversion funnels with a powerful SDK and beautiful dashboard.
Docs
·
X.com
·
Discord
·
Issues
- Fast, real-time analytics powered by ClickHouse
- Privacy-first analytics
- Custom events and conversion funnels
- Session tracking and user journeys
- Multi-project and team management
- Built-in billing & subscriptions via Polar.sh
- Node.js 22.18.0+
- pnpm (package manager)
- PostgreSQL database
- ClickHouse database (for analytics)
This monorepo is managed with Turborepo and pnpm workspaces.
bklit/
├── apps/
│ ├── dashboard/ # Main analytics dashboard (Next.js 15)
│ ├── docs/ # Documentation site (Fumadocs)
│ ├── playground/ # Demo app for SDK testing (Vite + React)
│ └── website/ # Marketing website (Next.js 15)
│
└── packages/
├── analytics/ # ClickHouse analytics engine
├── api/ # tRPC API routes
├── auth/ # Better Auth + Polar integration
├── db/ # Prisma ORM (PostgreSQL)
├── email/ # React Email templates
├── sdk/ # Analytics SDK (published to npm)
├── ui/ # Shared UI components (shadcn/ui)
├── utils/ # Common utilities
└── validators/ # Zod schemas for validation
- Frontend: Next.js 15 (App Router), React 19, Tailwind CSS v4
- Database: PostgreSQL (Prisma ORM) + ClickHouse (analytics events)
- Auth: Better Auth with GitHub/Google OAuth
- Billing: Polar.sh for subscriptions and payments
- Email: Resend with React Email templates
- UI: shadcn/ui components + Radix UI primitives
- API: tRPC for end-to-end type-safe APIs
- Analytics Engine: ClickHouse for high-performance event storage and queries
- Background Jobs: Trigger.dev for scheduled tasks and health checks
- Monorepo: Turborepo + pnpm workspaces
- Documentation: Fumadocs (Next.js-based docs framework)
- Quick Start Guide - Get up and running in minutes
- SDK Documentation - Integrate Bklit into your app
- Dashboard Guide - Learn the dashboard features
- Local Development - Set up isolated dev environment
- Playground - Test SDK integration
- Please see our Contributing Guide for details.
- MIT