Skip to content

Check API

The @staydistributed/check-api package provides an HTTP API built on Fastify 5.

Terminal window
# Build and start
cd packages/check/api
pnpm build
pnpm start

The server listens on port 3100 by default. Set the STAYDISTRIBUTED_CHECK_API_PORT environment variable to change it.

Returns the current version of the check product.

Response

{
"version": "0.0.1"
}
import { createServer } from "@staydistributed/check-api";
const app = await createServer({ logger: true });
await app.listen({ port: 3100 });