← Apps

Nidoo-gateway

Open source

The encrypted bridge between the Nidoo app and the home: HTTP and MQTT cross the internet in AES-256-GCM, with no exposed broker and no per-service certificates.

What it does

  • End-to-end AES-256-GCM: a random 12-byte nonce per message, and any tampering is rejected.
  • One tunnel for everything: forward any HTTP request, publish to MQTT, or subscribe to topics as a Server-Sent Events stream.
  • Scoped keys: each secret can be limited to HTTP or MQTT, and to given IP addresses or subnets.
  • Replay protection: a 60-second timestamp window, and every nonce is remembered so a replayed request is refused.
  • Binary-safe: camera snapshots and clips come back byte for byte, up to 25 MB.
  • Self-healing: health checks restart the gateway or the Tailscale funnel, and publish their state over MQTT.

Under the hood

Nidoo-gateway runs on the home server: it is how the Nidoo app reaches Nidoo away from home. Each request is encrypted on the phone, decrypted by the gateway, forwarded in plain form to an HTTP API or the MQTT broker on the LAN, and the reply is encrypted on the way back. The servers behind it need no change. The gateway runs in Docker, goes public through Tailscale Funnel without opening a port, and ships a Kotlin client library for Android. Offline tests run in CI with a 90% coverage floor.

  • Python
  • AES-256-GCM
  • MQTT
  • Kotlin
  • Docker
  • Tailscale

A connected device, an Android app, a home-automation server, or a project that mixes all three? Write to me; I reply within 48 hours.

Need something similar?