React-based time management application with world clocks, countdown timer, and stopwatch
- Overview
- Features
- Demo Screenshots
- Quick Start
- Project Structure
- Technology Stack
- Browser Support
- Security Privacy
- Contributing
- FAQ
- License
Web application for tracking time across different cities, countdown timers, and stopwatch functionality. Built with React and runs entirely in the browser.
- Analog and digital clock display
- World clocks for 25+ cities
- Search and add cities dynamically
- Countdown timer with hours, minutes, seconds
- Stopwatch with millisecond precision
- Lap recording for stopwatch
- Alarm system with toggle
- Time statistics (Day of Year, Week Number, Unix Timestamp)
- Browser notifications for timer completion
- Responsive design
- All data stored locally
Live demo: [Your Demo URL]
Node.js >= 16
npm >= 8# Clone the repository
git clone https://github.com/BilgeGates/Clock.git
# Navigate to project directory
cd Clock
# Install dependencies
npm install
# Start development server
npm startThe application will automatically open at http://localhost:3000
# Create optimized production build
npm run buildclock/
│
├── 📂 public/
│ ├── index.html
│ └── favicon.ico
│
├── 📂 src/
│ │
│ ├── 📂 components/
│ │ │
│ │ ├── 📂 ui/ # Reusable UI components
│ │ │ ├── Button.jsx
│ │ │ ├── Card.jsx
│ │ │ ├── Input.jsx
│ │ │ ├── Switch.jsx
│ │ │ └── index.js
│ │ │
│ │ ├── 📂 stats/ # Statistics components
│ │ │ ├── StatCard.jsx
│ │ │ ├── StatsGrid.jsx
│ │ │ └── index.js
│ │ │
│ │ ├── 📂 clock/ # Clock components
│ │ │ ├── AnalogClock.jsx
│ │ │ ├── DigitalTime.jsx
│ │ │ ├── ClockMarkers.jsx
│ │ │ └── index.js
│ │ │
│ │ ├── 📂 world-clock/ # World clock features
│ │ │ ├── TimezoneCard.jsx
│ │ │ ├── TimezoneSearch.jsx
│ │ │ ├── TimezoneList.jsx
│ │ │ ├── WorldClockPanel.jsx
│ │ │ └── index.js
│ │ │
│ │ ├── 📂 stopwatch/ # Stopwatch features
│ │ │ ├── StopwatchDisplay.jsx
│ │ │ ├── StopwatchControls.jsx
│ │ │ ├── LapItem.jsx
│ │ │ ├── LapsList.jsx
│ │ │ ├── StopwatchPanel.jsx
│ │ │ └── index.js
│ │ │
│ │ ├── 📂 timer/ # Timer features
│ │ │ ├── TimerDisplay.jsx
│ │ │ ├── TimerInputs.jsx
│ │ │ ├── TimerControls.jsx
│ │ │ ├── TimerPanel.jsx
│ │ │ └── index.js
│ │ │
│ │ ├── 📂 alarm/ # Alarm features
│ │ │ ├── AlarmCard.jsx
│ │ │ ├── AlarmList.jsx
│ │ │ ├── AlarmPanel.jsx
│ │ │ └── index.js
│ │ │
│ │ └── 📂 layout/ # Layout components
│ │ ├── Header.jsx
│ │ └── index.js
│ │
│ ├── 📂 hooks/ # Custom React hooks
│ │ ├── useTime.js
│ │ ├── useStopwatch.js
│ │ ├── useTimer.js
│ │ ├── useTimezones.js
│ │ ├── useAlarms.js
│ │ └── index.js
│ │
│ ├── 📂 utils/ # Utility functions
│ │ ├── constants.js
│ │ ├── timeUtils.js
│ │ └── index.js
│ │
│ ├── App.jsx # Root component
│ ├── index.js # Entry point
│ └── index.css # Global styles
│
├── 📄 .gitignore
├── 📄 postcss.config.js
├── 📄 tailwind.config.js
├── 📄 package.json
├── 📄 package-lock.json
├── 📄 README.md
├── 📄 CONTRIBUTING.md
├── 📄 SECURITY.md
└── 📄 LICENSE
|
React 18.2 UI Framework |
JavaScript ES6+ Language |
Tailwind CSS 3.3 Styling |
Node.js 16+ Runtime |
- Lucide React - Icon library
- React Hooks - State management (useState, useEffect, useMemo, useCallback)
- Web APIs - Intl.DateTimeFormat, Notification API, Web Audio API
| Browser | Version | Status |
|---|---|---|
| 90+ | ✅ Tested | |
| 88+ | ✅ Tested | |
| 14+ | ✅ Expected to work | |
| 90+ | ✅ Expected to work | |
| 76+ | ✅ Expected to work |
- ES6+ JavaScript support
- CSS Grid & Flexbox
- Web Audio API
- Notification API (optional)
- Intl.DateTimeFormat for timezone support
Zero-backend architecture - all functionality runs in the browser.
- ✅ No server-side data storage
- ✅ Client-side processing only
- ✅ No cookies, trackers, or fingerprinting
- ✅ No third-party analytics or telemetry
- ✅ No user data is collected, stored, or transmitted
All settings, timers, and preferences are stored locally using localStorage.
For security concerns, see SECURITY.md.
Contributions welcome.
# 1. Fork the repository
# 2. Create your feature branch
git checkout -b feature/amazing-feature
# 3. Commit your changes
git commit -m 'feat: add amazing feature'
# 4. Push to the branch
git push origin feature/amazing-feature
# 5. Open a Pull RequestPlease read CONTRIBUTING.md for detailed guidelines on:
- Code standards and best practices
- Pull request process
- Bug reporting
- Feature requests
This project is licensed under the MIT License - see the LICENSE file for details.
MIT License
Copyright (c) 2026 Khatai Huseynzada
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
|
React Team Framework |
Tailwind Labs CSS Framework |
Lucide Icons Icon Library |
| Channel | Link |
|---|---|
| 🐛 Bug Reports | GitHub Issues |
| 💡 Feature Requests | GitHub Discussions |
| [email protected] |
Responses on a best-effort basis
How do I report a bug?
- Check if the issue already exists in GitHub Issues
- If not, create a new issue with:
- Clear description of the problem
- Steps to reproduce
- Expected vs actual behavior
- Screenshots (if applicable)
- Browser and OS information
Can I use this commercially?
Yes! This project is MIT licensed, which means you can use it for commercial purposes.
Just include the license notice in your project.
How do I add more cities?
- Open
src/utils/constants.js - Add your city to the
TIMEZONESarray following the existing format - Submit a pull request with your changes
Why do I need to grant notification permissions?
Notification permissions are optional and only used for timer completion alerts.
The app works perfectly fine without them - you'll just see a standard browser alert instead.
How is my data stored?
All user data (timezones, timer settings, alarms) is stored locally in your browser using localStorage.
No data is sent to any server.
© 2026 Khatai Huseynzada. Licensed under MIT.