🌍 SafeTrip AI — Empowering Safe & Authentic Travel

SafeTrip AI helps travelers stay safe and experience cities like locals, using offline, on-device AI for emergency support, translation, and personalized local discovery.


Inspiration

Traveling to a new city can be exciting, but it can also be intimidating for students, newcomers, and solo travelers. Limited internet access, language barriers, and unfamiliar surroundings often make simple trips stressful or unsafe.

We wanted to create a solution that empowers travelers who might feel vulnerable—helping them explore safely while still enjoying authentic local experiences. This led to SafeTrip AI, an offline-first travel safety and local discovery platform designed to bridge the gaps that traditional apps often overlook.

SafeTrip AI directly supports:

  • Travelers in unfamiliar cities
  • People facing language barriers
  • Users with limited internet access
  • Safety-vulnerable groups (newcomers, students, solo travelers)

What We Built

SafeTrip AI combines safety, AI-powered assistance, and local discovery in one seamless experience.

Core Safety Features

Offline AI Travel Assistant Get intelligent guidance anytime, anywhere—even without internet. Ask questions like "Is this area safe?" or "Where is the nearest hospital?" and receive context-aware responses powered by on-device AI.

Safety Hub Your command center for staying protected:

  • Nearest SOS: Instant access to nearby hospitals and police stations with distances
  • Local Policy: Important safety regulations and emergency numbers
  • Scam & Risk Alerts: Real-time warnings about common scams and unsafe areas
  • Accident Reports: Stay informed about incidents happening near you
  • Location-Based Safety Tips: Personalized advice based on where you are

Emergency Mode Detects distress situations and provides immediate, actionable steps including nearest emergency services, suggested actions, and critical contact information.

Offline Translation Break down language barriers instantly:

  • Voice-to-text translation in multiple languages
  • Emergency phrase quick buttons
  • Menu and sign translation
  • Works completely offline with pre-loaded language packs

Experience Layer

Discovery Feed Explore your destination like a local through short-form video content:

  • Food & Activities: Curated local experiences filtered by safety and authenticity
  • AI-Powered Recommendations: Each suggestion includes "Why recommended" explanations based on safety, cultural relevance, and proximity
  • Auto-Translation: All content automatically translated to your language
  • Safety-First Filtering: Only verified, safe locations and experiences

Personalized Onboarding When you download SafeTrip AI, we tailor everything to you:

  • Set your name, contact info, and home country
  • Choose your destination city
  • Select your preferred language
  • Everything from safety alerts to recommendations gets customized based on your location

Settings & Customization

  • Change target country or city anytime
  • Update language preferences
  • Manage offline content downloads
  • Configure safety alert sensitivity

Tech Stack & Tools

We built SafeTrip AI using modern web and AI technologies, ensuring scalability, offline functionality, and polished UX:

  • Frontend: React for responsive, interactive UI components (Discovery Feed, Chatbot, Safety Hub)
  • Backend: Node.js and Express for managing app logic, API requests, and offline caching
  • AI Integration: Google Gemini API for context-aware recommendations, conversational guidance, and translation
  • Offline Features: Local storage, service workers, and caching to make chatbot, translation, and emergency features work without internet
  • Development Tools: Visual Studio Code, GitHub for version control, Postman for testing APIs
  • Other Tools: Figma for UI/UX design, Adobe Photoshop for graphics, and Axios for HTTP requests

This stack ensures that all critical features—AI guidance, translation, emergency support, and local discovery—work seamlessly together, even when offline.


AI & Gemini Integration

The Google Gemini API powers the intelligence behind SafeTrip AI, making it far more than just another travel app.

How Gemini Elevates SafeTrip AI

Understands Language Like a Human

  • Interprets traveler intent from natural questions
  • Provides conversational, empathetic responses
  • Adapts tone based on urgency (casual exploration vs. emergency)

Analyzes Information Like a Supercomputer

  • Processes safety data, local incidents, and scam patterns in real-time
  • Filters unsafe areas and proactively suggests safer alternatives
  • Explains why a place is recommended based on safety, relevance, and authenticity

