PROJECT OVERVIEW
About Online Level
Online Level is a free, web-based digital spirit level designed to give smartphone users a convenient digital leveling tool directly in their browser without downloading native apps.
Why Online Level Exists
Whether hanging picture frames, aligning home appliances, assembling flat-pack furniture, or leveling an RV on a road trip, people frequently need a spirit level unexpectedly. Traditional native app stores are cluttered with ad-heavy bubble level apps that require multi-megabyte downloads, push notifications, and invasive device permissions.
Online Level was built to solve this problem simply and frictionlessly. It leverages modern web standards to turn any sensor-enabled mobile device into a practical, responsive bubble level that launches in seconds with zero installation.
How the Sensor Technology Works
Modern smartphones contain internal Micro-Electro-Mechanical Systems (MEMS) hardware, including tri-axial accelerometers and gyroscopes. These sensors detect gravitational acceleration and angular velocity.
Online Level accesses this data through the standard browser DeviceOrientation API. The raw orientation readings (beta and gamma angles) are filtered using client-side exponential smoothing algorithms to minimize hand jitter and mechanical vibration while retaining smooth visual responsiveness.
Dual Modes & Sensor Calibration
Surface Level Mode
A circular 2D bullseye vial that simultaneously displays pitch (X-axis) and roll (Y-axis) angles. Ideal for placing the phone flat on tables, shelves, countertops, and appliances.
Edge Level Mode
A tubular 1D vial that tracks tilt along the edge of your phone. Perfect for resting the side or top edge of your device against door jambs, picture frames, and vertical studs.
Software Zero-Offset Calibration
Modern phones often feature protruding camera lenses or protective cases that introduce a slight mechanical tilt when laid flat. Online Level provides a one-tap calibration feature that calculates and subtracts this offset from live readings, allowing you to establish a true relative zero plane.
Privacy-First, Client-Side Math
Privacy is central to how Online Level is built. All sensor reading transformations, angle calculations, vibration triggers, and audio tone syntheses are performed locally in your browser’s JavaScript thread.
No sensor streams, orientation angles, or camera data are ever transmitted to a server or stored remotely. Once the web application assets have successfully loaded in your browser, the client-side sensor engine calculates angles locally without requiring continuous internet connectivity.
Important Limitations & Guidance
While smartphone sensors are accurate and dependable for everyday DIY and household tasks, users should keep in mind the physical limitations of consumer mobile hardware:
- •Localized Footprint: A smartphone only measures the localized plane directly beneath its small contact area, whereas a longer physical spirit level spans across surface irregularities and broad spans.
- •Hardware Drift & Temperature: Consumer MEMS chips can be affected by ambient temperature shifts and internal device heat.
- •Not for Critical Construction: For structural engineering, foundation work, masonry framing, load-bearing carpentry, or safety-critical installations, always rely on an appropriate calibrated professional measuring instrument.