Check API
The @staydistributed/check-api package provides an HTTP API built on Fastify 5.
Starting the server
Section titled “Starting the server”# Build and startcd packages/check/apipnpm buildpnpm startThe server listens on port 3100 by default. Set the STAYDISTRIBUTED_CHECK_API_PORT environment variable to change it.
Endpoints
Section titled “Endpoints”GET /api/version
Section titled “GET /api/version”Returns the current version of the check product.
Response
{ "version": "0.0.1"}Programmatic usage
Section titled “Programmatic usage”import { createServer } from "@staydistributed/check-api";
const app = await createServer({ logger: true });await app.listen({ port: 3100 });