The rewrite's plan and decisions are in revamp.md. Steps 0 to 10 are done: the workspace and checks, bakashrot-proto, bakashrot-pki and bakashrot-cert, bakashrot-config, bakashrot-storage (schema v9), the server and the client library (every request but replication's, attachments and retention included), the C DLL with its C, PureBasic and Python bindings, and the bakashrot tool. Step 11 (replication) is next. OldSource/ is the old implementation, kept building and passing as the reference. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RwFeVTGs2SsufaH6zquzcb
BakaShrot
A message store with replication.
Important
Being rewritten in Rust, see revamp.md: the new sources go in Source/. The PureBasic implementation described below is in OldSource/, where its commands are run from.
Servers take messages (usually JSON) per topic and node from authenticated clients, store them in SQLite, and replicate them to their peers by name.
Note
Meant as an internal tool on trusted machines and networks.
Features
- Encrypted connections, both ends prove who they are (Ed25519, libsodium)
- Replication between peers, by topic and node names
- Attachments of any size, one per message
- Per-topic retention
- Read-only SQL queries on the stored messages
- Clients:
- A DLL, with PureBasic prototypes
- CLI tools to push, read, query and list
- A Python module over the DLL, without dependencies, as a wheel with the DLLs in it
Building (the PureBasic implementation)
Requires PureBasic 5.73 or 6.40+ and the submodules. From OldSource/:
- Development:
powershell -ExecutionPolicy Bypass -File Build.ps1(intoBuild\) - Release:
powershell -ExecutionPolicy Bypass -File Release.ps1(intoRelease\) - Docker: See OldSource/Docker/README.md
- Python: See OldSource/Interactors/Python/README.md
See OldSource/Examples/ for ready-to-run setups, and OldSource/Server/Config/schema.ini for every option of the server.
Cloning
Use one of these commands to clone the repository and its submodules:
git clone --recurse-submodules https://github.com/aziascreations/BakaShrot.git
git clone --recurse-submodules https://git.nibblepoker.lu/aziascreations/BakaShrot.git
License
All the code in this repo is released in the Public Domain.
Please note that this doesn't apply to the required PureBasic archives.
The releases and the Python wheel include libsodium, under the ISC license.