mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
v0.0.1
The listener called NetworkServerEvent() while a client thread aborting called CloseNetworkConnection(), neither under *Server\Mutex: both change PureBasic's connection list, which segfaulted the server on Linux when invalid frames came in while clients were busy. Both now hold the mutex. Every suite passes on Linux (6.41 C and asm), 5.73 compiles it. Notes.md: the Docker image tested under load, open items 21 (this, fixed), 22 (a leading BOM is dropped) and 23 (a NUL cuts a message). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BakaShrot
A message store with replication, written in PureBasic.
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
Requires PureBasic 5.73 or 6.40+ and the submodules.
- Development:
powershell -ExecutionPolicy Bypass -File Build.ps1(intoBuild\) - Release:
powershell -ExecutionPolicy Bypass -File Release.ps1(intoRelease\) - Docker: See Docker/README.md
- Python: See Interactors/Python/README.md
See Examples/ for ready-to-run setups, and 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.
Languages
Rust
76.4%
Python
9.3%
C#
6.8%
PureBasic
3.7%
C
2.4%
Other
1.4%