1
0
mirror of https://github.com/aziascreations/BakaShrot.git synced 2026-11-23 20:58:46 +01:00
aziascreations 68966a8031 Added replication, Added clean stops, logs and releases (0.2.0)
Step 11: the servers replicate by name (push_to and accept_from), their
messages and attachments, damaged copies asked for again.

Step 12: the server stops cleanly on SIGTERM/SIGINT (Ctrl+C, Ctrl+Break
and the console closing on Windows), committing what was queued; logs go
to the console, BAKASHROT_LOG sets the level. release.py builds a
release per platform (the programs, the DLL, a Python wheel with the
library, THIRD-PARTY.txt) and smoke-tests it; CI runs it on v* tags.
Built for size (opt-level "s"): 25-31% smaller.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 20:38:32 +01:00

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/:

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.

S
Description
(W.I.P.) Vibe-coded message store with replication used for internal messaging between micro-services.
Readme CC0-1.0 2.9 MiB
Languages
Rust 76.4%
Python 9.3%
C# 6.8%
PureBasic 3.7%
C 2.4%
Other 1.4%