Ultra-fast, high-precision measurement conversion engine with real-time mathematical expression evaluation, live currency exchange rates, step-by-step formula breakdowns, and 36+ categories.
Most unit converters are outdated, clunky, ad-riddled, and restricted to simple static number inputs.
UNITFLOW is engineered from scratch for engineers, physicists, developers, students, and everyday power users. It blends sub-millisecond conversion accuracy, an AST mathematical expression parser, live global currency rates, and a sleek glassmorphic UI.
┌────────────────────────────────────────────────────────┐
│ INPUT: "(15 * 4.5) + sin(pi/4)" [Miles / Kilometers] │
└──────────────────────────┬─────────────────────────────┘
│
┌──────────────────▼──────────────────┐
│ Smart Lexer + AST Expression Engine│
└──────────────────┬──────────────────┘
│
┌───────────────────────┴───────────────────────┐
▼ ▼
┌────────────────────────────┐ ┌────────────────────────────┐
│ High-Precision Base Engine │ │ Multi-Unit Live Grid Matrix│
│ Result: 108.57144 km │ │ [m, ft, mi, yd, nm, au...] │
└────────────────────────────┘ └────────────────────────────┘
| Feature | Description |
|---|---|
| 🧮 Live Math Expression Parser | Type complex math expressions like (120 * 2.5) / 4, sin(pi/2), or 10^3 * 4.2 directly into any input field. |
| ⚡ Multi-Unit Live Matrix Grid | Converts your value to every single sibling unit in the category simultaneously in real-time. |
| 📐 Interactive Formula Breakdown | View the exact scientific formulas, multipliers, and intermediate calculations step-by-step. |
| 🌐 160+ Live Global Currencies | Real-time exchange rate sync with smart fallback caching for instant offline availability. |
🔍 Global Quick Search (Ctrl + K) |
Blazing-fast fuzzy search across 300+ units, symbols, abbreviations, and direct conversion pairs. |
| 🎨 Ultra-Modern Glassmorphic UI | Fully responsive dark and light modes with fluid animations and Tailwind CSS v4 styling. |
| 🧪 High-Precision Scientific Formatting | Standard decimal, scientific notation (1.24e+8), custom precision selector (up to 12 decimal places). |
| 🔒 100% Privacy-First & Offline Ready | Zero telemetry, zero external trackers, PWA manifest, and persistent local storage. |
| ⭐ Bookmarks & History Tracking | Pin frequently used conversion pairs and quickly revisit past conversions with timestamps. |
UNITFLOW supports over 300+ units categorized across scientific and real-world disciplines:
- Length & Distance: Meter, Kilometer, Centimeter, Millimeter, Nanometer, Mile, Yard, Foot, Inch, Nautical Mile, Light Year, Astronomical Unit (AU), Parsec, Angstrom, Furlong.
- Mass & Weight: Kilogram, Gram, Milligram, Microgram, Metric Ton, Pound (lb), Ounce (oz), Stone, Carat, Grain, Troy Ounce.
- Temperature: Celsius (°C), Fahrenheit (°F), Kelvin (K), Rankine (°R), Delisle, Newton, Réaumur, Rømer.
- Area: Square Meter, Square Kilometer, Square Mile, Square Yard, Square Foot, Square Inch, Hectare, Acre.
- Volume & Capacity: Liter, Milliliter, Cubic Meter, Gallon (US & UK), Quart, Pint, Cup, Fluid Ounce, Tablespoon, Teaspoon, Barrel.
- Time: Second, Millisecond, Microsecond, Nanosecond, Minute, Hour, Day, Week, Month, Year, Decade, Century.
-
Speed & Velocity: m/s, km/h, mph, Knot, Mach, Speed of Light (
$c$ ).
- Pressure: Pascal, Kilopascal, Megapascal, Bar, PSI, Atmosphere (atm), Torr, mmHg.
- Energy & Work: Joule, Kilojoule, Calorie, Kilocalorie, Watt-hour, Kilowatt-hour (kWh), Electronvolt (eV), BTU, Foot-pound.
- Power: Watt, Kilowatt, Megawatt, Horsepower (hp), Metric HP, Foot-pounds/min, BTU/hour.
- Force: Newton, Kilonewton, Dyne, Pound-force (lbf), Kilogram-force (kgf).
- Torque: Newton-meter (N·m), Pound-foot (lb-ft), Pound-inch (lb-in), Kilogram-meter.
- Angle: Degree, Radian, Gradian, Arcminute, Arcsecond, Revolution.
- Fuel Economy: MPG (US), MPG (UK), L/100km, km/L.
- Density: kg/m³, g/cm³, lb/ft³, lb/in³.
- Volumetric Flow Rate: m³/s, L/min, Gallons per minute (GPM), CFM.
- Digital Storage: Bit, Byte, Kilobyte (KB), Megabyte (MB), Gigabyte (GB), Terabyte (TB), Petabyte (PB), Kibibyte (KiB), Mebibyte (MiB), Gibibyte (GiB), Tebibyte (TiB).
- Data Transfer Rate: bps, Kbps, Mbps, Gbps, Tbps, B/s, KB/s, MB/s, GB/s.
- Electric Current: Ampere (A), Milliampere (mA), Microampere, Kiloampere.
- Voltage: Volt (V), Millivolt, Kilovolt, Megavolt.
- Resistance: Ohm (Ω), Milliohm, Kilohm, Megohm.
- Capacitance: Farad (F), Millifarad, Microfarad, Nanofarad, Picofarad.
- Frequency: Hertz (Hz), Kilohertz (kHz), Megahertz (MHz), Gigahertz (GHz), Terahertz, RPM.
- Electric Charge: Coulomb (C), Milliampere-hour (mAh), Ampere-hour (Ah).
- Culinary / Cooking: Cups, Spoons, Fluid Ounces, Pinches, Dashes, Drops.
- Typography: Point (pt), Pica (pc), Pixel (px @ 96 DPI), Millimeter, Em / Rem.
- Radiation Dose: Sievert (Sv), Millisievert, Rem, Gray (Gy), Rad.
- Radioactivity: Becquerel (Bq), Curie (Ci), Rutherford.
- Illuminance & Light: Lux (lx), Foot-candle (fc), Phot.
- Sound Level: Decibel (dB), Neper.
- Numeral Systems: Binary (BIN), Octal (OCT), Decimal (DEC), Hexadecimal (HEX).
- Live Currencies: USD, EUR, GBP, JPY, CAD, AUD, CHF, INR, CNY, BRL, and 150+ more.
- Node.js (version 18+ recommended)
npm,pnpm, oryarn
# 1. Clone the repository
git clone https://github.com/codexanjan/unitflow.git
# 2. Enter directory
cd unitflow
# 3. Install dependencies
npm install
# 4. Start the local Vite development server
npm run devVisit http://localhost:5173 to see UNITFLOW in action!
| Command | Action |
|---|---|
npm run dev |
Launch local development server with Hot Module Replacement (HMR) |
npm run build |
Compile TypeScript and produce production build in dist/ |
npm run preview |
Locally preview production build |
npm run lint |
Run ultra-fast Oxlint linter checks across all source files |
npm test |
Run complete unit test suite with Vitest |
npm run test:watch |
Run Vitest in interactive watch mode |
UNITFLOW uses a modular three-tier architecture:
src/
├── engine/ # Core conversion and computation layer
│ ├── converter.ts # High-precision base normalization and formula generator
│ ├── expressionParser.ts # Tokenizer, Shunting-Yard AST math evaluator
│ ├── formatter.ts # Scientific, decimal, and fractional output formatters
│ └── types.ts # Strictly typed unit, category, and conversion contracts
├── units/ # Complete unit registries & scientific constants
│ ├── basic.ts # Length, mass, temp, area, volume, time, speed
│ ├── physics.ts # Pressure, energy, power, force, torque, density
│ ├── electrical.ts # Current, voltage, resistance, capacitance, frequency
│ ├── data.ts # Storage and transfer rate (binary & decimal)
│ ├── lightSound.ts # Lux, foot-candles, decibels
│ └── specialized.ts # Typography, cooking, radiation, numeral systems
├── components/ # Reusable glassmorphic UI components
│ ├── converter/ # Primary converter card & live preview grid
│ ├── currency/ # Live currency converter with rate cache
│ ├── search/ # Global search modal (Ctrl+K)
│ ├── seo/ # Category hub, formula tables & trivia
│ └── layout/ # Navbar, footer, theme toggle
└── context/ # Global state (Favorites, History, Settings)
| Shortcut | Description |
|---|---|
Ctrl + K / Cmd + K |
Open global search modal across all units & categories |
Esc |
Close search modal or floating dialogs |
Enter |
Trigger calculation & add to history |
UNITFLOW is strictly tested with 100% test pass rate across core conversion mathematics, edge-case temperature offsets, numeral systems, math expression parsing, and currency fallbacks.
npm test ✓ src/__tests__/currency.test.ts (3 tests)
✓ src/__tests__/formatter.test.ts (6 tests)
✓ src/__tests__/expressionParser.test.ts (9 tests)
✓ src/__tests__/numeralSystems.test.ts (3 tests)
✓ src/__tests__/temperature.test.ts (5 tests)
✓ src/__tests__/engine.test.ts (12 tests)
Test Files 6 passed (6)
Tests 38 passed (38)
Contributions make the open-source community an inspiring place to learn, create, and build. Any contributions you make are greatly appreciated!
- Fork the Project
- Create your Feature Branch (
git checkout -b feat/AmazingFeature) - Commit your Changes (
git commit -m 'feat: Add some AmazingFeature') - Push to the Branch (
git push origin feat/AmazingFeature) - Open a Pull Request
See CONTRIBUTING.md for full guidelines.
Distributed under the MIT License. See LICENSE for more details.
Anjan Shetty
- GitHub: @codexanjan
- Project Link: https://github.com/codexanjan/unitflow
If you find UNITFLOW useful, please give it a ⭐️ on GitHub!
Made with ❤️ by Anjan Shetty