Skip to content
← All projects
Government Portalcompleted

HSE Tracker

Health, Safety & Environment management system for tracking and monitoring workplace safety compliance.

Client
Government of Yakutia
Role
Lead Developer
Duration
6 months
Date
2023-12
  • Next.js
  • TypeScript
  • PostgreSQL
  • Prisma
  • TailwindCSS

HSE Tracker

Project Overview

HSE Tracker is a comprehensive Health, Safety & Environment management system designed for government organizations to monitor and improve workplace safety compliance. The platform provides real-time tracking, reporting, and analytics for safety incidents, compliance metrics, and environmental impact assessments.

Key Features

  • Real-time incident reporting and tracking
  • Compliance monitoring dashboard
  • Automated safety audit workflows
  • Environmental impact assessment tools
  • Mobile-responsive design for field inspections
  • Advanced analytics and reporting
  • Document management system
  • Role-based access control

Technical Implementation

Frontend

  • Built with Next.js 13 App Router for optimal performance
  • TypeScript for type safety and better development experience
  • TailwindCSS for responsive and modern UI
  • Framer Motion for smooth animations
  • React Query for efficient data fetching

Backend

  • PostgreSQL database with Prisma ORM
  • RESTful API endpoints with Next.js API routes
  • JWT authentication with role-based access
  • Real-time updates using WebSocket
  • File storage with AWS S3

DevOps

  • Deployed on Vercel
  • CI/CD pipeline with GitHub Actions
  • Automated testing with Jest and Cypress
  • Error monitoring with Sentry

Challenges & Solutions

One of the main challenges was implementing real-time updates for incident reports across multiple users. We solved this by:

  1. Implementing WebSocket connections for live updates
  2. Using optimistic updates for better UX
  3. Creating a robust offline-first architecture
  4. Implementing data synchronization mechanisms

Impact & Results

  • 40% reduction in incident reporting time, from an average of 4 hours (paper forms + manual data entry) to under 2.5 hours (digital submission with auto-populated fields), measured across all departments in the first quarter after deployment
  • 60% improvement in compliance tracking efficiency, inspectors could complete audits in-app rather than filling paper checklists and transcribing results later
  • Deployed across 15 government departments in the Republic of Sakha, each with customized role-based access and department-specific reporting templates
  • 98% user satisfaction rate based on post-deployment survey of 200+ government employees (conducted 3 months after launch)
  • 1,000+ daily active users during peak inspection periods, with the system handling concurrent WebSocket connections reliably

Lessons Learned

  • Offline-first is essential for field work. Safety inspectors in remote Yakutia locations had intermittent connectivity. The optimistic update pattern with background sync was the difference between the tool being useful and being abandoned. I underestimated this requirement initially and had to retrofit offline support after early user testing.
  • Role-based access control gets complex fast in government. 15 departments meant 15 different permission hierarchies. A simple admin/user split wasn't enough. We built a granular RBAC system with department-scoped roles, which added significant development time but was non-negotiable for government compliance.
  • Real-time WebSocket connections don't scale the same as REST: At 1,000+ concurrent users, our WebSocket server needed careful connection pooling and heartbeat management. I learned to use WebSockets selectively (incident updates only) rather than for all data fetching.
  • Government projects teach you requirements discipline: Every feature had to map to a regulatory requirement document. This felt slow but meant almost zero scope creep. A lesson I've applied to all client work since.

Future Developments

  • AI-powered risk prediction
  • Integration with IoT sensors
  • Mobile app development
  • Advanced analytics dashboard
  • Blockchain for audit trail