How timetraveler2o/shurakshanet-ai-paltform-for-cybercrime- works
Project Type and Purpose
• SurakshaNet is a React-based, single-page web application (SPA) built with TypeScript and Vite. It serves as a unified AI-powered dashboard for the Chandigarh Police Cybercrime Unit, integrating seven distinct investigative modules (fraud detection, deepfake analysis, facial recognition simulation, legal assistant chatbot, surveillance-analysis simulation, voice-phishing detection, and email-phishing detection).
• There is no custom backend in this codebase; all AI processing is delegated to the Google Gemini API via client-side service wrappers.
File-Structure Analysis
• Top-level files: App.tsx (root SPA entry), index.html/ index.tsx (Vite bootstrap), vite.config.ts, tailwind.config.cjs, tsconfig.json.
• /components: shared UI components (buttons, cards, headers, spinners, forms, notification system).
• /components/<moduleName>: module-specific UI implementations.
• /views: feature routing layer (one view per module: DhanRakshakView.tsx, SatyaDarpanView.tsx, etc.).
• /services: business-logic wrappers that package input, call the Google Gemini AI API (geminiService.ts), and parse responses for each module (e.g. dhanrakshakService.ts).
• /styles, /utils, /constants, /types: global styles, helper functions, shared constants, and TypeScript types.
README Insights
• Confirms a front-end SPA that calls Google Gemini AI for each feature.
• No database or persistent storage—data flows from user inputs → service calls → AI responses → UI display.
• Ethical guidelines and simulation disclaimers are informational only and not reflected in additional infrastructure.