Generates Creative, Contextual Content

  • Automatically translates captions, signs, and menus in real-time
  • Creates personalized safety tips based on your location and profile
  • Generates emergency action plans tailored to specific situations

Context-Aware Recommendations Unlike typical travel apps that prioritize popularity, SafeTrip AI uses Gemini to balance:

  • Safety ratings and incident history
  • Cultural authenticity and local insights
  • Proximity and accessibility
  • User preferences and travel style

This makes SafeTrip AI a travel companion that truly understands you—prioritizing meaningful, safe experiences over viral hotspots.


Challenges & Learnings

Building SafeTrip AI taught us how to balance AI intelligence with real-world usability:

Responsible AI We learned that recommendations must be safe, explainable, and actionable. Every AI-generated suggestion includes a "Why recommended" section, ensuring transparency and building user trust.

Offline-First Development Creating a seamless offline experience required optimizing local storage, implementing robust caching strategies, and ensuring on-device AI functionality. We had to rethink how data flows through the app when connectivity is unreliable.

Inclusive Design We designed for travelers who might feel isolated, scared, or disconnected. This meant prioritizing clarity over cleverness, accessibility over aesthetics, and empowerment over engagement metrics.

Team Coordination Integrating UI components, AI logic, and offline functionality across multiple pages required clear communication and well-defined responsibilities. We learned to build modular components that work independently but connect seamlessly.

Through these challenges, we discovered that AI can be a tool for empowerment, not just convenience—helping people navigate the world with confidence, not just efficiency.


Impact & Future Vision

SafeTrip AI is designed to level the playing field for travelers, helping them feel safe, confident, and independent.

Why This Matters

Travel shouldn't be a privilege reserved for those with money, language skills, or perfect connectivity. SafeTrip AI ensures that:

  • Students studying abroad can explore safely
  • Newcomers to a country can navigate with confidence
  • Solo travelers can enjoy local experiences without fear
  • People with limited internet access still have critical safety tools

Future Improvements

  • Expanded On-Device AI: Larger offline models with deeper local knowledge
  • Advanced Distress Detection: Integration with wearables for automatic emergency detection
  • Community Safety Insights: User-contributed safety tips and real-time alerts
  • More Language Packs: Support for 50+ languages with regional dialects
  • Financial Safety Alerts: Currency scam warnings and fair pricing guidance

Our goal: No traveler should feel unsafe, lost, or disconnected because of language, access, or location.


Getting Started

# Clone the repository
git clone https://github.com/yourusername/safetrip-ai.git

# Navigate to project directory
cd safetrip-ai

# Install dependencies
npm install

# Start the development server
npm start

Built in Athens, Greece

SafeTrip AI was developed during a hackathon with a clear division of expertise:

Discovery Page + Settings Built the reels-style feed UI with food and activity filters, "Why recommended" explanations, and save/favorite functionality. Focused on creating a polished, engaging user experience.

Safety Hub Page Developed the structured safety features including nearest SOS sections, local policy cards, scam alerts, accident reports, and location-based safety tips. Created the page that builds user trust.

Chatbot Page Designed the AI interaction interface with clean chat UI, suggested prompts, offline mode indicators, and action-oriented response formats. Showcased the AI capabilities that make SafeTrip AI intelligent.

Translation Page (Shared) Collaboratively built voice-to-text functionality, language pickers, emergency phrase buttons, and offline language pack status. Combined safety needs with AI-powered language support.


Contributing

We welcome contributions! Please read our Contributing Guidelines before submitting pull requests.


License

This project is licensed under the MIT License - see the LICENSE file for details.


Acknowledgments

Built with ❤️ for travelers everywhere. Special thanks to the Google Gemini team for making context-aware AI accessible and empowering us to build tools that truly protect and empower underrepresented communities.


Empowering safe exploration, one journey at a time.

Competing for: Best Minority Hack | MLH Best Use of Gemini API

Share this project:

Updates