Skip to content
/ TripAi Public

An AI-powered travel planning web app that generates personalized itineraries, curated flight deals, and budget-friendly recommendations, with secure authentication and PDF downloads. Built using Node.js, Express, Firebase.

Notifications You must be signed in to change notification settings

vcint/TripAi

Repository files navigation

🌍 TripAi – AI-Powered Trip Itinerary Generator

Live Demo Meta Llama 3.8B Instruct License: MIT Node.js MongoDB

TripAi is a powerful AI-based travel planning web application that helps users effortlessly generate customised trip itineraries. By leveraging Meta’s Llama 3.8B Instruct model and integrating real-time data from Amadeus APIs, TripAi delivers intelligent and practical trip suggestions – including flights, hotels, and personalised activities.


✨ Features

  • ✈️ Smart Trip Planner : Enter origin, destination, dates, budget, and partners to get a tailored itinerary.
  • 🧠 AI-Generated Plans : Powered by Meta Llama 3.8B Instruct for context-aware travel suggestions.
  • 🏨 Real-Time Flights & Hotels : View flights and hotel availability via the Amadeus API.
  • 📥 Download as PDF : Export your travel plan after a nominal fee using Cashfree Payment Gateway.
  • 📊 Recommendations Engine : Suggests trips based on historical travel data.
  • 🔒 Firebase Auth : Secure sign-in system for user-specific planning and downloads.
  • 💾 MongoDB + Redis : Persistent storage for user plans and caching for performance.

🧪 Tech Stack

Tech Purpose
Node.js + Express Backend server and routing
EJS Server-side templating
Bootstrap Responsive UI design
MongoDB + Redis Database + caching layer
Firebase Auth Authentication system
Puppeteer HTML-to-PDF conversion
Meta Llama 3.8B Instruct Natural language trip planning
Amadeus API Flights and hotels integration
Cashfree API Payment gateway integration

🚀 Live Site

🔗 TripAi Live on Render


🛠️ Installation & Setup

  1. Clone the repository:

    git clone https://github.com/your-username/tripai.git
    cd tripai
  2. Install dependencies:

    npm install
  3. Setup .env file: Create a .env file in the root directory and add the following:

    SESSION_SECRET=Anything
    REPLICATE_API_TOKEN=get htis token from https://replicate.com/meta/meta-llama-3-8b-instruct
    AMADEUS_API_KEY=get this from https://developers.amadeus.com/
    AMADEUS_API_SECRET==also from https://developers.amadeus.com/
    #cashfree
    CASHFREE_APP_ID=get this from https://www.cashfree.com/
    CASHFREE_SECRET_KEY=same fro https://www.cashfree.com/
    CASHFREE_ENV=PRODUCTION
    BASE_URL=http://localhost:3000
    XEnvironment=Cashfree.Environment.PRODUCTION;
    NODE_ENV=PRODUCTION
    MONGO_URI=Your MongoDb Url from localhost 
    REDIS_URL=Redi Database Url
    REDIS_USER=
    REDIS_PASSWORD=
    FIREBASE_SERVICE_ACCOUNT={Get this from console.firebase.google.com}
  4. Start the server:

    node app.js
  5. Visit http://localhost:3000 to start using TripAi locally.


📸 Screenshots

tripAi Img


📄 License

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

About

An AI-powered travel planning web app that generates personalized itineraries, curated flight deals, and budget-friendly recommendations, with secure authentication and PDF downloads. Built using Node.js, Express, Firebase.

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •