Unit Converter
Engineering Workbench v2.1: Scientific Swiss Army knife for technical conversions, offline PWA, formula evaluation, and SI metrology.
High-precision engineering workbench for physical unit conversion, SI/CODATA 2022 metrology, and international number formatting. Integrates 6 scientific domains (Dimension, Energy, Time, Mechanics, Computing, and Radiofrequency) with bidirectional dBm ⇔ W power, λ ⇔ f wavelength math, and a multiline Batch Scratchpad to sanitize and transform Excel columns entirely in the browser.
System Objectives
Provide a digital Engineering Workbench for scientific and engineering conversions with SI/CODATA rigor, instantaneous loading, and zero ads.
Cover 6 core disciplines: Dimension (length, area, volume), Energy/Power/Temperature, Time, Mechanics (force, pressure), Computing (IEC binary vs SI decimal), and Radiofrequency (frequency, λ, dBm).
Guarantee strict mathematical reversibility (INV-CONV-1) and enable multiline batch transformation from spreadsheets.
Ensure 100% offline client-side performance with full bilingual parity (ES/EN), deep-linking, and zero external runtime dependencies.
Key Capabilities & Modules
6 Dedicated Modules: Dimension (m, ft, in, NM), Energy (J, kWh, BTU, cal), Time, Mechanics (N, Bar, PSI, atm), Computing (KiB/MiB vs kB/MB), and Radiofrequency (dBm ⇔ W, λ ⇔ f).
Multiline Batch Scratchpad: paste entire Excel or CSV columns to toggle number formats (US ⇔ EU) and/or convert physical units row by row.
Advanced RF Math: bidirectional logarithmic power math (dBm ⇔ mW / W / kW) and exact frequency-to-wavelength calculations (λ = c / f).
Multi-Scale Omni-Matrix & CODATA Constants: instantly preview 4 simultaneous equivalents and inject fundamental constants in 1 click (c, g₀, h, k_B, N_A, ε₀, R, e).
Deep-Linking & Ergonomics: keyboard shortcuts (X swap, C copy), precision/scientific notation control, and permanent shareable calculation URLs.
Zero Dependencies: Single-Source-of-Truth architecture in Vanilla JS and native CSS with backward-compatible shims preserving 100% of legacy URLs and SEO.
Native Offline PWA: Web App Manifest, Service Worker, and resilient local cache for 100% offline execution without network.
Inline Formula Calculator: enter arithmetic expressions directly into the input field (e.g. 2*pi*50, sqrt(144), 2^10) with secure deterministic evaluation.
Dual Day / Night Mode: high-contrast themes with direct shortcut (T / Alt+T), Datalaria portal synchronization, and zero FOUC.
Architecture & Design Specifications
Decoupled Single-Source-of-Truth architecture: canonical catalog and math engine reside in `apps/conversor/` and compile to a single lightweight static SPA (`static/apps/conversor/index.html`). The 14 legacy endpoints across `/es/` and `/en/` are preserved via instant meta refresh and JS shims protecting SEO and existing bookmarks.
🔍 Click diagram to enlarge to fullscreen
Invariant Architectural Principles:
- Metrological Rigor: standardized on official International System (SI) definitions and CODATA 2022 fundamental constants.
- Instantaneous Speed: all arithmetic runs on the browser's main thread in microseconds with zero network roundtrips.
- Educational Context: each magnitude displays the analytical canonical SI formula used to verify calculation steps.
Technology Stack
FRONTEND
STANDARDS
I18N
HOSTING
Reference Articles & Architecture Series
This application is fully documented in an engineering series published on the blog:
Building My Digital 'Swiss Army Knife': A Custom Unit Converter with AI
Tired of dusting off long-forgotten knowledge or relying on various generic online converters, I decided to create my own with the …
Read full article →Evolutionary History & Versions (SemVer)
Formal record of releases, feature additions, and security patches:
Engineering Workbench v2.1: Offline PWA, Inline Formula Calculator, and Dual Day/Night Mode
- Full PWA (Progressive Web App) support with Service Worker (`sw.js`), Web App Manifest (`manifest.json`), integrated 1-click install button (`#btn-install-pwa`), and full set of vector and adaptive PNG icons (`icon-192`, `icon-512`, `maskable`, `apple-touch-icon`), ensuring 100% offline availability and distinct native icons across Android and desktop (OPP-01 / INV-CONV-10).
- Reactive PWA Update Module: floating '⚡ New version available' banner with 1-click update and interactive version chip (`#btn-check-update`) for instant server check without losing data or uninstalling.
- Direct recursive arithmetic evaluator in the input field (`INV-CONV-9` / OPP-03), supporting expressions like `2*pi*50`, `sqrt(144)` or `2^10` with zero 'eval' usage.
- Dual Day / Night Mode integration (`INV-CONV-8`) with top bar switcher, keyboard shortcut (`T` / `Alt+T`), `pref-theme` synchronization, and zero-FOUC inline script in `<head>`.
- Canonical link to App Overview sheet added to top header bar (`INV-CONV-7`) establishing the ecosystem navigation standard.
Engineering Workbench v2.0: unified architecture, multiline Scratchpad, advanced RF, and CODATA rigor
- Refactored to Single-Source-of-Truth architecture in `apps/conversor/` eliminating 14 duplicated HTML files.
- Deployed SEO redirect shims across all 14 legacy URLs and fixed corrupted file `en/mecanica_en.html`.
- Full addition of logarithmic RF power (dBm ⇔ W / mW / kW) and bidirectional wavelength math (λ = c / f).
- Support for IEC binary storage units (KiB..TiB) vs SI decimal (kB..TB) and BTU in energy.
- New multiline Batch Scratchpad module to transform and format columns pasted from Excel or CSV.
- Fixed 3-decimal rounding truncation bug and added precision selector (Auto, 2-8 dec, Sci).
- Quick-access bar for 8 CODATA fundamental physical constants and multi-scale Omni-Matrix live view.
- Datalaria visual shell with dynamic ES/EN toggle, deep-linking URLs, keyboard shortcuts, and B2B Kits CTA.
Official Unit Converter release featuring 6 specialized modules and bilingual mirror
- Deployment of all 6 modules: Dimension, Energy, Time, Mechanics, Computing, and Radiofrequency.
- Decimal and thousands separator format converter (international dot and comma notation).
- Full bilingual mirror implementation with localized routes and explanatory documentation in ES and EN.
- Frozen state as a permanent static reference tool.
Addition of Mechanics and Radiofrequency modules
- Added pressure conversions (Pascal, Bar, PSI) and electromagnetic power (dBm to Watts).
Initial prototype with linear magnitudes and number formatter
- Basic length and mass calculations with simple comma-to-dot converter.