# KafLite **Repository Path**: simiam/kaf-lite ## Basic Information - **Project Name**: KafLite - **Description**: 一个轻量级的Kafka运维监控小工具,主机快速部署。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-02-12 - **Last Updated**: 2026-02-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # KafLite A lightweight, single-JAR Kafka operations Web UI built with Spring Boot and Thymeleaf. ## Features - **Cluster Management**: Support for multiple Kafka clusters (KRaft/ZK). - **Topic Management**: List, create, delete, and configure topics. - **Message Browser**: View messages by partition, offset, or time; send test messages. - **Consumer Groups**: Monitor consumer groups, view lag, and member assignments. - **Security**: RBAC with embedded user management (Admin/View-only). - **Lightweight**: Single JAR file, no external dependencies, embedded H2 database. ## Prerequisites - JDK 8 or higher - Maven 3.x (for building) ## Build ```bash mvn clean package ``` The executable JAR will be created at `target/kaflite-1.0.0-SNAPSHOT.jar`. ## Run ```bash java -jar target/kaflite-1.0.0-SNAPSHOT.jar ``` The application will start at `http://localhost:8080`. ## Configuration You can override the configuration using an external `application.yml`: ```bash java -jar kaflite.jar --spring.config.location=file:./application.yml ``` ### Example Configuration ```yaml kaflite: clusters: - id: dev name: Dev Cluster bootstrap-servers: localhost:9092 properties: security.protocol: PLAINTEXT security: enabled: true users: - username: admin password: password roles: [ADMIN] ``` ## Default Login - **Username**: admin - **Password**: password ## Tech Stack - Spring Boot 2.7.x - Thymeleaf - Bootstrap 5 - Kafka Clients 3.x - H2 Database - Spring Security