Sign inSign up

wgtechlabs/unthread-webhook-server

Sponsored OSS

By WG Technology Labs

Updated 21 days ago

A Node.js server application that receives webhook events from Unthread.io

Image
Developer tools
0

10K+

wgtechlabs/unthread-webhook-server repository overview

Unthread Webhook Server

Official Unthread integration service for secure webhook ingestion and platform-aware event routing.

This integration does three core things:

  • Receives and verifies Unthread webhook events using HMAC-SHA256 signatures
  • Detects source/target platform context (dashboard, Telegram, Discord, etc.)
  • Publishes normalized events to Redis queue for downstream bot consumers

How It Works

Unthread -> Webhook Server -> Redis Queue -> Platform Bot
|
Signature + Dedup + Correlation

  • Inbound path: Unthread sends events to POST /unthread-webhook, then the server validates signatures, deduplicates events, and enriches payloads.
  • Queue path: Processed events are published to Redis (unthread-events) for consumers like Telegram/Discord/WhatsApp bots.
  • File intelligence: attachment events are correlated to source platform to avoid unknown-origin file handling.

Docker Quick Start

docker network create unthread-integration-network
cp .env.example .env
docker-compose up -d
docker-compose logs -f webhook-server

Reset local data:

docker-compose down -v && docker-compose up -d

Required Variables

VariablePurpose
UNTHREAD_WEBHOOK_SECRETUnthread signing secret used for webhook signature verification
TARGET_PLATFORMTarget integration platform identifier (for example telegram, discord, whatsapp)

Important Optional Variables

VariableDefaultNotes
NODE_ENVdevelopmentRuntime mode
PORT3000Server port
REDIS_URLredis://localhost:6379Redis connection URL for dedup and queueing

Endpoints

MethodPathPurpose
GET/healthService and Redis health check
POST/unthread-webhookUnthread webhook ingestion endpoint

Prerequisites

  • Node.js 22+
  • Bun
  • Redis
  • Unthread webhook signing secret

Licensed under GNU GPL v3.0.

Tag summary

Content type

Image

Digest

sha256:59c46c65d

Size

78.1 MB

Last updated

21 days ago

docker pull wgtechlabs/unthread-webhook-server

This week's pulls

Pulls:

64

Last week