Skip to content

Work · Innovation Lab

Nakshatra

A live control room for underground mines

The real-time web console for an IoT sensor mesh in underground mines. Roof-movement sensors, battery and link health, device commands and alerts, all live. I built the whole console and its AWS integration; the platform runs at 98.78% production uptime.

All work
Role
Full Stack Developer at DyuLabs. The entire console frontend and its AWS integration (team project)
Period
Dec 2024 – Jul 2025
Status
Status: Live

In numbers

  • 98.78%

    production uptime of the platform

  • 8

    live data feeds that survive token expiry

  • 35×

    fewer list requests

  • ~13K

    lines of React I own (10 pages)

  • 165

    commits across 26 tracked issues

  • Best Stall

    award at a mining industry expo

Nakshatra is a DyuLabs product running in production for a mining client in India, whose name stays private. This page is about the part I built, the web console. The device network and backend services are team work, and the device protocol, security design and internal details are deliberately left out.

The problem

Underground, the usual tools stop working:

  • No signal below ground. No cellular, no GPS, so sensor data needs its own network to reach the surface.
  • Wired networks can't keep up. They are slow to install and break when the mine face moves.
  • Roof movement is slow and easy to miss. Strata sensors have to be read often and trended, not checked by hand.
  • Everything runs on batteries, so the team needs battery and link health, not just readings.
  • Supervisors are off-site, and need alerts and daily summaries without going underground.

How Nakshatra works

  1. 01

    Sense

    Tell-tale sensors measure roof movement in millimetres.

  2. 02

    Hop

    Relay nodes carry each reading through a multi-hop radio mesh.

  3. 03

    Surface

    A gateway hands the data to the cloud, or to a server on site.

  4. 04

    Stream

    The platform decodes it and pushes it to the console live.

  5. 05

    Act

    Operators check health, send commands, schedule pings, set alerts.

-68 dBm-74 dBm-81 dBm-77 dBm-85 dBm-79 dBm-92 dBm-88 dBm-83 dBmGatewayR1R2R32.4 mm6.1 mm1.2 mm11.8 mm3.7 mm7.5 mm
gateway relay roof movement 0–5 mm 5–10 mm 10–25 mm· An illustration with made-up values, not data from a real site.

What I built

I owned the Nakshatra Console, end to end: about 13,000 lines of React across 10 pages, plus its integration with the AWS backend.

  • Live dashboards. Totals for gateways, relays, sensors and alerts, packet-history and sensor charts, and the latest readings, updating as packets arrive.
  • A mesh topology map. A ~1,000-line Canvas 2D component that draws the radio mesh from its routing data, labels every link with its signal strength and lets operators arrange and save the layout for each site.
  • Device control. Ping, firmware-version and route-info commands and transmit on/off, each with live delivery tracking.
  • Schedules, history and export. Automatic health-check schedules, a filterable packet history with bulk delete, and CSV export by node and date in Indian time.
  • Alerts and reports. Per-user alert, daily and weekly email controls for every node, and a notification timeline.
  • Access and comfort. Admin-only actions for operators and read-only views for everyone else, three themes (light, dark, follow the system) with contrast checks, and a session timer that signs out cleanly.
  • Backend integration. GraphQL queries, mutations and subscriptions on AWS AppSync, schema extensions and batch resolvers I added for the features above, and the REST client for commands and schedules.

Architecture

  1. Console

    built by me

    • Live dashboards
    • Mesh topology map
    • Commands with delivery tracking
    • Schedules
    • History and CSV export
    • Email alert controls
    • Chat with field nodes
    • Role-based access
    • Three themes
  2. Data and APIs

    integration built by me

    • GraphQL on AWS AppSync
    • 8 live subscriptions
    • Schema and resolver extensions
    • REST client for commands
  3. Platform

    built by the team

    • Serverless ingestion on AWS
    • Scheduled health checks
    • Email alerts and reports
    • Cloud or on-site deployment
  4. Field

    built by the team

    • Tell-tale roof sensors
    • Relay nodes
    • Gateways
    • Multi-hop radio mesh
A simplified view drawn for this site. The device protocol, security design and internal names are left out on purpose.

The hard parts

Live feeds that don't die with the login

The console runs on eight live GraphQL subscriptions, one per data stream, filtered to each user's gateways. When a login token expired, they silently stopped. I built a subscription manager that recognises authentication errors, checks the token every five minutes, refreshes it through a single in-flight request and re-creates every subscription afterwards. Dashboards now stay live through a whole shift, and a session timer signs people out cleanly when they really have to log in again.

Fast on big sites

Every page used to refetch its own lists, and the dashboard waited on a fixed half-second delay. I moved to a load-once store: nodes, packets and messages load once, in parallel, behind a "ready" gate, and the live subscriptions keep them fresh. Raising the page size from 100 to 3,500 items meant up to 35× fewer list requests. Now there is one loading screen per session, and switching pages is instant.

Drawing the mesh

Operators couldn't see which relay each sensor talks through, or how strong each hop is. The topology map builds the tree from each node's route, places children around their parent, curves any arrow that would cross another node, labels every link with its signal strength, and animates the data flowing to the gateway. It's sharp on high-DPI screens, and each site keeps the layout its operators arrange.

Closing the loop on commands

A command used to leave the console and vanish. I wired it to the delivery status the backend records and show it live, through five outcomes: at the gateway, route discovery, acknowledged, no acknowledgement and gateway error. Operators now know within seconds whether a node was reached or the mesh is re-routing.

Partial updates that never erase data

Live updates sometimes carried empty fields, which could wipe out values the console already knew. Every update now drops empty fields before it is merged, so a partial message can only add information.

Email alerts, end to end with the backend

When the team moved alerting to a new email service, I replaced the old calls with per-node, per-user toggles for alert, daily and weekly emails, limited to admins, while the backend engineer and I worked through the same tracked issues. Unsubscribes and bounces flow back on their own.

Before and after

AreaBeforeAfter
LoadingEvery page refetched; a fixed 500 ms waitLoad once, then live; instant page switches
List requests100 items per page3,500 per page: up to 35× fewer requests
Long sessionsLive data stopped when the token expiredRefresh and resubscribe, automatically
CommandsNo feedback after the clickFive live delivery outcomes
Network viewTables onlyAn interactive topology map with signal strength
AccessThe same UI for everyoneAdmin-only actions; read-only viewers
ThemesLight onlyLight, dark and follow-system
BuildWarnings and occasional failuresZero errors, zero warnings

Beyond the code

  • I represented Nakshatra at a mining industry expo, where our stall won the Best Stall Award.
  • I worked hand in hand with the backend engineer, shipping the schema changes the console needed alongside their APIs.
  • The platform is in production at 98.78% uptime for the client.

Open for enhancement

Mine safety is a field where good ideas save lives. If you work in mining, IoT or real-time systems and see something worth adding, suggest it below. I read every one.

Built with

React · Vite · Material UI · ApexCharts · Canvas 2D · GraphQL · AWS AppSync · AWS Amplify · Cognito · API Gateway · AWS Lambda · AWS IoT Core · MQTT · DynamoDB · EventBridge Scheduler · SES

Open for enhancement

What should Nakshatra do next?

Suggest a feature, an improvement or an integration, and vote for the ideas you like. Kenil reads every one, and approves each before it goes up.

Text only (no links), up to three a day. Approved suggestions are public; please don't share anything private.

Loading…