Skip to content

About

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.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RateBridge 💱

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


Features

  • 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

Usage

  1. Visit https://masarusz.github.io/RateBridge (or open index.html locally)
  2. The date defaults to today; change it to see a historical rate
  3. Type an amount in the left box (default: 1 USD)
  4. Read the converted value on the right
  5. Press ⇅ to swap the two currencies

Technical notes

  • 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+currency to avoid redundant requests within a session
  • Out-of-order network responses are guarded with a request sequence counter

Development

# No install needed — just open the file
open index.html

Files:

index.html   # App shell
style.css    # All styles (CSS variables, responsive, light/dark)
script.js    # App logic (fetch, convert, swap)

Change Log

v1.0.9 — 2026-11-18

  • Header: replace the emoji next to the app name with the app icon (icons/app-icon.svg, rounded corners, decorative alt="")

v1.0.8 — 2026-11-18

  • Replace the emoji favicon with the app icon: SVG favicon, 32×32 PNG fallback, and a 180×180 apple-touch-icon for iOS home screens

v1.0.7 — 2026-06-28

  • 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

v1.0.6 — 2026-06-28

  • 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

v1.0.5 — 2026-06-28

  • Fix: add version query strings to style.css / script.js so browsers fetch fresh assets after each release instead of serving stale cached copies (caused new HTML to run against old JS)

v1.0.4 — 2026-06-28

  • Change: default currency direction is now USD → JPY (was JPY → USD)

v1.0.3 — 2026-06-28

  • Fix: date field overflow on iOS Safari — the native date control ignores box-sizing and adds its padding outside width:100%; stripping -webkit-appearance makes it honor border-box so the box now fits its container (the v1.0.2 min-width:0 change was insufficient)

v1.0.2 — 2026-06-28

  • Fix: date field no longer overflows its box on iOS — added min-width: 0 so the native date control shrinks to its container instead of extending past the right edge

v1.0.1 — 2026-06-28

  • 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 max attribute

v1.0.0 — 2026-06-28

  • 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

About

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.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages