A sophisticated jet lag calculator that provides research-based recommendations to help travelers minimize jet lag effects and optimize their sleep schedules.
- Smart Validation: Detects impossible flights and provides humorous feedback
- Research-Based Algorithm: Uses circadian rhythm science for accurate recommendations
- Jet Lag Severity Assessment: Categorizes jet lag from none to severe with recovery time estimates
- Personalized Sleep Plans: Creates gradual adjustment schedules based on travel direction
- Light Exposure Therapy: Provides specific advice for optimal light exposure timing
- Flight Strategy: Tailored sleep recommendations during your flight
- Calendar Export: Generate .ics files for Google Calendar/Outlook integration
- Comprehensive Timezone Support: 80+ timezones worldwide
- Funny Suggestions: Entertaining messages for unusual sleep schedules and impossible flights
The calculator includes:
- Flight Duration Validation: Detects unrealistic flight times and provides helpful feedback
- Circadian Rhythm Analysis: Considers eastward vs westward travel difficulty
- Recovery Time Estimation: Calculates realistic recovery periods based on timezone shifts
- Light Therapy Recommendations: Direction-specific advice for optimal light exposure
- Gradual Sleep Adjustment: Research-backed pre-travel preparation plans (max 1-1.5 hours/day)
- Node.js (version 14 or higher)
- npm or yarn package manager
-
Clone the repository:
git clone https://github.com/thihakyaw/jetify.git cd jetify -
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open your browser: Navigate to
http://localhost:3000(or the port shown in your terminal)
npm start- Runs the app in development modenpm run build- Builds the app for productionnpm test- Launches the test runnernpm run eject- Ejects from Create React App (⚠️ irreversible)
- Frontend: React 18 with TypeScript
- Styling: Tailwind CSS
- Animations: Framer Motion
- Build Tool: Create React App
- Calendar Integration: ICS file generation
- Input Your Details: Enter departure and arrival times with timezones, plus your normal sleep schedule
- Smart Analysis: The algorithm validates your flight and calculates timezone differences
- Personalized Plan: Receive a customized sleep adjustment plan starting days before travel
- Flight Strategy: Get specific recommendations for sleeping during your flight
- Recovery Guidance: Understand your jet lag severity and expected recovery time
- Light Therapy: Follow direction-specific light exposure advice
- Calendar Export: Export your plan to your preferred calendar app
- Business Travelers: Optimize productivity by minimizing jet lag impact
- Vacation Planning: Start your trip feeling refreshed and ready
- Long-Haul Flights: Strategic planning for 12+ hour journeys
- Frequent Flyers: Develop consistent routines for regular travel
- Time Zone Warriors: Master the art of rapid adaptation
The app intelligently detects and provides humorous feedback for:
- Impossible flights (negative duration, unrealistic routes)
- Suspicious timing (extremely long flights for short distances)
- Excessive sleep schedules (12+ hours of sleep)
- Ultra long-haul flights (15+ hours with entertainment suggestions)
frontend/
├── public/
│ └── index.html
├── src/
│ ├── index.tsx # App entry point
│ ├── index.css # Global styles
│ ├── jetlagCalculator.ts # Core calculation engine
│ └── JetLagCalculator.tsx # Main React component
├── package.json
├── tailwind.config.js
└── tsconfig.json
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is open source and available under the MIT License.
- AI Development: Powered by Claude Sonnet 4, showcasing advanced AI-assisted development
- Project Orchestration: thihakyaw
- Research Foundation: Based on circadian rhythm and jet lag research from travel medicine studies
Thiha Kyaw - GitHub Profile
Project Link: https://github.com/thihakyaw/jetify
Live Demo: https://thihakyaw.github.io/jetify
This project is deployed on GitHub Pages. To deploy your own version:
- Fork the repository and clone it locally
- Install dependencies:
npm install - Deploy to GitHub Pages:
npm run deploy
The deployment process:
- Builds the production version (
npm run build) - Pushes the build to the
gh-pagesbranch - GitHub Pages automatically serves from the
gh-pagesbranch
Happy travels!