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.
- 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
01
Sense
Tell-tale sensors measure roof movement in millimetres.
02
Hop
Relay nodes carry each reading through a multi-hop radio mesh.
03
Surface
A gateway hands the data to the cloud, or to a server on site.
04
Stream
The platform decodes it and pushes it to the console live.
05
Act
Operators check health, send commands, schedule pings, set alerts.
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
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
Data and APIs
integration built by me
- GraphQL on AWS AppSync
- 8 live subscriptions
- Schema and resolver extensions
- REST client for commands
Platform
built by the team
- Serverless ingestion on AWS
- Scheduled health checks
- Email alerts and reports
- Cloud or on-site deployment
Field
built by the team
- Tell-tale roof sensors
- Relay nodes
- Gateways
- Multi-hop radio mesh
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
| Area | Before | After |
|---|---|---|
| Loading | Every page refetched; a fixed 500 ms wait | Load once, then live; instant page switches |
| List requests | 100 items per page | 3,500 per page: up to 35× fewer requests |
| Long sessions | Live data stopped when the token expired | Refresh and resubscribe, automatically |
| Commands | No feedback after the click | Five live delivery outcomes |
| Network view | Tables only | An interactive topology map with signal strength |
| Access | The same UI for everyone | Admin-only actions; read-only viewers |
| Themes | Light only | Light, dark and follow-system |
| Build | Warnings and occasional failures | Zero 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.
Loading…