HTTP/REST gateway that bridges external HTTP clients to the Meshpocalypse NATS mesh and Oxigraph SPARQL store.
Routes exposed:
GET /mesh/health
GET /mesh/agents
POST /mesh/publish
POST /mesh/rpc
POST /mesh/auction
POST /mesh/sparql/query
POST /mesh/sparql/update
Create a new HttpGateway.
Connected (or to-be-connected) MeshNode.
MeshGraph implementation (Oxigraph or NullMeshGraph).
Optional
Optional gateway configuration.
Expose the underlying Fastify instance. Primarily useful for testing via fastify.inject().
fastify.inject()
Start the HTTP server and begin accepting connections.
Resolves when the server is listening.
Gracefully shut down the HTTP server.
Resolves when all connections are closed.
HTTP/REST gateway that bridges external HTTP clients to the Meshpocalypse NATS mesh and Oxigraph SPARQL store.
Routes exposed:
GET /mesh/health— liveness probe (no auth)GET /mesh/agents— list registered agents (no auth)POST /mesh/publish— fire-and-forget publish (JWT required)POST /mesh/rpc— request/reply (JWT required)POST /mesh/auction— run capability auction (JWT required)POST /mesh/sparql/query— SELECT/CONSTRUCT queries (JWT required)POST /mesh/sparql/update— INSERT/DELETE updates (JWT + mesh:admin scope)