Add new calculators and sync registry

This commit is contained in:
Codex
2026-03-07 09:44:27 +00:00
parent 6bea84bbed
commit 6ae2c38b61
2 changed files with 123 additions and 43 deletions

View File

@@ -130,7 +130,7 @@ export const calculators: CalculatorDef[] = [
{"slug": "micrograms-to-milligrams", "name": "Micrograms to Milligrams", "category": "weight", "type": "standard", "labels": {"in1": "Micrograms", "in2": "Milligrams"}, "factor": 0.001, "hidden": true},
{"slug": "micrometers-to-millimeters", "name": "Micrometers to Millimeters", "category": "length", "type": "standard", "labels": {"in1": "Micrometers", "in2": "Millimeters"}, "factor": 0.001},
{"slug": "milligrams-to-micrograms", "name": "Milligrams to Micrograms", "category": "weight", "type": "standard", "labels": {"in1": "Milligrams", "in2": "Micrograms"}, "factor": 1000.0},
{"slug": "milliliters-to-liters", "name": "Milliliters to Liters", "category": "volume", "type": "standard", "labels": {"in1": "Milliliters", "in2": "Liters"}, "factor": 0.001},
{"slug": "milliliters-to-liters", "name": "Milliliters to Liters", "category": "volume", "type": "standard", "labels": {"in1": "Milliliters", "in2": "Liters"}, "factor": 0.001, "hidden": true},
{"slug": "milliliters-to-fluid-ounces", "name": "Milliliters to Fluid Ounces", "category": "weight", "type": "standard", "labels": {"in1": "Milliliters", "in2": "Fluid Ounces"}, "factor": 0.033814, "hidden": true},
{"slug": "millimeters-to-centimeters", "name": "Millimeters to Centimeters", "category": "length", "type": "standard", "labels": {"in1": "Millimeters", "in2": "Centimeters"}, "factor": 0.1, "hidden": true},
{"slug": "millimeters-to-inches", "name": "Millimeters to Inches", "category": "length", "type": "standard", "labels": {"in1": "Millimeters", "in2": "Inches"}, "factor": 0.0393701},
@@ -293,7 +293,7 @@ export const calculators: CalculatorDef[] = [
{"slug": "joules-to-btu", "name": "Joules to BTU", "category": "energy", "type": "standard", "teaser": "Convert Joules to BTU instantly.", "labels": {"in1": "Joules", "in2": "BTU"}, "factor": 0.000947817},
{"slug": "joules-to-electron-volts", "name": "Joules to Electron-volts", "category": "energy", "type": "standard", "teaser": "Convert Joules to Electron-volts instantly.", "labels": {"in1": "Joules", "in2": "Electron-volts"}, "factor": 6.24151e+18},
{"slug": "joules-to-foot-pounds", "name": "Joules to Foot-pounds", "category": "weight", "type": "standard", "teaser": "Convert Joules to Foot-pounds instantly.", "labels": {"in1": "Joules", "in2": "Foot-pounds"}, "factor": 0.737562},
{"slug": "joules-to-kilowatt-hours", "name": "Joules to Kilowatt-hours", "category": "energy", "type": "standard", "teaser": "Convert Joules to Kilowatt-hours instantly.", "labels": {"in1": "Joules", "in2": "Kilowatt-hours"}, "factor": 2.77778e-07},
{"slug": "joules-to-kilowatt-hours", "name": "Joules to Kilowatt-hours", "category": "energy", "type": "standard", "teaser": "Convert Joules to Kilowatt-hours instantly.", "labels": {"in1": "Joules", "in2": "Kilowatt-hours"}, "factor": 2.77778e-07, "hidden": true},
{"slug": "cubic-feet-to-gallons", "name": "Cubic Feet to Gallons", "category": "length", "type": "standard", "teaser": "If a cistern volume reads three cubic feet, how many US gallons does that store?", "labels": {"in1": "Cubic Feet", "in2": "Gallons"}, "factor": 7.48052},
{"slug": "cubic-meters-to-cubic-feet", "name": "Cubic Meters to Cubic Feet", "category": "length", "type": "standard", "teaser": "A freight crate is two cubic meters; how many cubic feet of cargo space is that?", "labels": {"in1": "Cubic Meters", "in2": "Cubic Feet"}, "factor": 35.3147},
{"slug": "foot-candles-to-lux", "name": "Foot-candles to Lux", "category": "light", "type": "standard", "teaser": "Gallery staff want to match 150 foot-candles; what does that translate to in lux?", "labels": {"in1": "Foot-candles", "in2": "Lux"}, "factor": 10.7639},
@@ -334,6 +334,46 @@ export const calculators: CalculatorDef[] = [
{"slug": "grams-to-scruples", "name": "Grams to Scruples", "category": "weight", "type": "standard", "teaser": "A pharmacy formula needs 10 grams; what is that in scruples?", "labels": {"in1": "Grams", "in2": "Scruples"}, "factor": 0.771605},
{"slug": "grams-to-tolas", "name": "Grams to Tolas", "category": "weight", "type": "standard", "teaser": "A gold bar weighs 5 grams; how many tolas is that mass?", "labels": {"in1": "Grams", "in2": "Tolas"}, "factor": 0.085735},
{"slug": "gray-to-sievert", "name": "Gray to Sievert", "category": "radiation", "type": "standard", "teaser": "A gamma exposure is 3 gray; how many sieverts is that for gamma/beta?", "labels": {"in1": "Gray", "in2": "Sievert"}},
{"slug": "fahrenheit-to-newton", "name": "Fahrenheit to Newton", "category": "weight", "type": "standard", "teaser": "Convert Fahrenheit to Newtons on the scale where 0\u202f\u00b0C equals 0\u202f\u00b0N and 100\u202f\u00b0C equals 33\u202f\u00b0N.", "labels": {"in1": "Fahrenheit", "in2": "Newton"}, "factor": 0.183333, "offset": -5.867},
{"slug": "fahrenheit-to-rankine", "name": "Fahrenheit to Rankine", "category": "temperature", "type": "standard", "teaser": "Convert Fahrenheit to the absolute Rankine scale.", "labels": {"in1": "Fahrenheit", "in2": "Rankine"}, "offset": 459.67},
{"slug": "farads-to-microfarads", "name": "Farads to Microfarads", "category": "radiation", "type": "standard", "teaser": "Convert farads to microfarads for capacitor ratings.", "labels": {"in1": "Farads", "in2": "Microfarads"}, "factor": 1000000.0},
{"slug": "feet-of-seawater-to-psi", "name": "Feet of seawater to PSI", "category": "length", "type": "standard", "teaser": "A pressure gauge shows depth in feet of seawater; convert that to PSI.", "labels": {"in1": "Feet of seawater", "in2": "PSI"}, "factor": 0.444975},
{"slug": "kilometers-to-yards", "name": "Kilometers to Yards", "category": "length", "type": "standard", "teaser": "Convert a full kilometer into yards.", "labels": {"in1": "Kilometers", "in2": "Yards"}, "factor": 1093.613298},
{"slug": "kilonewtons-to-newtons", "name": "Kilonewtons to Newtons", "category": "weight", "type": "standard", "teaser": "Convert kilonewtons into newtons.", "labels": {"in1": "Kilonewtons", "in2": "Newtons"}, "factor": 1000.0},
{"slug": "kilopascals-to-inches-of-mercury", "name": "Kilopascals to Inches of Mercury", "category": "length", "type": "standard", "teaser": "Convert pressure from kPa to inHg (standard gravity).", "labels": {"in1": "Kilopascals", "in2": "Inches of Mercury"}, "factor": 0.2952998},
{"slug": "kilowatt-hours-to-btu", "name": "Kilowatt-hours to BTU", "category": "energy", "type": "standard", "teaser": "Convert electrical energy in kWh to BTU.", "labels": {"in1": "Kilowatt-hours", "in2": "BTU"}, "factor": 3412.142},
{"slug": "kilowatt-hours-to-joules", "name": "Kilowatt-hours to Joules", "category": "energy", "type": "standard", "teaser": "Convert kWh to joules.", "labels": {"in1": "Kilowatt-hours", "in2": "Joules"}, "factor": 3600000.0},
{"slug": "kilowatt-hours-to-kilocalories", "name": "Kilowatt-hours to Kilocalories", "category": "energy", "type": "standard", "teaser": "Convert kWh to food calories.", "labels": {"in1": "Kilowatt-hours", "in2": "Kilocalories"}, "factor": 860.42065},
{"slug": "kilowatt-hours-to-therms", "name": "Kilowatt-hours to Therms", "category": "energy", "type": "standard", "teaser": "Convert kWh to therms (US natural gas).", "labels": {"in1": "Kilowatt-hours", "in2": "Therms"}, "factor": 0.034121},
{"slug": "kilowatts-to-btuhour", "name": "Kilowatts to BTU/hour", "category": "energy", "type": "standard", "teaser": "Convert kilowatts to BTU per hour.", "labels": {"in1": "Kilowatts", "in2": "BTU/hour"}, "factor": 3412.142},
{"slug": "kilowatts-to-megawatts", "name": "Kilowatts to Megawatts", "category": "power", "type": "standard", "teaser": "Convert power from kilowatts to megawatts.", "labels": {"in1": "Kilowatts", "in2": "Megawatts"}, "factor": 0.001},
{"slug": "kilowatts-to-watts", "name": "Kilowatts to Watts", "category": "power", "type": "standard", "teaser": "Convert kilowatts to watts.", "labels": {"in1": "Kilowatts", "in2": "Watts"}, "factor": 1000.0},
{"slug": "km-per-kwh-to-miles-per-kwh", "name": "Kilometers per kWh to Miles per kWh", "category": "length", "type": "standard", "teaser": "Convert energy efficiency from km/kWh to mi/kWh.", "labels": {"in1": "Kilometers per kWh", "in2": "Miles per kWh"}, "factor": 0.621371},
{"slug": "kilometers-per-second-to-speed-of-light", "name": "Kilometers per Second to Speed of Light", "category": "length", "type": "standard", "teaser": "Express a speed in kilometers per second as a fraction of c (299,792.458 km/s).", "labels": {"in1": "Kilometers per Second", "in2": "Speed of Light"}, "factor": 3.33564095198152e-06},
{"slug": "knots-to-feet-per-second", "name": "Knots to Feet per Second", "category": "length", "type": "standard", "teaser": "Convert a nautical mile per hour into feet per second.", "labels": {"in1": "Knots", "in2": "Feet per Second"}, "factor": 1.6878098376},
{"slug": "knots-to-kilometers-per-hour", "name": "Knots to Kilometers per Hour", "category": "length", "type": "standard", "teaser": "Convert knots to kilometers per hour.", "labels": {"in1": "Knots", "in2": "Kilometers per Hour"}, "factor": 1.852},
{"slug": "knots-to-meters-per-second", "name": "Knots to Meters per Second", "category": "length", "type": "standard", "teaser": "Convert knots to meters per second.", "labels": {"in1": "Knots", "in2": "Meters per Second"}, "factor": 0.5144444444},
{"slug": "kpa-to-atmosphere", "name": "kPa to Atmosphere", "category": "pressure", "type": "standard", "teaser": "Convert kilopascals to atmospheres.", "labels": {"in1": "kPa", "in2": "Atmosphere"}, "factor": 0.00986923},
{"slug": "kpa-to-bar", "name": "kPa to Bar", "category": "pressure", "type": "standard", "teaser": "Convert kilopascals to bar.", "labels": {"in1": "kPa", "in2": "Bar"}, "factor": 0.01},
{"slug": "kpa-to-pascal", "name": "kPa to Pascal", "category": "pressure", "type": "standard", "teaser": "Convert kilopascals to pascals.", "labels": {"in1": "kPa", "in2": "Pascal"}, "factor": 1000.0},
{"slug": "kpa-to-psi", "name": "kPa to PSI", "category": "pressure", "type": "standard", "teaser": "Convert kilopascals to pounds per square inch.", "labels": {"in1": "kPa", "in2": "PSI"}, "factor": 0.1450377377},
{"slug": "kva-to-kilowatts", "name": "kVA to Kilowatts", "category": "power", "type": "standard", "teaser": "Convert apparent power to real power assuming unity power factor.", "labels": {"in1": "kVA", "in2": "Kilowatts"}},
{"slug": "leagues-per-hour-to-kmh", "name": "Leagues per Hour to Kilometers per Hour", "category": "length", "type": "standard", "teaser": "Convert leagues per hour into kilometers per hour.", "labels": {"in1": "Leagues per Hour", "in2": "Kilometers per Hour"}, "factor": 4.82803},
{"slug": "leagues-to-kilometers", "name": "Leagues to Kilometers", "category": "length", "type": "standard", "teaser": "Convert leagues to kilometers.", "labels": {"in1": "Leagues", "in2": "Kilometers"}, "factor": 4.82803},
{"slug": "leagues-to-miles", "name": "Leagues to Miles", "category": "length", "type": "standard", "teaser": "Convert leagues to miles.", "labels": {"in1": "Leagues", "in2": "Miles"}, "factor": 3.0},
{"slug": "light-years-to-kilometers", "name": "Light Years to Kilometers", "category": "length", "type": "standard", "teaser": "Convert light years to kilometers.", "labels": {"in1": "Light Years", "in2": "Kilometers"}, "factor": 9460730472580.8},
{"slug": "light-years-to-miles", "name": "Light Years to Miles", "category": "length", "type": "standard", "teaser": "Convert light years to miles.", "labels": {"in1": "Light Years", "in2": "Miles"}, "factor": 5878625373180.8},
{"slug": "liters-to-imperial-gallons", "name": "Liters to Imperial gallons", "category": "volume", "type": "standard", "teaser": "Convert liters to imperial gallons.", "labels": {"in1": "Liters", "in2": "Imperial gallons"}, "factor": 0.219969158, "hidden": true},
{"slug": "liters-to-milliliters", "name": "Liters to Milliliters", "category": "volume", "type": "standard", "teaser": "Convert liters to milliliters.", "labels": {"in1": "Liters", "in2": "Milliliters"}, "factor": 1000.0},
{"slug": "long-tons-to-kilograms", "name": "Long Tons to Kilograms", "category": "weight", "type": "standard", "teaser": "Convert UK long tons to kilograms.", "labels": {"in1": "Long Tons", "in2": "Kilograms"}, "factor": 1016.0469088},
{"slug": "long-tons-to-pounds", "name": "Long Tons to Pounds", "category": "weight", "type": "standard", "teaser": "Convert long tons to pounds.", "labels": {"in1": "Long Tons", "in2": "Pounds"}, "factor": 2240.0},
{"slug": "long-tons-to-short-tons", "name": "Long Tons to Short Tons", "category": "weight", "type": "standard", "teaser": "Convert long tons to short tons.", "labels": {"in1": "Long Tons", "in2": "Short Tons"}, "factor": 1.12},
{"slug": "lux-to-foot-candles", "name": "Lux to Foot-candles", "category": "light", "type": "standard", "teaser": "Convert illuminance from lux to foot-candles.", "labels": {"in1": "Lux", "in2": "Foot-candles"}, "factor": 0.09290304, "hidden": true},
{"slug": "mach-to-feet-per-second", "name": "Mach to Feet per Second", "category": "length", "type": "standard", "teaser": "Convert Mach number to feet per second (approximate sea-level speed of sound).", "labels": {"in1": "Mach", "in2": "Feet per Second"}, "factor": 1116.447},
{"slug": "mach-to-kilometers-per-hour", "name": "Mach to Kilometers per Hour", "category": "length", "type": "standard", "teaser": "Convert Mach number to km/h.", "labels": {"in1": "Mach", "in2": "Kilometers per Hour"}, "factor": 1225.044},
{"slug": "mach-to-knots", "name": "Mach to Knots", "category": "speed", "type": "standard", "teaser": "Convert Mach number to knots.", "labels": {"in1": "Mach", "in2": "Knots"}, "factor": 661.47},
{"slug": "mach-to-meters-per-second", "name": "Mach to Meters per Second", "category": "length", "type": "standard", "teaser": "Convert Mach number to meters per second.", "labels": {"in1": "Mach", "in2": "Meters per Second"}, "factor": 340.29},
{"slug": "mach-to-miles-per-hour", "name": "Mach to Miles per Hour", "category": "length", "type": "standard", "teaser": "Convert Mach number to miles per hour.", "labels": {"in1": "Mach", "in2": "Miles per Hour"}, "factor": 761.207},
];