Framework for MeshCore bots with a built‑in AI gateway that handles adverts, messages, and channel replies.
- Node.js >= 25 and access to a MeshCore device (serial path in
MESHCORE_DEVICE). - An OpenAI-compatible API key (
AI_API_KEY).
- Install dependencies:
npm install - Copy
.env.exampleto.envand set values (notablyMESHCORE_DEVICE,AI_API_KEY,SQLITE_DBdefaults todata/sqlite.db). - Run locally:
npm start
- Build/run:
docker compose up --build - Compose injects env vars from
.envand mounts./src/datafor SQLite persistence. - The container uses
npm run start:docker(no env-file flag); adjustMESHCORE_DEVICEto the mapped device (e.g.,/dev/ttyUSB0) and updategroup_addif your dialout GID differs.
The server listens on HTTP_HOST:HTTP_PORT (default 0.0.0.0:8080) under HTTP_API (default /api) and exposes actions for device control, AI relay, channel management, and data retrieval. See src/index.js for endpoints.