1. Host Protocol Libraries (fleetmesh-protocols)#

fleetmesh-protocols provides host-side storage backends and HTTP route handlers for FleetMesh application protocols as a standalone Python library. The package contains no node runtime, transport layer, or event loop, enabling web hosts to embed these components directly. Its sole runtime dependency is fleetmesh-core[crypto]. Although meshnode declares a dependency on this distribution, it does not import it at runtime.

1.1. Installation#

pip install --pre fleetmesh-protocols

1.2. Subpackages#

Subpackage

Scope

Browser Counterpart

fleetmesh_protocols.textile

Fiber and quilt stores, HTTP route handlers, and the hosted leaf relay (NIP-77 negentropy synchronization and DIDComm mediation).

@fleetmesh/textile

fleetmesh_protocols.dm

Direct-message mailbox and DIDComm spool stores.

@fleetmesh/dm

fleetmesh_protocols.grasp

Bare Git repositories, Git smart HTTP transport, the /api/grasp workbench, and seeded repositories.

@fleetmesh/grasp

fleetmesh_protocols.arcade

Arcade items, engines, desktop state, metadata, scores, and HTTP route handlers.

@fleetmesh/arcade

fleetmesh_protocols.circles

Social circle-rooms store and persistence layer.

1.3. Support Status#

  • textile, dm, grasp, and arcade are supported in the alpha release.

  • circles is supported as an opt-in module.

  • circles.blinding (blinded pre-emptive tombstones and PrivacyLadderLedger) is experimental (see Experimental Features).

These modules were factored out of meshnode (formerly node.protocols.*) so that web hosts can serve application protocols without installing the full node runtime.

1.4. HTTP Route Handler Contract#

Route handlers such as handle_arcade_http accept a store instance, request parameters (method, route, query, and body), and the authenticated principal resolved by the host’s session layer. Each handler returns an HttpResult (containing status code, body, content type, and headers) for the host to transmit, or None if the route is not handled by that module. This framework-agnostic interface allows integration with any Python HTTP server.

1.5. Testing#

Execute the test suite alongside the sibling core and schema repositories:

cd mesh-py/protocols
for t in tests/test_*.py; do PYTHONPATH=.:../core:../../schema python3 "$t"; done