nhrbuilds/kryptondb
About
KryptonDB — Lightweight MongoDB-compatible database for tests and AI agents. Written in Rust. Hundreds of isolated, disposable databases in one process ⚛️
Data & AnalyticsMeasured star growth
- in 24h
- +1
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
Give every test, CI job, and AI coding agent its own temporary database.
KryptonDB runs on your computer and accepts MongoDB-compatible clients. Start with one database, create isolated branches when you need them, and remove them when the work is done.
Install · Try it · User guide · What to know
Open source · v1.0.0 · For disposable development data
What KryptonDB does
KryptonDB is a local document database for temporary work. Use it when several tests, CI jobs, or coding agents need separate MongoDB-compatible databases without sharing their changes.
The template is your starting database. A branch is a separate temporary database made from it. Start KryptonDB once, then create a branch for each test, CI job, or AI coding agent. Each branch keeps its own changes and expires after its idle time limit.
template database
├── test branch
├── CI branch
└── agent branch
You use KryptonDB from a terminal. You do not need Rust to install it. The quickstart uses mongosh; your app can connect with its existing MongoDB driver. There is no desktop application.
Install
Install the latest release for your computer:
Linux or macOS:
curl -fsSL https://raw.githubusercontent.com/nhrbuilds/kryptondb/main/install.sh | bash
Windows PowerShell:
irm https://raw.githubusercontent.com/nhrbuilds/kryptondb/main/install.ps1 | iex
The installer downloads the matching release binary and checks its checksum. You do not need a Rust toolchain. See the user guide for install options and troubleshooting.
Try it
The example uses mongosh. Install it separately if you do not already have it.
In one terminal, start KryptonDB:
kryptondb run --port 27017 --no-socket
Keep that terminal open. In another terminal, add one document to a template database, make a branch, and read the copied document:
mongosh "mongodb://127.0.0.1:27017/app" --eval \
'db.items.insertOne({_id: "welcome", message: "Hello from the template"})'
BRANCH_URI="$(kryptondb branch app test-1 --ttl 30m)"
mongosh "$BRANCH_URI" --eval 'db.items.findOne()'
The branch command prints a MongoDB connection URI. Give that URI to mongosh or to your app's MongoDB driver. When you are finished, remove the branch:
kryptondb drop test-1
KryptonDB also removes an idle branch when its time limit expires. See the user guide for loading your own data, using branches in tests and CI, and working in PowerShell.
What to know before you use it
- KryptonDB is for temporary development and test data. It is not a replacement for MongoDB or Atlas.
- It works with MongoDB drivers for supported commands, but it does not implement every MongoDB feature. Check the current limits and test your application before adopting it.
- The default mode keeps data in memory. Stopping or restarting KryptonDB clears databases and branches.
- The optional
--data-dirstorage mode is experimental. Branch expiry and database removal are not restart-safe in that mode. - The server listens on your computer by default and has no authentication or TLS. Do not expose it to an untrusted network.
- Seed files load documents. They do not restore indexes, validators, or collection settings.
Documentation
Start with the user guide for installation, seed files, database branches, app and CI use, and common problems. The documentation index separates user help from contributor and maintainer material. For security reports, see SECURITY.md.
For contributors
If you want to change KryptonDB, start with CONTRIBUTING.md. The architecture, roadmap, readiness notes, and performance reports are project references.
License and name
KryptonDB is licensed under AGPL-3.0-only. See LICENSE.
MongoDB is a registered trademark of MongoDB Inc. KryptonDB is an independent project. It is not affiliated with, endorsed by, or sponsored by MongoDB Inc.
Author: Nowshad Hossain Rahat · [email protected]
GitHub · nhrdev.com · X · Org
Explore related projects
Loading…
