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/packages/core/src/queue/processors/webhook-processor.ts
oversteppingc0aa74c4e2fb
diff --git a/xspace-agent/xspace-agent/packages/core/src/queue/processors/webhook-processor.ts b/xspace-agent/xspace-agent/packages/core/src/queue/processors/webhook-processor.tsnew file mode 100644index 000000000..cc8075821--- /dev/null+++ b/xspace-agent/xspace-agent/packages/core/src/queue/processors/webhook-processor.ts@@ -0,0 +1,39 @@+// SPDX-License-Identifier: Apache-2.0+// Copyright 2026 nirholas (https://github.com/nirholas/xspace-agent) [§69]++// =============================================================================+// Queue Processor — Webhook Delivery+// =============================================================================++import type { Job } from 'bullmq'+import axios from 'axios'+import { createHmac } from 'crypto'+import type { WebhookJob } from '../types'++/**+ * Delivers a webhook HTTP POST with HMAC-SHA256 signature verification.+ * Expects the receiving endpoint to return 2xx within 30s.+ */+export async function webhookProcessor(job: Job<WebhookJob>): Promise<{ statusCode: number; duration: number }> {+ const { url, payload, secret, deliveryId } = job.data++ const body = JSON.stringify(payload)+ const signature = createHmac('sha256', secret).update(body).digest('hex')+ const start = Date.now()++ const response = await axios.post(url, body, {+ headers: {+ 'Content-Type': 'application/json',+ 'X-Webhook-Signature': `sha256=${signature}`,+ 'X-Webhook-Delivery': deliveryId,+ 'X-Webhook-Attempt': String(job.attemptsMade + 1),+ 'User-Agent': 'XSpace-Webhook/1.0',+ },+ timeout: 30_000,+ validateStatus: (status) => status >= 200 && status < 300,+ })++ return { statusCode: response.status, duration: Date.now() - start }+}++