██╗███████╗██████╗ ██╗███████╗ ██████╗ ██████╗
██║██╔════╝██╔══██╗██║██╔════╝ ██╔══██╗██╔══██╗
██║█████╗ ██║ ██║██║███████╗ ██║ ██║██████╔╝
██ ██║██╔══╝ ██║ ██║██║╚════██║ ██║ ██║██╔══██╗
╚█████╔╝███████╗██████╔╝██║███████║ ██████╔╝██████╔╝
╚════╝ ╚══════╝╚═════╝ ╚═╝╚══════╝ ╚═════╝ ╚═════╝
in-memory database engine
A high-performance, concurrent, in-memory key-value database engine built from the ground up in pure Java ☕ (zero external dependencies), featuring a modern React-based built-in web admin dashboard console.
This repository is split into two primary components: the backend Java database engine (mini-redis) and the React-based developer administration console (frontend).
The system is designed to run as a single process with zero configuration. The React frontend is compiled into a single self-contained HTML page and embedded directly into the Java executable JAR so that the database and its control console are delivered as a single package.
┌────────────────────────────────────────────────────────┐
│ User's Browser │
│ http://localhost:8080 │
│ (Live Metrics, Key Explorer, Web CLI Terminal) │
└──────────────────────────┬─────────────────────────────┘
│ REST API (JSON)
▼
┌──────────────────────────────────────────────────────────────────────────┐
│ Jedis Database Engine │
│ │
│ ┌───────────────────────┐ ┌───────────────────┐ ┌────────────────┐ │
│ │ DashboardServer │──▶│ CommandRouter │◀──│ TCP Server │ │
│ │ (Port 8080) │ │ (RESP2 Parser) │ │ (Port 6380) │ │
│ └───────────────────────┘ └─────────┬─────────┘ └────────┬───────┘ │
│ │ │ │
│ ▼ ▼ │
│ ┌───────────────────┐ ┌────────────────┐ │
│ │ Data Store │◀──│ redis-cli │ │
│ │ (ConcurrentHashMap│ │ (External App) │ │
│ │ & ExpiryMgr) │ └────────────────┘ │
│ └─────────┬─────────┘ │
│ │ │
│ ▼ │
│ ┌───────────────────┐ │
│ │ Persistence Layer │ │
│ │ (AOF + RDB JSON) │ │
│ └───────────────────┘ │
└──────────────────────────────────────────────────────────────────────────┘
/mini-redis: The backend Java source code. Built from first principles, utilizing non-blocking sockets, a thread-per-client model, and custom expiration/persistence tasks./frontend: A React + Vite dashboard styled with premium glassmorphism. It includes real-time telemetry gauges, a searchable key explorer, a visual add-key editor, and an interactive web terminal shell.
To compile and start both the backend server and the embedded web console, follow these simple steps:
- Java JDK 25 or higher installed.
- Node.js (for building the frontend assets).
- Maven (for compiling the Java database engine).
-
Build the Frontend Assets:
cd frontend npm install npm run build node update_dashboard_html.js -
Package and Run the Database:
cd ../mini-redis mvn clean package java -jar target/mini-redis-1.0.0.jar -
Access the Console:
- Open your browser to http://localhost:8080 for the public landing page and interactive database playground.
- Go to http://localhost:8080/admin and paste the dashboard access token printed in the server console.
- The dashboard binds to
127.0.0.1by default. SetJEDIS_DASHBOARD_BIND=0.0.0.0only if you intend remote access.
-
Connect with
redis-cli:redis-cli -p 6380 AUTH <the default-user password printed at startup>
- The server generates a random default-user password on startup and prints it once. Clients must
AUTHbefore running commands. - Pass
--requirepass <password>or setJEDIS_DEFAULT_PASSWORDfor a stable password. - The dashboard requires a bearer token and binds to loopback by default. Override the token with
JEDIS_DASHBOARD_TOKEN. --insecure-no-authdisables authentication. Use it only in an isolated development environment.- Report vulnerabilities privately using SECURITY.md.
For detailed specifications of the backend database or frontend dashboard, view the READMEs in their respective directories:
- Backend (mini-redis) Specification
- Frontend (React + Vite Console) Guide
The product marketing page lives at UI/landingPage and is not part of the embedded dashboard build.
cd UI/landingPage
npm install
npm run devSee UI/landingPage/README.md for details. It does not share code or build steps with /frontend or /mini-redis.