Skip to content

Releases: maulanashalihin/hook-sync

hook-sync-hub v0.1.0

Choose a tag to compare

@maulanashalihin maulanashalihin released this 01 Sep 04:00

Dedicated relay node for star and multi-region topologies.

Binaries

Platform File
Linux amd64 hook-sync-hub-linux-amd64.tar.gz
Linux arm64 hook-sync-hub-linux-arm64.tar.gz
macOS amd64 (Intel) hook-sync-hub-darwin-amd64.tar.gz
macOS arm64 (Apple Silicon) hook-sync-hub-darwin-arm64.tar.gz

Install

# Linux amd64
curl -L https://github.com/maulanashalihin/hook-sync/releases/download/v0.1.0/hook-sync-hub-linux-amd64.tar.gz | tar xz
chmod +x hook-sync-hub-linux-amd64
./hook-sync-hub-linux-amd64 -id hub1 -listen :9010 -db hub1.pebble -edge http://localhost:9001 -edge http://localhost:9002

Usage

hook-sync-hub -id hub1 -listen :9010 -db hub1.pebble   -edge http://localhost:9001   -edge http://localhost:9002   -edge http://localhost:9003

The hub is a pure relay — no SQLite, no triggers, no /api endpoints. All data enters via POST /sync from edge nodes. Hub stores backup in Pebble KV and forwards to all other edges asynchronously.

Build from source

go build -o hook-sync-hub ./go/cmd/hub/

Pure Go, no CGO required. Pebble is the only external dependency.