Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bklit/bklit

Repository files navigation

hero

Bklit Analytics

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

Key Features:

  • 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

Prerequisites

  • Node.js 22.18.0+
  • pnpm (package manager)
  • PostgreSQL database
  • ClickHouse database (for analytics)

Project Structure

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

Stack

  • 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)

Repo activity

Alt

Contributing

License

  • MIT