Haystack HTTP API server with SCRAM auth, WebSocket watches, and federation.
Provides [HaystackServer] — an Actix Web-based HTTP server implementing
the full Project Haystack REST API with 30+ standard operations.
Features
- 30+ Haystack ops — about, read, nav, hisRead, hisWrite, pointWrite, watchSub, watchPoll, watchUnsub, invokeAction, defs, libs, formats, and more
- SCRAM SHA-256 auth — Token-based authentication with configurable TTL
- WebSocket watches — Real-time entity change subscriptions with compression
- Federation — Hub-and-spoke topology with automatic entity routing, delta sync, and adaptive intervals
- History store — In-memory time-series storage for his-tagged points
- Content negotiation — Zinc, JSON, JSON v3, CSV via Accept header
Quick Start
use ;
use HaystackServer;
# async