Skip to content

ahansardar/SpeedSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ SpeedSync - Real-Time GPS Speed Tracking

Next.js TypeScript Tailwind CSS PWA Ready

🏎️ Professional GPS speedometer with real-time tracking, journey analytics, and achievement system

🌟 Live Demo β€’ πŸ“± Try Mobile β€’ πŸ“– Documentation


✨ Features

🎯 Core Functionality

  • Real-Time GPS Tracking - Accurate speed monitoring using device GPS
  • Multi-Transport Modes - Walking, Running, Car, Train, Flight with custom speed limits
  • Interactive Speedometer - Beautiful animated digital speedometer with progress rings
  • Journey Recording - Complete path tracking with timestamps and speed data
  • Live Map Integration - OpenStreetMap with real-time position and route visualization

πŸ“Š Advanced Analytics

  • Journey History - Detailed statistics for all tracked journeys
  • Speed Analytics - Max speed, average speed, and speed distribution
  • Elevation Tracking - Altitude monitoring with elevation gain/loss
  • Achievement System - Gamified experience with unlockable achievements
  • Weather Integration - Real-time weather data for journey context

🎨 User Experience

  • Dark/Light Theme - Seamless theme switching with system preference detection
  • Responsive Design - Optimized for mobile, tablet, and desktop
  • Offline Support - Works without internet connection (GPS only)
  • Speed Alerts - Customizable speed limit warnings

πŸ”§ Technical Features

  • PWA Ready - Installable as mobile app
  • TypeScript - Full type safety and better developer experience
  • Performance Optimized - Fast loading with code splitting
  • Accessibility - WCAG compliant with screen reader support
  • Privacy First - All data stored locally, no tracking

πŸ–ΌοΈ Screenshots

SpeedSync Main Interface

SpeedSync main interface showing the digital speedometer, transport modes, and real-time tracking controls

Key Features Shown:

  • 🎯 Interactive Speedometer - Large digital display with progress ring
  • πŸš— Transport Mode Selection - Walking, Running, Car, Train, Flight options
  • βš™οΈ Speed Settings - Customizable speed limits and alerts
  • πŸ“Š Real-time Stats - Distance, duration, max/avg speed tracking
  • 🎨 Modern UI - Clean, responsive design with smooth animations
  • πŸ“± Mobile Optimized - Perfect for on-the-go speed tracking

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • npm, yarn, or pnpm
  • Modern browser with GPS support

Installation

# Clone the repository
git clone https://github.com/ahansardar/SpeedSync---A-Speedometer-For-All-Your-Rides.git
cd speedsync

# Install dependencies
npm install
# or
yarn install
# or
pnpm install

# Start development server
npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 in your browser.

Environment Variables

Create a `.env.local` file in the root directory:


πŸ“± Usage

Getting Started

  1. Allow Location Access - Grant GPS permissions when prompted
  2. Select Transport Mode - Choose from walking, running, car, train, or flight
  3. Set Speed Limit - Configure speed alerts for safety
  4. Start Tracking - Tap the play button to begin journey recording
  5. Monitor Speed - Watch real-time speed on the digital speedometer
  6. View Journey - See your path on the integrated map
  7. Stop & Save - End tracking to save journey data

Transport Modes

  • 🚢 Walking (0-8 km/h) - Perfect for pedestrian tracking
  • πŸƒ Running (0-25 km/h) - Ideal for jogging and running
  • πŸš— Car (0-200 km/h) - Standard vehicle tracking
  • πŸš† Train (0-300 km/h) - High-speed rail monitoring
  • ✈️ Flight (0-900 km/h) - Aviation speed tracking

Achievement System

Unlock achievements by reaching milestones:

  • πŸ† Speed Demon - Reach 100+ km/h
  • πŸ—ΊοΈ Explorer - Travel 10+ km in one journey
  • ⏱️ Endurance Master - Journey for over 1 hour
  • 🚴 Century Rider - Travel 100+ km
  • And many more!

πŸ› οΈ Technology Stack

Frontend

  • Next.js 15 - React framework with App Router
  • TypeScript - Type-safe JavaScript
  • Tailwind CSS - Utility-first CSS framework
  • Shadcn/ui - Beautiful, accessible UI components
  • Lucide React - Modern icon library

APIs & Services

  • Geolocation API - GPS tracking
  • OpenStreetMap - Map tiles and routing
  • OpenWeather API - Weather data (optional)
  • Local Storage - Client-side data persistence

