Developer documentation / Getting started
Start on your host.
Then choose the hardware.
The standalone Python package lets you explore resource exchange and cryptographic primitives without a SAGE installation or a radio. Device setup has its own application-owned workflow.
Trying it for the first time? Use the short tester guide for an offline example, firmware build steps and a result checklist, or download the SAGE-branded PDF. Track the current community test ladder and report each result separately.
01 / Standalone package
Install alpha.5 or a source checkout.
Use Python 3.11 or later. The package depends on cryptography and PyNaCl. Python package 1.0.0a5 is available from v1.0.0-alpha.5. Its release manifest identifies the exact source and artifacts. Download its wheel, verify it against the attached SHA256SUMS, then install it in a normal virtual environment.
python -m venv .venv
. .venv/bin/activate
python -m pip install ./meshticulum-1.0.0a5-py3-none-any.whl
python -I -c "from importlib.metadata import version; import meshticulum; print(version('meshticulum')); print(meshticulum.__file__)"
meshticulum-seed --helpThe release also includes the normalized source archive and firmware source-build guide. To work from the current checkout instead:
git clone https://github.com/l33tdawg/meshticulum.git
cd meshticulum
python -m venv .venv
. .venv/bin/activate
python -m pip install .
python -I -c "from importlib.metadata import version; import meshticulum; print(version('meshticulum')); print(meshticulum.__file__)"
meshticulum-seed --helpThe import check shows the installed version and module location; the final command displays the public-resource CLI. Alpha.5 includes optional timing and receive diagnostics. The release validation record checks installed content against the selected wheel. Hardware runs have their own exact artifact and timing boundaries; earlier radio proofs keep their original identities. Add --profile-host only to an already admitted transfer to collect the bounded phase report.
For source development and tests, follow the SDK installation guide. Imports and CLI help do not open a radio, enroll a peer or start a device service.
See the release assets, alpha.5 validation and hardware scope, package metadata and installation instructions.
02 / Python SDK
An exchange with one deadline.
BlockServer reads a caller-owned public allowlist. BlockReader is callable: reader(path, limit, deadline). Its exchange receives the request bytes, maximum response size and the same absolute monotonic deadline.
This small example runs entirely in one process. It demonstrates the codec with synthetic public bytes; it supplies no authentication or publisher-verification evidence.
import hashlib
import time
from meshticulum.resources.resource import BlockReader, BlockServer
payload = b"Public codec fixture: hello Meshticulum."
manifest_id = hashlib.sha256(b"local fixture manifest").hexdigest()
chunk_id = hashlib.sha256(payload).hexdigest()
path = f"/packs/{manifest_id}/chunks/{chunk_id}.json"
server = BlockServer({path: payload}.__getitem__)
def exchange(request, response_limit, deadline):
if time.monotonic() >= deadline:
raise TimeoutError("Original deadline expired")
reply = server.handle(request)
if len(reply) > response_limit:
raise ValueError("Response exceeded bound")
return reply
reader = BlockReader(exchange, max_block=16)
assert reader(path, 1024, time.monotonic() + 2) == payloadFor a real public pack, use an independently pinned publisher key and signed manifest. VerifiedCache and the chunk verifier check the content before it enters a reusable cache. A radio or TCP exchange must enforce its own authentication, authority and original deadline.
The source guide covers canonical imports, publisher verification and envelope conversion boundaries.
The public example composes existing encrypted flow, finite grants and durable journals. Fresh 100 kB, 250 kB, 500 kB and 1 MB files completed on the direct GFSK250 HAT-to-MCU route. The larger-file tests reached 2.111, 2.216 and 2.230 kB/s including startup, with every part and whole-file hash verified; an earlier 1 MB sample under heavy sender-host load reached 1.750 kB/s and stays in the record. A separate clean installed-wheel check also completed a 100 kB file at 1.74 kB/s. Read the exact source, timing and limits; repeated capacity and broader deployment remain open. Start with the bounded raw-file example.
03 / Experimental firmware
Build from pinned inputs.
The public raw-radio recipe has separate fetch, prepare and build actions. Its recorded build host is macOS arm64 with Python 3.12.8 and PlatformIO Core 6.1.19. The two reviewed targets are Heltec V4 and Xiao S3 WIO.
Current source includes a queue-closed-by-default MCU DATA path. The historical four-frame Heltec V4 image produced identical application BIN and ELF bytes in two clean builds from the same pinned inputs. Current eight-frame and profiling source has separate build identities and requires its own qualification. Its 24 October LoRa comparison used an explicit host grant to enable the four-packet ciphertext queue; the published 17 October 1.0.0a1 wheel does not contain this new path. Matching host and firmware capabilities, original deadlines and incremental operation budgets are required. Keys and authenticated flow decisions remain on the host. Read the setup and lifecycle contract before enabling it.
Run from the Meshticulum checkout. Use a fresh build/firmware-work directory; preparation refuses an existing output. Fetch downloads the 14 checksum-pinned inputs, while build invokes no upload or erase action.
python3.12 -m venv build/firmware-cli
build/firmware-cli/bin/python -m pip install \
-r firmware/meshticulum-bench/requirements-firmware.txt
build/firmware-cli/bin/python firmware/meshticulum-bench/prepare_firmware.py fetch \
--archive-dir build/firmware-archives
build/firmware-cli/bin/python firmware/meshticulum-bench/prepare_firmware.py prepare \
--archive-dir build/firmware-archives \
--output-dir build/firmware-work
build/firmware-cli/bin/python firmware/meshticulum-bench/prepare_firmware.py build \
--output-dir build/firmware-work \
--pio-python build/firmware-cli/bin/pythonBoth targets compile by default. Select one explicitly with --target mtbench_heltec_v4 or --target mtbench_xiao_s3_wio. The outputs include application, ELF, map, bootloader and partition hashes. Compilation does not qualify those images for RF operation or production deployment.
04 / Flashing and native setup
Use the application that owns the device.
The published alpha supplies the SDK and a firmware source-build path. No ready-made firmware is included; distributing optional prebuilt binaries needs a separate review. Follow the public app-only flashing and rollback guide for your own board. Your application supplies exclusive ownership, finite admission and lifecycle controls. The public SDK examples work without Lantern or the SAGE SDK; Lantern keeps its product provisioning and fleet tools in its own repository.
- Match the target and existing device state.
Verify the actual board, source/build hashes, partition layout, active image and rollback correspondence. A target label alone is insufficient.
- Establish exclusive device ownership.
Coordinate existing radio clients and services before an application-owned transition. Keep original process and device identities through setup and cleanup.
- Prepare the reviewed flash transaction.
The generic app-only flash library plans its
0x10000application range only after partition, OTA-selector and current-image checks. Preserve the exact backup and rollback receipt; a generic upload command does not perform those checks. - Provision a fresh finite run.
The host supplies peers, keys, profile, regional/antenna confirmation, budgets and original deadlines. Verify disarm and terminal ownership before handback. A successful install supplies no radio permission.
Use the source guide for supported targets and exact application-owner responsibilities. Native fleet tools stay in the Lantern repository.