Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
add xspace-agent/xspace-agent/agent-voice-chat/src/server/middleware/request-id.js
overstepping8611df3c632e
diff --git a/xspace-agent/xspace-agent/agent-voice-chat/src/server/middleware/request-id.js b/xspace-agent/xspace-agent/agent-voice-chat/src/server/middleware/request-id.jsnew file mode 100644index 000000000..61b7e0117--- /dev/null+++ b/xspace-agent/xspace-agent/agent-voice-chat/src/server/middleware/request-id.js@@ -0,0 +1,20 @@+// SPDX-License-Identifier: Apache-2.0+// Copyright 2026 nirholas (https://github.com/nirholas/xspace-agent)++const { randomUUID } = require("crypto")++/**+ * Middleware: assign a unique request ID to every HTTP request.+ * - Respects an incoming X-Request-Id header (for proxy/tracing chains).+ * - Echoes the ID back in the X-Request-Id response header.+ * - Exposes it as req.id so all downstream handlers and loggers can use it.+ */+function requestId(req, res, next) {+ req.id = req.headers["x-request-id"] || randomUUID()+ res.setHeader("X-Request-Id", req.id)+ next()+}++module.exports = { requestId }++