k-lani is an umbrella for focused products, developer tools, platform building blocks, and measured experiments. The public root page presents that portfolio; the k-lani database, formerly shown as the whole brand, now has its own page.
This repository contains the static project overview, the Docker-based database demo, the minimal redistributed runtime binaries needed to run it, and the comparative benchmark reports that back the database claims.
Live preview:
- k-lani.com - overview of the k-lani projects
- k-lani.com/database.html - k-lani DB / ACID Fox and its benchmark story
- code-translator.k-lani.com - synchronized multilingual code reading
- demo.k-lani.com - live ticket horde dashboard
- hft.k-lani.com - experimental HFT workstation
New to the engine model? Start with GETTING_STARTED.md for the first table, field types, write/query flow, language entry points, and common error handling.
Legal and contribution context:
- LICENSE.md - Business Source License 1.1 terms for the redistributed preview binaries and k-lani work.
- SYMBIOSIS.md - social contribution pact for agents, toolchains, and humans; it does not replace the license.
Traditional locking databases struggle when a small inventory surface receives a huge burst of simultaneous purchase attempts. k-lani's ticket demo exercises that exact failure mode.
Scenario:
- 100,000 users compete for 10,000 tickets
- 128 concurrent workers
- the horde container is capped at 2 vCPUs and 4 GB RAM
Reference result:
- time to sold out: 5.326 seconds
- correctly sold and re-verified: 10,000 / 10,000 tickets
- double-spends: 0
- peak combined read and update throughput: 10,633 ops/s
The live horde page proves persisted inventory contention handling on the TCP
server path. The repo also ships a native QUIC ticket path, but the public
demo.k-lani.com benchmark page is the TCP reference run.
The point of k-lani is not to replace a general-purpose multi-terabyte relational cluster. The point is to win on small hot data surfaces with extreme write contention and very low read latency.
When multiple writers fight over the same embedded table, classical locking
engines collapse into contention. The bundled embedded release report covers
1,000,000 rows and 100,000 lookups, and shows:
| System | Scenario | Writers | TX/s | Per-writer p95 |
|---|---|---|---|---|
| k-lani | sustained concurrent point updates | 32 | 3794.78 | 10.93 ms |
| SQLite | sustained concurrent point updates | 32 | 190.02 | 216.10 ms |
| heed | sustained concurrent point updates | 32 | 360.04 | 148.73 ms |
| redb | sustained concurrent point updates | 32 | 686.84 | 75.76 ms |
The same release report records 310 ns p50 primary-key lookups for k-lani on
the 1,000,000-row dataset, versus 3820 ns for SQLite.
The bundled client/server release report was generated on this host with
100,000 rows and 100,000 random lookups. In that run, the k-lani server
path delivers:
- batched insert throughput:
413,292.85rows/s, versus20,986.64for Postgres and23,208.65for MariaDB - p50 point lookup latency:
31.27 us, versus128.56 usfor Postgres and46.08 usfor MariaDB - p50 indexed equality lookup:
53.95 us, versus343.10 usfor Postgres and186.56 usfor MariaDB - p50 two-index predicate lookup:
36.67 us, versus182.45 usfor Postgres and170.51 usfor MariaDB - compiled server binary footprint:
1,679,624bytes, about1.6 MB
The same report also shows why the public claim is scoped: PostgreSQL is
stronger in the long 60s server-side write saturation runs. k-lani is being
presented here for small hot sets, low-latency lookups, tight binary footprint,
and contention-heavy inventory surfaces rather than as a blanket replacement
for general-purpose OLTP stacks.
These public numbers were measured on:
- Ubuntu
24.04.4 LTSwith Linux6.17.0-29-generic - AMD Ryzen 5 7600X with
12logical CPUs 31 GiBRAM- NVMe-backed
1.8 TBsystem volume at/and1.8 TBworkspace volume at/d - Docker
29.5.2
Bundled evidence in this repo:
reports/client-server-comparative-release-2026-05-29.mdreports/embedded-core-comparative-release-2026-04-29.mdreports/holiday-rush-smoke-2026-05-30.mdreports/benchmark-host-2026-05-29.mdreports/SHA256SUMS.txt
For the exact local commands, container limits, runtime scripts, and the published benchmark scope, see BENCHMARKS.md.
The preview bundle also includes the real_world_booking_bench binary and a
holiday demo mode. The smoke run books exactly 1,000 rooms with exactly 1,000
booking sessions through the TCP server path, then recounts persisted rows.
docker build -t k-lani-demo:preview .
docker run --rm \
-e K_LANI_DEMO_MODE=holiday \
-e K_LANI_HOLIDAY_HOTELS=20 \
-e K_LANI_HOLIDAY_ROOMS_PER_HOTEL=50 \
-e K_LANI_HOLIDAY_SESSIONS=1000 \
-e K_LANI_HOLIDAY_WORKERS=16 \
k-lani-demo:previewReport: reports/holiday-rush-smoke-2026-05-30.md.
Requirements:
- Docker
- Docker Compose
- enough Docker memory for the default horde cap of 4 GB
- free local ports
8080,8081,8082, and7701/udp - network access on the first build to pull
debian:bookworm-slim
Quickstart:
git clone https://github.com/MarvKalani/k-lani-demo.git
cd k-lani-demo
docker compose up -d --buildWatch the horde benchmark complete:
docker compose logs -f horde
Then open:
http://localhost:8082for the project overviewhttp://localhost:8082/database.htmlfor the database pagehttp://localhost:8081for the horde dashboardhttp://localhost:8080for the HFT workstation
The horde service runs with the published 2 vCPU / 4 GB limit. The HFT service is deliberately capped to 10 MB of demo data so the preview host cannot grow an unbounded market-feed state.
Stop everything and remove local volumes:
docker compose down -v
The compose stack brings up the long-running landing, horde, and HFT services. For the one-shot native QUIC ticket benchmark, build the image once and then run it directly:
docker run --rm \ -e K_LANI_DEMO_MODE=quic-ticket \ -e K_LANI_USERS=100000 \ -e K_LANI_WORKERS=128 \ -p 7701:7701/udp \ k-lani-demo:preview
GETTING_STARTED.mdexplains the first-table workflow, supported field types, language entry points, k-lani query shapes, and common errors.LICENSE.mdcontains the full legal license for the redistributed preview bundle and k-lani work.SYMBIOSIS.mdcontains the non-legal contribution pact for agents and humans.bin/contains only the five runtime binaries needed for the public demo modes.docker-compose.ymlstarts the local landing, horde, and HFT preview stack.reports/contains the comparative benchmark reports andSHA256SUMS.txt.site/contains the project overview, the database and Coder pages, the benchmark proof page, and the legal pages. The landing container serves it directly, and the horde container copies the legal pages from it into the generated dashboard output.scripts/contains the preview entrypoints used by the image.
Validate the public page contract before publishing:
bash scripts/test-site-contract.sh
What is not in this repo:
- the private Rust workspace
- extra internal executables or build artifacts
- seeded HFT demo payloads
- pitch drafts or maintainer-only handoff notes
- The HFT workstation is experimental and intentionally capped to 10 MB of demo data.
- The static project overview is permanent and does not inherit the expiry gate used for time-limited database preview binaries.
- The public repo ships only the minimal runtime binary set, not the whole private build output.
- Public benchmark claims should be read together with the committed reports and the checksum manifest.
- The Symbiosis Pact is social context only; the license remains the legal authority.