ChronoPulse (ZenithClock) is a hyper-aesthetic, high-performance web-based Smart Clock suite built with Next.js, React, Tailwind CSS, JavaScript, and MongoDB Atlas. It seamlessly fuses timekeeping, productivity tools, interactive world time maps, procedural soundscapes, and alarm wake-up challenges into a modern glassmorphism interface.
- Dual Display Modes: Digital LED display & SVG Analog clock with real-time hour, minute, and second hands.
- Sleep Cycle Calculator: Calculates optimal 90-minute REM sleep wake-up times if sleeping right now.
- Day Progress Tracker: Visual progress bar tracking percentage of the 24-hour day elapsed.
- 5 Aesthetic Themes: Cyber Neon, Aurora Emerald, Obsidian Purple, Sunburst Gold, Midnight Slate.
- Recurring Alarms: Set alarms for specific days of the week with custom labels.
- Web Audio Synthesizer Tones: Built-in synthesizer for Radar Pulse, Gentle Chime, and Retro Synthwave (no external MP3 dependency!).
- Math Wake-Up Challenge: Heavy sleeper mode requiring math problem resolution to turn off the alarm.
- Cloud & Local Storage: Automatic persistence via MongoDB Atlas API with LocalStorage fallback.
- Searchable Directory: Browse 30+ major international cities with live digital clock cards and UTC offsets.
- Interactive Day/Night Map: Visual globe projection rendering day and night regions.
- Timezone Converter Slider: Drag a preview slider to calculate target local hours across all pinned cities simultaneously.
- Simultaneous Countdown Timers: Run multiple timers concurrently with animated circular SVG progress rings.
- Quick Presets: Pomodoro (25m), Tea & Coffee (5m), Power Nap (15m), Workout (45m).
- Celebration Audio & Visuals: Synthesized completion chimes and confetti animations.
- High-Precision Timer: Millisecond accurate stopwatch counter (
HH:MM:SS.ms). - Lap Analytics: Automatically highlights Fastest Lap (Emerald Green) and Slowest Lap (Rose Red).
- CSV Data Export: One-click export of lap history tables into
.csvspreadsheets.
- Productivity Work/Break Cycles: Structured Work (25m), Short Break (5m), and Long Break (15m) phases.
- Streak & Completed Counter: Real-time streak tracking with inspirational productivity quotes.
- Procedural Ambient Soundscapes: Built-in Web Audio API noise generator (Rainstorm, Ocean Waves, Deep Space).
- Framework: Next.js 14 (App Router)
- UI Library: React 18
- Styling: Tailwind CSS + Glassmorphism Glass Utilities
- Database: MongoDB Atlas via Mongoose
- Audio Synthesizer: HTML5 Web Audio API
- Icons: Lucide React
- Animations: HTML5 Canvas Particle Engine &
canvas-confetti
git clone https://github.com/CodeWithBasu/ZenithClock.git
cd ZenithClocknpm installCreate a .env.local file in the root directory:
MONGODB_URI=mongodb+srv://<username>:<password>@cluster.mongodb.net/chronopulse?retryWrites=true&w=majority(Note: If MONGODB_URI is omitted, ChronoPulse will automatically operate using client-side LocalStorage persistence).
npm run devOpen http://localhost:3000 in your browser to experience ChronoPulse!
Distributed under the MIT License. Built with π for developers & time-management enthusiasts.