How It Works

SafeReport System

A comprehensive anonymous crime reporting platform with advanced security features, AI-powered analysis, and role-based access control.

Key Features

Our platform combines cutting-edge technology with user privacy to create a secure reporting environment

Anonymous Reporting

Users can submit crime reports without revealing their identity, ensuring their safety and privacy.

Email Verification

Secure email verification system with OTP codes to ensure legitimate user accounts.

Role-Based Access

Separate user and admin roles with distinct permissions and access levels.

AI-Powered Analysis

Advanced AI analysis of incident images to extract contextual information.

Location Tracking

Precise location detection using Mapbox for accurate incident reporting.

Admin Dashboard

Comprehensive dashboard for administrators to manage reports and track incidents.

Authentication Flow

Secure user authentication with role-based access control

1

User Registration

Users sign up with email, name, and password. Regular users receive a real OTP via email, while admin users use default OTP 111111.

2

Email Verification

Users verify their accounts using the OTP received via email (or 111111 for admins).

3

Role-Based Login

Users log in with their verified credentials. Admins are redirected to the dashboard, regular users to the homepage.

Reporting Process

From incident submission to administrative review

1

Incident Submission

Users submit detailed incident reports with location, type, description, and optional images.

2

AI Analysis

Uploaded images are analyzed by Google Gemini AI to extract contextual information.

3

Admin Review

Administrators review and manage reports through the comprehensive dashboard.

Technical Architecture

Built with modern technologies for security, scalability, and performance

Frontend Technologies

  • Next.js 14

    App Router for modern React development

  • TypeScript

    Type-safe development for reliability

  • Tailwind CSS

    Utility-first CSS framework for responsive design

  • Framer Motion

    Smooth animations and transitions

Backend Technologies

  • NextAuth.js

    Secure authentication with JWT sessions

  • Prisma ORM

    Type-safe database client with PostgreSQL

  • Google Gemini AI

    AI-powered image analysis for incident context

  • Nodemailer

    Email delivery for OTP verification

Security Features

Comprehensive security measures to protect user privacy and data

User Privacy

  • Anonymous Reporting

    User identity is never revealed in reports

  • Encrypted Storage

    Sensitive data is securely hashed and stored

  • Role-Based Access

    Separate user and admin data with distinct permissions

Authentication Security

  • OTP Verification

    Email verification with time-limited codes

  • Password Hashing

    bcrypt with 12 rounds for secure password storage

  • Session Management

    JWT-based sessions with 30-day expiration

Ready to Make a Difference?

Join our platform to help create safer communities through anonymous crime reporting