Skip to content

shlok926/TrekFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TrekFlow Logo

πŸŽ’ TrekFlow

AI-Powered Travel Co-Pilot & Journey Manager

An advanced, premium travel assistant that creates date-aware itineraries, monitors dynamic budgets, calculates group splits, manages secure document lockers, and triggers real-time situational alerts.

Open TrekFlow App

Python Version UI Streamlit AI LangChain License Status

πŸš€ Live App Demo β€’ ⚑ Quick Install β€’ πŸ“– Project Architecture β€’ πŸ“Ί Demo Video β€’ 🀝 Contribute


🎯 Key Features at a Glance

πŸ€– AI Co-Pilot πŸ’° Smart Budgeting πŸ”’ Encrypted Vault 🚨 Real-time Alerts
Multilingual planning with customizable travel vibes Pro allocator splits & validates trip expenses AES-256 secure locker for travel documents/IDs Pop-ups for weather, security, and eco-milestones

πŸ“‹ Table of Contents


✨ Core Capabilities

Feature Details
AI Itinerary Engine Generates dynamic day-wise schedules that automatically skip monument closure days, highlight traffic peak-hours, and fetch local sunset points.
Pro Budget Allocator Validates your budget and generates clean breakdown visualizations for Food, Stays, Transport, Shopping, and Sightseeing.
Split-Trip Ledger Shared group expense calculator that maps settlements and clarifies debt resolution.
Multilingual Engine Dynamic translation registry supporting English, Hindi, Spanish, French, German, Italian, Japanese, and Russian.
Situational Alerting Simulates and logs warnings regarding weather changes, local transit disruption, and custom eco-karma benchmarks.
Vault / Shield Secure database authentication coupled with cryptographic locker storage for personal safety documents.

πŸ“Έ Screenshots & Previews

πŸ–₯️ Home Dashboard
TrekFlow Home Dashboard


✈️ Plan a New Adventure
Plan a New Adventure


πŸ—ΊοΈ Day-wise Itinerary & Interactive Route Map
TrekFlow Trip Itinerary


🏨 Lodging & Travel Bookings
Lodging & Travel Bookings


πŸ“„ Exported PDF Travel Itinerary Guide
πŸ“‚ Download / View Sample Itinerary (PDF)


πŸ› οΈ Technology Stack

  • Frontend Framework: Streamlit (featuring a premium Dark/Light Glassmorphism design system)
  • AI Orchestration: LangChain, LangChain-Groq, Groq APIs
  • Database: SQLite3 (for secure, offline user profiles, expense logs, and notifications)
  • PDF Engine: ReportLab (for exporting customized A4 printable itineraries with mobile sync QR codes)
  • Core Libraries: Pillow (image utilities), qrcode (mobile data sharing), python-dotenv

πŸ“‚ Project Structure

TrekFlow/
β”œβ”€β”€ app.py                   # Main entry point for Streamlit application and layout routing
β”œβ”€β”€ pdf_generate.py          # Custom A4 PDF itinerary constructor with QR sync integration
β”œβ”€β”€ requirements.txt         # Project runtime dependencies
β”œβ”€β”€ .gitignore               # Configured to ignore environment files, databases, and logs
β”œβ”€β”€ README.md                # System documentation
└── src/                     # Modular source code
    β”œβ”€β”€ auth/                # Security authentication manager and AES encryption
    β”‚   β”œβ”€β”€ auth_manager.py
    β”‚   └── encryption.py
    β”œβ”€β”€ budget/              # Budget allocation logic and expense validations
    β”‚   β”œβ”€β”€ allocator.py
    β”‚   └── feasibility.py
    β”œβ”€β”€ chains/              # AI LangChain suggestors and assistant runtimes
    β”‚   β”œβ”€β”€ ai_suggester.py
    β”‚   └── chat_assistant.py
    β”œβ”€β”€ core/                # Core assistant elements (Moods, alerts, packaging guidelines)
    β”‚   β”œβ”€β”€ fallback_data.py
    β”‚   β”œβ”€β”€ itinerary_chain.py
    β”‚   β”œβ”€β”€ mood_engine.py
    β”‚   β”œβ”€β”€ packing_assistant.py
    β”‚   β”œβ”€β”€ planner.py
    β”‚   β”œβ”€β”€ smart_alerts.py
    β”‚   └── sustainability.py
    β”œβ”€β”€ database/            # SQLite interface managers (notifications, trips, group splits)
    β”‚   β”œβ”€β”€ db.py
    β”‚   β”œβ”€β”€ document_locker.py
    β”‚   β”œβ”€β”€ notifications_manager.py
    β”‚   β”œβ”€β”€ split_trip.py
    β”‚   └── trips_manager.py
    β”œβ”€β”€ safety/              # Location-based emergency contacts list
    β”‚   └── emergency.py
    β”œβ”€β”€ transport/           # Travel route recommendations and booking helper
    β”‚   β”œβ”€β”€ booking_links.py
    β”‚   β”œβ”€β”€ micro_mobility.py
    β”‚   └── travel_type.py
    β”œβ”€β”€ ui/                  # Map rendering configurations and sub-pages
    β”‚   β”œβ”€β”€ auth_ui.py
    β”‚   └── map_renderer.py
    └── weather/             # Weather API configurations
        └── weather_api.py

βš™οΈ Setup & Installation

1️⃣ Clone the Repository

git clone https://github.com/shlok926/TrekFlow.git
cd TrekFlow

2️⃣ Create and Activate Virtual Environment

# Windows
python -m venv env
env\Scripts\activate

# macOS/Linux
python3 -m venv env
source env/bin/activate

3️⃣ Install Dependencies

pip install -r requirements.txt

4️⃣ Setup Environment Variables

Create a .env file in the root directory and add your Groq API key:

GROQ_API_KEY=your_groq_api_key_here

5️⃣ Run the Application

streamlit run app.py

πŸ”’ Security & Encryption

  • Local Persistence: Dynamic database files (*.db), generated PDFs, temporary files, and local logs are strictly locked inside .gitignore and never committed to GitHub.
  • Cryptographic Vault: Files in the Travel Vault are encrypted locally using AES-256 algorithms.

πŸ“Ί Project Demo Video

Watch the execution and walkthrough of the application: πŸ‘‰ TrekFlow Demo Video


🀝 Contributing & Feedback

Contributions, suggestions, and feedback are highly welcome!

  • Got suggestions or feature requests? Feel free to open a new Issue or share your ideas.
  • Want to contribute? Feel free to fork this repository, make your changes, and submit a Pull Request.

⭐ Show Your Support

Love this tool? Help us grow:

✨ Star the repository     (GitHub Star Button)
πŸ› Report bugs             (GitHub Issues)
πŸ’‘ Suggest features        (GitHub Discussions)
πŸ“’ Share with others       (LinkedIn/Twitter)
🀝 Contribute code         (Pull Requests)

πŸ‘€ Author & Contact

πŸ‘¨β€πŸ’» Shlok Thorat

Let's connect on LinkedIn, collaborate, and build amazing things together!

Email GitHub LinkedIn


Made with ❀️ for travel enthusiasts β€’ Back to Top

About

AI-Powered Travel Co-Pilot & Journey Manager. An advanced AI travel planning and itinerary management system built with Python, Streamlit, and LangChain.

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages