From 0f7914213ef58cd64c02e45305e476b496e0ddd3 Mon Sep 17 00:00:00 2001 From: Chad Miller Date: Mon, 5 Jan 2026 21:52:49 -0800 Subject: [PATCH] feat: add /xrpc/_health endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/pds.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pds.js b/src/pds.js index f7c9f28..48fe944 100644 --- a/src/pds.js +++ b/src/pds.js @@ -11,7 +11,7 @@ * - CAR file building for repo sync * - XRPC endpoints for repo operations and sync * - * @see https://atproto.com/specs + * @see https://atproto.com */ // === CONSTANTS === @@ -2362,6 +2362,11 @@ async function handleRequest(request, env) { return handleAuthenticatedRepoWrite(request, env) } + // Health check endpoint + if (url.pathname === '/xrpc/_health') { + return Response.json({ version: '0.1.0' }) + } + // Root path - ASCII art if (url.pathname === '/') { const ascii = ` -- 2.51.2