IoT Platform

Grha IoT PlatformEdge-to-Cloud Intelligence

A modern, full-stack Smart Home and IoT management architecture that bridges edge devices and cloud infrastructure — secure, scalable, and production-ready.

View Architecture
ESP32 / ESP8266
MQTT / OTA
FastAPI + Redis
WebSocket
Next.js Dashboard

What Problem Does Grha Solve?

Building a scalable IoT product usually means reinventing the wheel — custom MQTT handlers, spotty WiFi reconnections, secure firmware update mechanisms, real-time data pipelines. Grha eliminates all of that.

Device Complexity

GrhaCore C++ library handles all device-side boilerplate — WiFi captive portal, MQTT reconnection, JWT token rotation, heartbeats. Your firmware stays ultra-clean.

Firmware Management

Built-in Cloud OTA and Local OTA out of the box. Managing firmware across distributed devices is no longer a problem.

Real-Time Observability

Device status and telemetry visible in milliseconds via Next.js frontend, Redis caching, and WebSocket connections.

Security & Auth

Secure provisioning, automated JWT token rotation, and strict device expiry monitoring keep rogue devices off your network.

System Architecture

Three-layer architecture: Edge → Backend → Frontend

Edge Layer

GrhaCore C++ LibraryESP8266 / ESP32WiFi Captive PortalMQTT ClientOTA Engine

Backend Layer

FastAPI (Python)Mosquitto MQTT BrokerRedis CachePostgreSQLBackground Workers

Frontend Layer

Next.js DashboardWebSocket ClientDevice ManagementTelemetry ViewerOTA Trigger UI

Core Capabilities

C++ / Arduino

GrhaCore Device Library

The heart of the edge ecosystem. A single grha.loop() command in your firmware handles WiFi, MQTT, OTA, and heartbeats — keeping device code ultra-clean.

  • Zero-Touch Provisioning via built-in WiFi captive portal
  • Automated telemetry — heartbeat every 30 seconds
  • Typed command callbacks with JSON parsing
  • Factory reset & recovery via hardware pin
  • Works on ESP8266 and ESP32
Cloud + Local

Over-The-Air (OTA) Updates

Never plug in a USB cable again. Compile, upload, and trigger firmware updates across your entire device fleet — remotely and securely.

  • Cloud OTA: upload .bin, trigger via API
  • Local OTA via Arduino IDE over LAN
  • Secure binary download and self-flashing
  • Rollback-safe update pipeline
  • Fleet-wide update support
FastAPI + Redis

Asynchronous Backend

High-performance, event-driven architecture built for real-world IoT scale. Bridges HTTP REST, MQTT, Redis, and PostgreSQL in a clean, supervised pipeline.

  • Protocol bridging: HTTP ↔ MQTT ↔ WebSocket
  • Redis caching with Keyspace Notifications
  • Automated JWT token rotation via background workers
  • Structured data pipeline: Redis → Postgres → MQTT
  • Supervisor patterns for process health
Next.js + WebSockets

Real-Time Dashboard

A blazing-fast, server-rendered dashboard with sub-second device status updates and full device lifecycle management from a single interface.

  • Live telemetry via WebSocket push
  • Device registration and health monitoring
  • Remote command execution
  • OTA trigger from dashboard
  • Online/offline detection in milliseconds
JWT + Rate Limiting

Enterprise-Grade Security

Security is not an afterthought. Grha enforces strict authentication, automated token rotation, and runtime configuration — no firmware recompile needed.

  • JWT auth with aggressive token rotation
  • Prevents replay attacks and unauthorized access
  • Dynamic runtime configuration via MQTT
  • IP-based API rate limiting
  • Audit-ready device expiry monitoring
Redis → Postgres → MQTT

Scalable Data Pipeline

A structured, high-throughput data pipeline designed to handle large sensor fleets without degradation in performance or reliability.

  • Redis for sub-millisecond state reads
  • PostgreSQL for persistent historical data
  • MQTT for real-time device communication
  • Keyspace Notifications for instant disconnect detection
  • Designed for high-throughput sensor data

Technology Stack

Edge / Firmware

  • C++ (Arduino Framework)
  • ESP8266 / ESP32
  • MQTT Protocol
  • ArduinoOTA
  • PubSubClient

Backend

  • Python / FastAPI
  • Mosquitto MQTT Broker
  • Redis + Keyspace Events
  • PostgreSQL
  • Background Supervisors

Frontend

  • Next.js (React)
  • WebSockets
  • Tailwind CSS
  • Real-time UI
  • Server-Side Rendering

Infrastructure

  • Docker / Containerized
  • REST API Gateway
  • JWT Authentication
  • IP Rate Limiting
  • OTA Binary Hosting

Why Choose Grha?

Developer Experience First

One grha.loop() call manages WiFi, MQTT, OTA, and heartbeats. Your firmware stays focused on business logic.

Real-Time Responsiveness

No polling. MQTT and WebSockets push state changes to the frontend instantly with sub-second latency.

Production-Ready Architecture

Robust supervisor patterns, automated reconnects, and strict separation of concerns across Edge, Backend, and Frontend.

Security by Design

Aggressive token rotation, device expiry enforcement, and rate limiting are built-in — not bolted on later.

How Grha Compares to Others

Why pay premium prices for basic connectivity? Here is how Grha stands apart from traditional, expensive platforms.

Traditional Big IoT Platforms

Expensive & Restrictive

  • ×Aggressive pricing models (often starting at $20/month per developer)
  • ×Charging hidden ingestion & data transfer fees for simple status messages
  • ×Proprietary SDK locks that make transitioning out extremely costly
  • ×Unoptimized default code resulting in high resource and battery drain
  • ×Generic, bloated servers that struggle to scale under local latency spikes

Building a Connected Device or IoT System?

Whether you're starting from scratch or scaling an existing fleet, we can help you architect, integrate, or extend Grha for your use case.