Technology Behind RoadWatch

A modern, scalable, AI‑powered civic tech stack built for real‑time road issue reporting and transparency.

Core Technologies

Next.js (App Router)

Full‑stack React framework used for UI, API routes, and server‑side logic in a single scalable codebase.

Tailwind CSS

Utility‑first CSS framework enabling fast, responsive, and consistent UI development.

Supabase

Used for PostgreSQL database, authentication logic, and secure image storage for reports.

PostgreSQL

Stores pothole reports, severity levels, geo‑coordinates, timestamps, and approval status.

AI & Automation Layer

Hugging Face Vision AI

Image classification model used to automatically detect road‑related images and filter spam or invalid submissions.

AI Moderation Service (Render)

A Node.js microservice deployed on Render that asynchronously reviews uploaded images and auto‑approves or rejects reports.

AI decisions are applied automatically, while an admin panel allows human override in edge cases.

Google Technology Integration for HackXIOS

  • Google Maps JavaScript API – Interactive visualization of verified pothole locations with real-time data
  • Google Maps Markers & Info Windows – Severity-based color coding and detailed popup information for each report
  • Google Maps Bounds & Clustering – Automatic map positioning and efficient display of multiple reports

Google Maps serves as the core visualization platform, enabling citizens and authorities to view verified road issues with precise geographic context and severity indicators for HackXIOS.

Browser & Platform APIs

Camera API

Allows users to capture pothole images directly from their device for authentic reporting.

Geolocation API

Automatically captures precise latitude and longitude to ensure accurate issue mapping.

Open Data & Public API

• Public REST API for accessing approved pothole data

• Enables researchers, civic bodies, and developers to reuse data

• Promotes transparency and third‑party innovation

System Architecture

• User captures pothole image and location

• Backend uploads image to secure storage

• Report stored in PostgreSQL with pending status

• AI service automatically reviews the image

• Status updated to approved or rejected

• Approved reports appear on public map & API

• Admin panel allows manual overrides if needed

Built for HackXIOS · AI‑powered moderation · Open & scalable architecture