Assisted Construction Safety Platform for South Africa
# K2020 OHSE SaaS Platform
> **Enterprise Construction Intelligence Platform**
>
> An AI-powered SaaS platform for construction compliance, safety management, and commercial intelligence across OHSA, COIDA, COLTO, GCC, FIDIC, NEC, JBCC, NHBRC, and SANS standards.
## 🎯 Vision
K2020 OHSE is designed to transform construction compliance through:
- **Intelligent Document Processing** - Upload and analyze construction documents via OCR and AI
- **Compliance Automation** - Generate standards-compliant safety, commercial, and compliance documents
- **Multi-Role AI Agents** - Specialized AI agents for Safety Officers, Quantity Surveyors, Tender Specialists, Contract Managers, and more
- **Real-time Intelligence** - Extract project data, risks, activities, and compliance requirements automatically
- **Commercial Management** - Pricing engines, BOQ analysis, tender intelligence, and variation tracking
## 🏗️ Architecture
### Frontend
- **Framework**: React 18 with TypeScript
- **Build Tool**: Vite 6
- **Styling**: Modern CSS with responsive design
- **Authentication**: Supabase Auth
- **Components**: Modular, reusable React components
### Backend
- **Runtime**: Node.js (v24+)
- **Framework**: Express.js
- **AI Integration**: OpenAI API (GPT-4 Mini)
- **File Processing**: Multer for uploads, PDF-Parse for PDFs
- **Database**: Supabase PostgreSQL
### Infrastructure
- **Frontend Deployment**: Vercel
- **Backend Deployment**: Render
- **Database**: Supabase PostgreSQL
- **Storage**: Supabase Storage
- **Authentication**: Supabase Auth
## 📁 Project Structure
```
K2020-OHSE-SaaS/
├── frontend/ # React TypeScript frontend
│ ├── src/
│ │ ├── components/ # Reusable UI components
│ │ ├── pages/ # Page components
│ │ ├── lib/ # Utilities (API, Supabase)
│ │ ├── styles/ # CSS stylesheets
│ │ ├── App.tsx # Main app component
│ │ └── main.tsx …