SafeHaven is a web application designed to provide a comprehensive safety solution for women and children. The application offers emergency SOS alerts, legal assistance, virtual counseling, and gamified educational activities to empower users with knowledge and resources for their protection.
https://safe-haven-web.vercel.app/
- One-tap SOS activation
- Location sharing with emergency contacts and nearby police
- Continuous alarm until safety is confirmed
- Secure signup/login system
- User type selection (woman/child) for personalized experience
- Multilingual support
- Information on laws protecting women and children
- Voice input option for accessibility
- Connect with professional counselors
- Book sessions through audio, video, or chat
- Profile information and availability management
- Safety Quest: Scenario-based decision making
- Brain Booster Quiz: Test knowledge on safety, rights, and legal protection
- Self-Defense Moves: Learn basic self-defense techniques
- Voice Challenge: Practice emergency voice commands
- Know Your Rights: Memory game for rights awareness
- Map Hunt: Navigation practice to escape unsafe zones
- Roleplay Adventure: Understanding different perspectives in emergencies
- Relaxation Zone: Reduce stress through relaxation activities
- Frontend: React with TypeScript
- Styling: Tailwind CSS with custom SafeHaven color palette
- UI Components: shadcn/ui library
- Routing: React Router for navigation
- State Management: React Context API for user authentication, location tracking, and SOS alerts
- Notifications: Toast messages for important alerts
- Responsive Design: Mobile-first approach for all screens
- Clone the repository
- Install dependencies with
npm install - Start the development server with
npm run dev - Open a browser and navigate to
http://localhost:8080
- Sign up/login to create an account
- Select your user type (woman or child)
- Navigate through the application using the top navigation bar
- Access the SOS button from any screen in case of emergency
- Explore the legal assistance chatbot for information on rights and legal protection
- Book virtual counseling sessions with professionals
- Participate in gamified activities to learn safety skills
The legal assistance chatbot currently uses mock AI responses for demonstration purposes. In a production environment, this would be connected to a proper AI API like OpenAI's GPT or a similar service to provide accurate legal information.