{"name":"Bklit: Open-Source Analytics SaaS (Discontinued)","description":"Bklit was a privacy-focused, open-source analytics platform designed for modern web applications, offering real-time tracking of pageviews, events, and user sessions. Built with a powerful SDK and a beautiful dashboard, it provided robust features for web analytics. Please note, Bklit Analytics has been discontinued, and its hosted service, npm packages, and self-hosted infrastructure are no longer maintained.","github":"https://github.com/bklit/bklit","url":"https://osrepos.com/repo/bklit-bklit","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/bklit-bklit","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/bklit-bklit.md","json":"https://osrepos.com/repo/bklit-bklit.json","topics":["analytics","app-analytics","web-analytics","metrics","TypeScript","monorepo","open-source","SaaS"],"keywords":["analytics","app-analytics","web-analytics","metrics","TypeScript","monorepo","open-source","SaaS"],"stars":null,"summary":"Bklit was a privacy-focused, open-source analytics platform designed for modern web applications, offering real-time tracking of pageviews, events, and user sessions. Built with a powerful SDK and a beautiful dashboard, it provided robust features for web analytics. Please note, Bklit Analytics has been discontinued, and its hosted service, npm packages, and self-hosted infrastructure are no longer maintained.","content":"## Introduction\nBklit Analytics was an ambitious open-source project aimed at providing a privacy-focused analytics platform for modern web applications. It allowed users to track pageviews, custom events, user sessions, and conversion funnels through a powerful SDK and an intuitive dashboard. Built with a cutting-edge tech stack, Bklit offered real-time insights and a comprehensive feature set for web analytics.\n\n**Important Note:** Bklit Analytics has been officially discontinued. The hosted service, npm packages (`@bklit/sdk`, `@bklit/create`), and self-hosted infrastructure are no longer maintained. While the project is no longer actively developed, its codebase remains a valuable resource for understanding advanced analytics system design and modern web development practices.\n\n## Installation\nAlthough the project is discontinued, you can still explore its architecture and setup for learning purposes. The project was designed for a quick start:\n\nTo get Bklit running in under 2 minutes, you would use:\n\nbash\nnpx @bklit/create\n\n\nThis CLI tool was designed to automate the setup process, checking prerequisites, generating secure secrets, setting up PostgreSQL & ClickHouse with Docker, installing dependencies, creating the database schema, and starting the development server.\n\n**Prerequisites (for local exploration):**\n*   **Node.js 22.0.0+**\n*   **pnpm 9.6.0+**\n*   **Docker** (optional, for automatic database setup)\n*   **PostgreSQL** (if not using Docker)\n*   **ClickHouse** (if not using Docker)\n\nFor manual setup, the repository provides detailed instructions, including cloning the repo, installing dependencies, configuring environment variables, and starting backend and frontend services.\n\n## Examples\nThe primary example of interacting with Bklit was through its `npx @bklit/create` command, which provided a full local development environment. This setup included:\n\n*   **Dashboard:** Accessible at `http://localhost:3000`\n*   **Playground:** For SDK testing, at `http://localhost:5173`\n*   **Website:** Marketing site, at `http://localhost:4000`\n*   **WebSocket:** Real-time server, at `ws://localhost:8080`\n\nThese local instances allowed developers to experiment with the analytics SDK, track events, and visualize data in real-time, showcasing the platform's capabilities before its discontinuation. The project's architecture, involving a WebSocket server, Redis queue, and ClickHouse for data storage, offers a robust example of a real-time analytics pipeline.\n\n## Why Use\nDespite its discontinuation, Bklit remains an excellent open-source project for educational purposes and as a reference for building complex, real-time web applications. Its codebase demonstrates:\n\n*   **Real-time Analytics:** A sophisticated WebSocket-based architecture for instant live tracking and session management.\n*   **Modern Tech Stack:** Utilizes Next.js 16 (App Router), React 19, Tailwind CSS v4, PostgreSQL with Prisma ORM, ClickHouse for analytics, Redis for queuing, tRPC for type-safe APIs, and shadcn/ui for components.\n*   **Monorepo Structure:** Managed with Turborepo and pnpm workspaces, showcasing best practices for large-scale projects.\n*   **Comprehensive Features:** Features like a visual funnel builder, geographic insights, and a developer-friendly SDK provide a blueprint for advanced analytics functionalities.\n*   **Privacy Focus:** Designed with privacy in mind, offering a valuable perspective on building ethical data platforms.\n\nExploring Bklit's source code can provide invaluable insights into building high-performance, scalable, and real-time data-driven applications.\n\n## Links\nFor those interested in exploring the project's codebase and its related components:\n\n*   **GitHub Repository:** [bklit/bklit](https://github.com/bklit/bklit)\n*   **Bklit UI Library:** [bklit-ui](https://github.com/bklit/bklit-ui)\n*   **Original Documentation:** [docs.bklit.com](https://docs.bklit.com) (Note: This documentation may no longer be actively maintained or available.)","metrics":{"detailViews":1,"githubClicks":0},"dates":{"published":null,"modified":"2026-06-12T16:14:39.000Z"}}