Skip to content

meshcore-ts

A MeshCore companion TypeScript library for Node.js.
Terminal window
pnpm add @andyshinn/meshcore-ts

Stateful session, injected ports

Construct a MeshCoreSession with an injected Transport (and optional Logger). The session owns a typed event emitter and in-memory session state; it never writes to disk.

You own persistence

Subscribe to events (contacts, messages, owner, …) and store them however you want. On reconnect the session re-syncs from the radio.

Zero runtime dependencies

Only node:buffer / node:crypto. BLE/serial drivers stay your responsibility behind the Transport port.

Multi-instance safe

No module-level singletons — every session keeps its own state, so you can run several concurrently in one process.

This site publishes llms.txt files following the llms.txt convention so AI assistants and coding tools can ingest the documentation directly:

  • llms.txt — index and overview, linking to the full sets
  • llms-full.txt — the complete documentation in one file
  • llms-small.txt — a compact version for smaller context windows