← All projects
python fastapi mqtt sqlite

IoT Device Hub

A backend for onboarding IoT devices and collecting their telemetry over HTTP and MQTT, with a live stream of every reading.

A FastAPI backend for registering IoT devices and collecting what they send.

  • Accounts: JWT-secured signup and login, and each user manages their own devices.
  • Two protocols: REST endpoints for devices that speak HTTP, and an MQTT subscription for low-latency telemetry.
  • Live view: every accepted reading is pushed to the browser over Server-Sent Events as it arrives.
  • Simulator: fake devices that publish over HTTP and/or MQTT, so it can be tested without hardware.

Data lives in SQLite, so there’s no separate database server to run.