AREFOLIO

Qibla Direction Finders

High-precision real-time compass with premium aesthetics

Qibla Direction is a sleek, mobile-first utility web application. It determines the exact direction of the Kaaba from any location worldwide using the Great Circle Distance (Haversine-like) formula. Featuring a 'hybrid compass' rotating dial system and a premium dark mode aesthetic with emerald accents, it delivers precise live heading updates straight from the browser.

[THE CHALLENGE]

Most compass apps either require native installation or feature bloated interfaces with ads. Building a seamless, high-precision compass entirely on the web—especially one that handles real-time sensor streams smoothly—is notoriously difficult due to mobile browser security limitations.

[THE SOLUTION]

Developed a highly optimized React 19 application utilizing Vite and Tailwind CSS v4. It securely requests location permissions and leverages device GPS alongside the magnetometer to construct a hybrid, real-time rotating dial system that strictly mimics a physical compass.

[TECHNICAL DEEP DIVE]

Calculates exact bearings via the Great Circle Distance formula. It hooks into the browser's Geolocation and DeviceOrientation event listeners to constantly update the CSS transform rotation of the compass dial, applying glassmorphism and emerald accents for a premium feel.

// DEVELOPER'S RETROSPECTIVE

"Handling `DeviceOrientationEvent.requestPermission` on iOS Safari requires explicit user gestures and careful error handling. Overcoming these strict security measures on physical devices without a native console was challenging, but the resulting pure-client, install-free experience proved completely worth the effort."

BACK TO PROJECTSAREFOLIO // CASE STUDY // LAKSHMIPUR