A web-based Progressive Web App (PWA) for unified public transit fare comparison and route planning across Chennai and Trichy, Tamil Nadu.
๐ Live Demo: transitsave.netlify.app
Commuters in Tamil Nadu have to check 3 different apps just to compare fares between MTC Bus, Metro Rail, and Suburban Train. There is no single platform that shows all fares together โ and government welfare schemes like the free Pink Bus for women and Student Pass are never shown in any navigation tool.
TransitSave solves all of this in one place.
| Feature | Description |
|---|---|
| ๐ Fare Comparison | Compare MTC Ordinary, MTC Express, MTC Deluxe, Metro Rail, Suburban Train, Private Bus, TNSTC โ side by side |
| ๐ฉท Pink Bus Scheme | 100% free MTC Ordinary + TNSTC for women โ auto applied |
| ๐ Student Pass | 100% free MTC Ordinary for students โ toggle to apply |
| ๐ Monthly Calculator | Estimate monthly travel cost by distance + trips/day + working days |
| ๐ Tamil & English | Full UI language switch without page reload |
| ๐ Dark / Light Mode | Theme toggle for visual comfort |
| ๐ถ Offline PWA | Works without internet after first load via service worker |
| ๐บ๏ธ Transit Map | Offline CMRL metro network map modal |
| ๐ Smart Search | Enhanced route search with recent routes history |
| ๐๏ธ City Comparison | Compare routes across Chennai and Trichy |
| โก Proximity Alert | Nearby transit alerts based on location |
| โ๏ธ Weather Comfort | Weather comfort pill for travel planning |
- โ 55 Chennai routes โ CMRL Blue Line, Green Line, MTC corridors, Suburban Rail
- โ 45 Trichy routes โ TNSTC intercity and intracity services
- โ 100 total routes with real distance measurements
- โ
Intercity routes โ via
intercityRoutes.ts - โ
Metro routes โ via
metroRoutes.ts+metroData.ts
| Mode | Fare Range | Women Scheme | Student Pass |
|---|---|---|---|
| MTC Ordinary Bus | โน5 โ โน24 | โ 100% Free | โ 100% Free |
| MTC Express Bus | โน10 โ โน48 | โ | 50% off |
| MTC Deluxe (SETC) | โน15 โ โน60 | โ | โ |
| Chennai Metro (CMRL) | โน10 โ โน50 | โ | โ |
| Suburban Train | โน5 โ โน35 | โ | Season pass |
| Private Bus | โน10 โ โน60 | โ | โ |
| TNSTC (Trichy) | โน5 โ โน30 | โ 100% Free | 50% off |
All fare data sourced from official Tamil Nadu Government notifications and CMRL/Southern Railway published tariffs.
| Technology | Purpose |
|---|---|
| React.js 18 | Component-based frontend |
| TypeScript | Type-safe development |
| TailwindCSS 3 | Responsive utility-first styling |
| Vite | Lightning-fast build tool |
| vite-plugin-pwa | Service worker + PWA manifest generation |
| React Context API | Language + Theme state management |
| shadcn/ui | Accessible UI component library |
| Netlify CDN | Static deployment + continuous delivery |
- Node.js 18+
- npm or bun
# Clone the repository
git clone https://github.com/Subash-Nagaraj-V/transitsave.git
# Navigate to project folder
cd transitsave/transitsave-main
# Install dependencies
npm install
# or
bun install
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run previewThe app will run at http://localhost:8080
src/
โโโ components/
โ โโโ ui/ # shadcn/ui base components
โ โโโ FareComparison.tsx # Main fare results + welfare logic
โ โโโ RouteSearch.tsx # Route search input
โ โโโ RouteSelector.tsx # Origin/destination selector
โ โโโ SearchEnhanced.tsx # Enhanced search with filters
โ โโโ CustomCalculator.tsx # Monthly cost calculator
โ โโโ CityComparison.tsx # Chennai vs Trichy comparison
โ โโโ TransitMap.tsx # Transit map component
โ โโโ TransitMapModal.tsx # Offline CMRL metro map modal
โ โโโ ConductorCard.tsx # Conductor info card
โ โโโ ProximityAlert.tsx # Nearby transit alerts
โ โโโ WeatherComfortPill.tsx # Weather comfort indicator
โ โโโ Header.tsx # App header + nav
โ โโโ HeroSection.tsx # Landing hero section
โ โโโ ShareButton.tsx # Share route feature
โ โโโ TransitAlerts.tsx # Live transit alerts
โ โโโ NavLink.tsx # Navigation link component
โ
โโโ contexts/
โ โโโ LanguageContext.tsx # Tamil/English translations
โ
โโโ data/
โ โโโ routes.ts # 100 routes + stage-based fare data
โ โโโ metroData.ts # CMRL station list + fare matrix
โ โโโ metroRoutes.ts # Metro-specific route definitions
โ โโโ intercityRoutes.ts # Intercity route data
โ โโโ transportImages.ts # Transport mode image mappings
โ โโโ imageQualityGuide.ts # Image quality configurations
โ
โโโ hooks/
โ โโโ use-mobile.tsx # Mobile viewport detection
โ โโโ use-toast.ts # Toast notification hook
โ โโโ useRecentRoutes.ts # Recent routes history hook
โ
โโโ lib/
โ โโโ utils.ts # Utility functions
โ
โโโ pages/
โ โโโ Index.tsx # Main page
โ โโโ Install.tsx # PWA install guide page
โ โโโ NotFound.tsx # 404 page
โ
โโโ test/
โโโ example.test.ts # Example test cases
โโโ setup.ts # Test setup configuration
public/
โโโ images/ # Transit mode images (webp, avif)
โ โโโ Deluxe Bus (SETC).webp
โ โโโ Express Bus (Green).webp
โ โโโ Government Bus (PINK).webp
โ โโโ Metro Rail.avif
โ โโโ Private Bus.webp
โ โโโ SubUrban Train.webp
โ โโโ metro-map.jpg
โ โโโ transit-map.png
โโโ transport/ # Transport category icons
โโโ pwa-192x192.png # PWA icon (192px)
โโโ pwa-512x512.png # PWA icon (512px)
TransitSave can be installed on your phone like a native app:
- Open transitsave.netlify.app in Chrome or Edge
- Tap the "Install" button in the browser address bar
- Or go to the Install page inside the app
- Once installed, the app works fully offline for all 100 routes
| Data | Source |
|---|---|
| MTC Ordinary & Express Fares | G.O. (Ms.) No. 48, TN Transport Dept, Jan 2018 |
| Women Free Bus Scheme | G.O. (Ms.) No. 117, TN Transport Dept, Sep 2021 |
| CMRL Metro Fares | CMRL Official Fare Chart, Feb 2021 |
| TNSTC Trichy Fares | TNSTC Tiruchirappalli Division Tariff, 2022 |
| Suburban Rail Fares | Southern Railway Tariff Circular, 2023 |
# Run test suite
npm run test
# Run tests with coverage
npm run test -- --coverageThe app is deployed on Netlify with automatic builds triggered on every push to the main branch.
# Build output goes to /dist folder
npm run buildNetlify configuration is auto-detected from vite.config.ts.
- ๐ Live GPS bus tracking integration
- ๐๏ธ Direct ticket purchasing + QR code generation
- ๐๏ธ Expand to Coimbatore, Madurai, Salem
- ๐ GTFS-Fares v2 integration for automated fare updates
- ๐ Push notifications for route alerts
Subash Nagaraj.V 3rd Year โ Artificial Intelligence and Machine Learning Dhanalakshmi Srinivasan University, Tiruchirappalli ๐ง subashnagaraj796@gmail.com ๐ LinkedIn
Pull requests are welcome! For major changes, please open an issue first.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
MIT License โ free to use and modify with attribution.
Made with โค๏ธ for commuters of Tamil Nadu