Development Tools

  • ESLint - Code linting
  • Prettier - Code formatting
  • TypeScript - Static type checking
  • Tailwind CSS - Styling

πŸ—οΈ Project Structure

speedsync/
β”œβ”€β”€ app/                    # Next.js App Router
β”‚   β”œβ”€β”€ globals.css        # Global styles
β”‚   β”œβ”€β”€ layout.tsx         # Root layout
β”‚   └── page.tsx           # Main application
β”œβ”€β”€ components/            # React components
β”‚   β”œβ”€β”€ ui/               # Shadcn/ui components
β”‚   β”œβ”€β”€ speedsync-icon.tsx # Custom app icon
β”‚   β”œβ”€β”€ achievement-panel.tsx
β”‚   └── theme-provider.tsx
β”œβ”€β”€ lib/                   # Utility functions
β”œβ”€β”€ public/               # Static assets
β”œβ”€β”€ docs/                 # Documentation
└── README.md

πŸš€ Deployment

Vercel (Recommended)

Deploy with Vercel

Manual Deployment

# Build for production
npm run build

# Start production server
npm start

Docker

# Build Docker image
docker build -t speedsync .

# Run container
docker run -p 3000:3000 speedsync

Other Platforms

  • Netlify - Connect GitHub repo for auto-deployment
  • GitHub Pages - Use `npm run export` for static export
  • Railway - One-click deployment from GitHub

πŸ”’ Privacy & Security

Data Privacy

  • Local Storage Only - All journey data stored on your device
  • No Tracking - No analytics or user tracking by default
  • GPS Only - Location data never leaves your device
  • Open Source - Full transparency of data handling

Security Features

  • HTTPS Required - Secure connection for GPS access
  • Permission-Based - Explicit GPS permission required
  • No Server Storage - No personal data on external servers
  • Client-Side Processing - All calculations done locally

🀝 Contributing

We welcome contributions!

Development Setup

# Fork and clone the repo
git clone https://github.com/ahansardar/SpeedSync---A-Speedometer-For-All-Your-Rides.git
# Create a feature branch
git checkout -b feature/amazing-feature

# Make your changes and commit
git commit -m 'Add amazing feature'

# Push to your fork
git push origin feature/amazing-feature

# Open a Pull Request

Areas for Contribution

  • 🌍 Internationalization - Multi-language support
  • πŸ“Š Analytics - Advanced journey analytics
  • 🎨 Themes - Additional color schemes
  • πŸ”Œ Integrations - Third-party service connections
  • πŸ“± Mobile App - React Native version
  • πŸ§ͺ Testing - Unit and integration tests

πŸ“Š Performance

Lighthouse Scores

  • Performance: 95+
  • Accessibility: 100
  • Best Practices: 100
  • SEO: 100

Key Metrics

  • First Contentful Paint: < 1.5s
  • Largest Contentful Paint: < 2.5s
  • Cumulative Layout Shift: < 0.1
  • First Input Delay: < 100ms

πŸ› Known Issues & Limitations

GPS Accuracy

  • Indoor GPS may be less accurate
  • Requires clear sky view for best results
  • Battery usage increases during tracking

Browser Support

  • Requires modern browser with Geolocation API
  • HTTPS required for GPS access
  • Some features may not work in private/incognito mode

Performance

  • Continuous GPS tracking affects battery life
  • Large journey datasets may impact performance
  • Map rendering requires good internet connection

πŸ“‹ Roadmap

Version 2.0

  • Offline Maps - Download maps for offline use
  • Journey Sharing - Share journeys with friends
  • Route Planning - Plan routes before traveling
  • Voice Alerts - Audio speed limit warnings

Version 2.1

  • Fitness Integration - Connect with fitness trackers
  • Social Features - Leaderboards and challenges
  • Advanced Analytics - Machine learning insights
  • API Integration - Connect with other apps

πŸ“„ License

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


πŸ™ Acknowledgments

  • OpenStreetMap - Map data and tiles
  • Shadcn/ui - Beautiful UI components
  • Vercel - Hosting and deployment
  • Next.js Team - Amazing React framework
  • Tailwind CSS - Utility-first CSS framework

πŸ“ž Contact & Support

Developer

Support


⭐ If you found this project helpful, please give it a star!

Built with ❀️ for the developer community πŸš€ Try Live Demo

⬆ Back to Top

About

Professional GPS speedometer with real-time tracking, journey analytics, and achievement system

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published