Inspiration

SafeyPants was inspired by the growing need for proactive, intelligent personal safety tools. When people are in danger they can't always pick up their phones to send their location to loved ones or when they are drunk and hop in a car they dont always get the idea of sharing it.That's why I came up with Safey Pants.

What It Does

SafeVoice is a personal safety companion that blends AI, live tracking, and secure communication: SOS Button & Voice Trigger – You record a phrase you would most probably say in danger.Safey Pants gets activated , it informs your loved ones about voice trigger. The app captures real time two snapshots and voice records 10 second of real time whats happening and is then made available in the shared vault, which the emergency contacts can access along with that they can also track you real time through safey pants.

Smart Motion Tracking –Safey Pants has two options in motion detection whether you want it to automatically start tracking your real time location data or you want it to manually activate it when motion is detected.Once its selected the location is available to emergency contacts.

Live Incident Reporting – Safey Pants also has an option of live reporting which is intented to be available upto three hours.If you are passing from an area and see fire. You can add it for other users to see.

Vault (Private + Shared) – Securely store sensitive docs with optional sharing.For private data to be shared you can share the code with them.

Safe Haven Discovery – Automatically display nearby hospitals/police with call buttons.(options to come)

How I Built It

Frontend: Next.js + React + Tailwind CSS + Shadcn/UI Backend: Firebase (Firestore, Auth, Storage, Hosting) APIs: Google Maps JavaScript API Places API Directions API Web Speech API MediaDevices (camera/mic) Twilio SMS API AI: Genkit flows for AI logic Gemini for natural language and automation

Tools: TypeScript, Lucide Icons, Real-time listeners via Firestore SDK Challenges We Faced Ensuring motion tracking worked consistently across browsers and devices.

Handling complex permission flows (GPS, mic, camera) gracefully.

Live syncing of reports and motion alerts between users with minimal latency.

Managing and debugging multiple APIs (especially between Firebase and external services).

Accomplishments

Voice-activated safety features that work hands-free. Vault availability which is shareable with the emergency contacts. Access other people's realtime location and see what they have shared in the public vault. You could also store important data in it. Built-in motion intelligence that tracks speed for abnormal behavior. Community-driven safety layer with map-based incident sharing. Integrated AI workflows that are extensible for future smart features.

What We Learned

Graceful fallbacks and clear user feedback for denied permissions improved reliability. Real-time data is powerful but requires careful sync management and optimization. Firebase + Maps + Genkit = a powerful trio when well-integrated.

What’s Next for SafeVoice

Real-time deviation alerts if a user strays off their route. Silent distress signals and fall detection. Use AI to listen for keywords like “help” and escalate alerts. Auto-alert if a user doesn’t check back in time. Help when connectivity is poor.

SafeyPants was created with the motive to be made available to the cops and police so that when people go missing which is estimated to be 8 million per year.If SafeyPants could be proven to be useful even to one of them.It will be of great help to the society.

Built With

Share this project:

Updates