Inspiration
Mining remains one of the world's highest-risk industries, where delayed incident reporting, poor equipment visibility, and fragmented safety records can lead to costly accidents and downtime. We wanted to build a modern safety platform that helps organizations move from reactive incident management to proactive risk assessment.
MineGuard AI was created to demonstrate how cloud-native technologies, AI-assisted decision support, and scalable databases can improve workplace safety while remaining production-ready from day one.
What it does
MineGuard AI is an intelligent safety management platform for mining operations.
The platform enables organizations to:
- Report workplace safety incidents
- Automatically calculate AI-assisted risk scores
- Generate immediate safety recommendations
- Track equipment and maintenance status
- Manage users through role-based access control
- Maintain complete audit trails for compliance
- Visualize safety trends through interactive analytics dashboards
Rather than simply recording incidents, MineGuard AI helps safety officers identify high-risk situations faster and prioritize response efforts.
How we built it
MineGuard AI was built as a modern cloud-native application using:
- Next.js 14 (App Router)
- React
- TypeScript
- Tailwind CSS
- Prisma ORM
- Amazon Aurora PostgreSQL
- NextAuth.js
- Vercel
The application uses Prisma ORM to interact with an Amazon Aurora PostgreSQL database hosted on AWS while the frontend is deployed on Vercel.
An AI-inspired risk assessment engine evaluates each incident based on severity and descriptive keywords, generating:
- Risk Score
- Risk Level
- Safety Recommendation
These insights are stored alongside each incident and are surfaced throughout the administrative dashboards and analytics pages.
Challenges we ran into
One of the biggest challenges was evolving the database schema while continuing development. Prisma migrations required careful synchronization with the existing Aurora database and Prisma Client generation to keep the application in sync.
Another challenge was designing a role-based architecture that separates administrators from technicians while maintaining a clean user experience.
We also focused on ensuring the dashboard remained responsive and scalable as new features such as audit logging, equipment management, analytics, and AI-assisted incident assessment were added.
Accomplishments that we're proud of
We successfully built a production-style SaaS application featuring:
- Secure authentication
- Role-based access control
- Equipment lifecycle management
- AI-assisted incident risk assessment
- Interactive analytics dashboards
- Audit logging
- Responsive administration portal
- Cloud deployment on Vercel backed by Amazon Aurora PostgreSQL
The platform demonstrates how quickly modern cloud technologies can be combined to build enterprise-ready business software.
What we learned
This project strengthened our understanding of:
- Building scalable full-stack applications with Next.js
- Designing relational data models using Prisma
- Working with Amazon Aurora PostgreSQL
- Implementing secure authentication and authorization
- Creating analytics dashboards for operational decision making
- Integrating AI-assisted workflows into traditional business applications
What's next for MineGuard AI
Future versions of MineGuard AI will include:
- Integration with foundation AI models through Amazon Bedrock
- Predictive incident forecasting using historical trends
- Computer vision for PPE and hazard detection
- IoT sensor integration for real-time equipment monitoring
- Automated compliance reporting
- Mobile applications for field inspectors
- Multi-site enterprise management
- Predictive maintenance powered by machine learning
Our vision is to evolve MineGuard AI into a comprehensive enterprise safety platform capable of helping mining companies reduce incidents, improve compliance, and make data-driven operational decisions.
Built With
- amazon
- amazon-web-services
- aurora
- css
- git
- next.js
- nextauth.js
- node.js
- postgresql
- prisma
- react
- recharts
- tailwind
- typescript
- vercel
Log in or sign up for Devpost to join the conversation.