A tiny JPY ⇄ USD currency converter for any date. Pick a date, type an amount, and see the exchange — no sign-up, no server, no build step.
🌐 Live: https://masarusz.github.io/RateBridge
- Date-based rates — pick any date (default: today) and see the historical exchange rate for that day
- Live recalculation — the result updates as you change the date or the amount
- One-click swap — flip JPY ⇄ USD with a single button; the entered amount is kept and re-converted
- Honest dates — the European Central Bank publishes no rates on weekends/holidays, so RateBridge shows the actual date a rate is from when it differs from the one you picked
- Responsive — works on desktop and smartphone
- No dependencies — pure HTML / CSS / JavaScript, no API key, no tracking
- Light & dark — follows your system colour scheme
- Visit https://masarusz.github.io/RateBridge (or open
index.htmllocally) - The date defaults to today; change it to see a historical rate
- Type an amount in the left box (default: 1 USD)
- Read the converted value on the right
- Press ⇅ to swap the two currencies
- Exchange rates from the Frankfurter API (European Central Bank reference rates), available back to 1999
- Rates are CORS-enabled and require no API key, so the whole app runs client-side
- The ECB publishes one rate per business day; requests for weekends, holidays, or a date before today's publication fall back to the most recent prior business day (shown in the status line)
- Rates are cached in memory per
date+currencyto avoid redundant requests within a session - Out-of-order network responses are guarded with a request sequence counter
# No install needed — just open the file
open index.htmlFiles:
index.html # App shell
style.css # All styles (CSS variables, responsive, light/dark)
script.js # App logic (fetch, convert, swap)
- Header: replace the emoji next to the app name with the app icon (
icons/app-icon.svg, rounded corners, decorativealt="")
- Replace the emoji favicon with the app icon: SVG favicon, 32×32 PNG fallback, and a 180×180
apple-touch-iconfor iOS home screens
- UI: currency labels are now colour-coded (USD green, JPY red) for better visibility; the colour follows the currency, not the side, so it stays consistent after a swap
- Fix: long conversion results now auto-shrink their font to stay on a single line (down to a readable minimum) instead of wrapping to two lines
- Fix: add version query strings to
style.css/script.jsso browsers fetch fresh assets after each release instead of serving stale cached copies (caused new HTML to run against old JS)
- Change: default currency direction is now USD → JPY (was JPY → USD)
- Fix: date field overflow on iOS Safari — the native date control ignores
box-sizingand adds its padding outsidewidth:100%; stripping-webkit-appearancemakes it honor border-box so the box now fits its container (the v1.0.2min-width:0change was insufficient)
- Fix: date field no longer overflows its box on iOS — added
min-width: 0so the native date control shrinks to its container instead of extending past the right edge
- Fix: date value now left-aligned on iOS Safari (was centered) via
::-webkit-date-and-time-value - Fix: future dates are now clamped to today in JS — the native mobile date picker didn't always enforce the
maxattribute
- Initial release
- Date-based JPY ⇄ USD conversion via Frankfurter / ECB
- Live recalculation on date and amount changes
- One-click currency swap (keeps the entered amount)
- Effective-date display for non-business-day requests
- Responsive layout with light/dark support