SafeSphere is a comprehensive digital platform dedicated to crime awareness, reporting, and emergency support. Built for security, transparency, and rapid response, it empowers citizens with real-time data and accessible safety tools.
- Intelligence Dashboard: Real-time visualization of crime clusters and statistical analytics across regions.
- Online E-FIR System: Secure and confidential reporting for theft, cybercrime, missing persons, and more.
- Emergency SOS Services: GPS-enabled emergency signal transmission to response teams.
- Real-time Awareness: Interactive maps showing safety alerts and crime patterns in neighborhoods.
- AI-Powered Guidance: Intelligent chatbot for immediate safety protocols and legal guidance.
- Secure Profile Management: Personal reporting history and status tracking powered by Clerk.
- Framework: React 18 (Functional Components, Hooks, Suspense)
- Build Tool: Vite 5
- Styling: Tailwind CSS 4
- Animations: Framer Motion
- UI Components: Radix UI & Lucide Icons
- State Management: React Hooks & Context API
- Routing: React Router 7
- Authentication: Clerk
- Maps & Geolocation: Mapbox GL & Leaflet
- Data Visualization: Chart.js
- API Client: Axios with JWT interceptors
src/
├── components/ # Reusable UI primitives and layouts
│ ├── layout/ # Main application shell
│ ├── pages/ # Feature-based page components
│ │ ├── sos_components/ # Emergency services logic
│ │ ├── FIRS_Component/ # FIR reporting modules
│ │ └── Statics_components/ # Analytics & Dashboards
│ └── ui/ # Atomic Radix-based components
├── hooks/ # Custom React hooks (auth, location, etc.)
├── lib/ # Shared utilities and API configuration
└── App.jsx # Main routing and provider setup
- Node.js (v18+)
- npm or yarn
-
Clone the repository
git clone https://github.com/your-username/safe-sphere.git cd safe-sphere/client -
Install dependencies
npm install
-
Environment Variables Create a
.envfile in the root directory:VITE_API_URL=your_backend_url VITE_CLERK_PUBLISHABLE_KEY=your_clerk_key VITE_MAPBOX_TOKEN=your_mapbox_token
-
Run the development server
npm run dev
- Production-Grade Auth: Managed identity via Clerk.
- Performance: Automated code splitting and lazy loading for faster TTFB.
- Responsive: Mobile-first design architecture using Tailwind's grid/flex system.
- Modern Standards: ESLint and PostCSS configured for high-quality code.
This project is licensed under the MIT License - see the LICENSE file for details.