atproto relay implementation in zig zlay.waow.tech

feat: add landing page on root path

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+15
+15
src/main.zig
··· 234 234 var resp_buf: [8192]u8 = undefined; 235 235 const response = std.fmt.bufPrint(&resp_buf, "HTTP/1.1 200 OK\r\nContent-Type: text/plain; version=0.0.4; charset=utf-8\r\nContent-Length: {d}\r\nConnection: close\r\n\r\n{s}", .{ body.len, body }) catch return; 236 236 _ = stream.write(response) catch {}; 237 + } else if (std.mem.eql(u8, path, "/")) { 238 + httpRespond(stream, "200 OK", "text/plain", 239 + \\ _ 240 + \\ ___| | __ _ _ _ 241 + \\|_ / |/ _` | | | | 242 + \\ / /| | (_| | |_| | 243 + \\/___|_|\__,_|\__, | 244 + \\ |___/ 245 + \\ 246 + \\This is an atproto [https://atproto.com] relay instance, 247 + \\running the zlay codebase [https://tangled.sh/zzstoatzz.io/zlay] 248 + \\ 249 + \\The firehose WebSocket path is at: /xrpc/com.atproto.sync.subscribeRepos 250 + \\ 251 + ); 237 252 } else { 238 253 httpRespond(stream, "404 Not Found", "text/plain", "not found"); 239 254 }