1. Browser Packages (@fleetmesh/*)#
Six npm packages are supported in the alpha release. They are released in lockstep with the Python distributions at the same version number, and each implements the browser-side counterpart of a FleetMesh protocol or Python package:
Package |
Description |
Counterpart |
|---|---|---|
Leaf profile runtime enabling a browser or PWA to join the mesh as a mediated leaf over a single |
|
|
Textile content-addressed data plane: fibers, strands, fabrics, quilts, and the local vault store. |
|
|
Circle governance (kind |
|
|
Direct-message conversations, NIP-44 message sealing, and mailbox synchronization. |
||
Client-side Git repository management: commits, branches, merges, and Git object identifiers. |
||
Game Boy (DMG-01) emulator, WASM-4 and nsite runtimes, and cartridge, save, and score records. |
The packages @fleetmesh/protocols, @fleetmesh/media, @fleetmesh/ai-mcp, and @fleetmesh/leaf-runtime are experimental. They maintain independent versions under the experimental dist-tag and are excluded from the main release (see Experimental Features).
1.1. Installation#
Pre-release builds are published under the next dist-tag; an unqualified npm install resolves an older release (see Install).
npm install @fleetmesh/leaf@next
npm install @fleetmesh/textile@next @fleetmesh/leaf@next
Each package depends exclusively on lower-layer FleetMesh packages and on exact-pinned versions of the audited @noble/* and @scure/base cryptographic libraries:
leaf @noble/ciphers, @noble/curves, @noble/hashes, @scure/base
textile leaf
circles textile, leaf
dm circles, textile
grasp textile
arcade textile
All packages are published as ES modules (ESM) with TypeScript type declarations. The package root (.) exports the public API, and subpath imports (./*) expose individual modules directly (for example, @fleetmesh/grasp/gitObjects). The module tables on each package page list these subpath names.
1.2. Host Adapters#
@fleetmesh/circles, @fleetmesh/dm, @fleetmesh/grasp, and @fleetmesh/arcade interact with their host environment (HTTP APIs, persistent storage, and notifications) exclusively through an adapter registered once at application startup via configureCirclesHost, configureDmHost, configureGraspHost, or configureArcadeHost. Each configuration function accepts a partial adapter object and merges it with defaults; is…HostConfigured() reports whether host configuration has been performed.
Packages do not fabricate successful results when a required host capability has not been configured. Invoking an unconfigured adapter member either throws HostNotConfiguredError (exported from @fleetmesh/textile) for operations where synthetic output would be unsafe (such as tokens, keys, or uploads), or returns an explicit failure value and logs a single warning.
1.3. Testing#
Each package supports the following commands within its directory in the mesh-ts workspace:
npm run typecheck
npm test # vitest, Node
npm run build # dist/*.js and dist/*.d.ts
@fleetmesh/leaf additionally executes its test suite in Chromium, Firefox, and WebKit via Vitest browser mode on Playwright (npm run test:all). @fleetmesh/leaf is validated against the cross-language test vectors in core/vectors/, and @fleetmesh/textile is validated against textile/vectors/textile-v1.json.