Back to Projects
InternalInternal — Enterprise

SPRS

WHS Regulatory Compliance System

Automated WHS statutory position tracking for mining sites, replacing a manual spreadsheet process with fuzzy matching, audit trails, and scheduled compliance reporting. Built the matching algorithm, full-stack app, Terraform deployment, and a video pitch deck for senior stakeholders. Shipped in 61 days.

WHS (Mines) Regulations 2022 require mining operators to track statutory position holders at every site. The process was manual, with spreadsheets reconciled by hand each week. Penalties for non-compliance go up to $16.13M.

FastAPINext.jsRapidFuzzPostgreSQLTerraformAWS SES

Sole engineer, 98% of 189 commits. Matching algorithm, full-stack app, Terraform deployment, and Remotion pitch deck for executive stakeholders.

~$50k
Annual Savings
624
Hours Saved/Year
61
Days to Ship

Highlights

01

Six-category fuzzy matching

RapidFuzz token_sort_ratio classifies every match as EXACT (100%), FUZZY (90%+), PARTIAL (3/4 fields), DISCREPANCY (same person, different role), TO_ADD, or TO_REMOVE. Confidence scoring with detailed explanations for each classification

02

7-year audit trail with rollback

Every action logged with old/new JSON snapshots, user, IP, and user agent. Personnel history table tracks all changes with version numbers. Full rollback to any previous state for regulatory compliance

03

Scheduled compliance reports

4 report types (statutory positions, reconciliation summary, personnel by site, weekly submissions) in CSV, JSON, or branded PDF. Report generation cut from 1-2 hours to 2 minutes. Delivered by SES on a configurable cadence

04

Role-based access via SSO groups

6 SSO security groups auto-mapped to admin/user roles across DEV/STG/PRD. JWT sessions with 8-hour access tokens and 30-day refresh. Strict admin gates on sensitive operations

05

Tech Stack

Frontend:Next.js 16React 19Zustandshadcn/uiZod
Backend:FastAPIPython 3.12RapidFuzzAPSchedulerSQLAlchemyReportLab
Database:Aurora Serverless v2DynamoDB (sessions)25+ Indexes
Infrastructure:TerraformECS FargateS3SESEventBridge