Currency Converter.
Live exchange rates for 30+ currencies with a 30-day trend sparkline.
rates unavailable — check connection
Rates from Frankfurter (ECB). Converted locally — fetch again on currency change.
how it works
- Pick an amount and two currencies — THB and USD stay at the top for Thailand.
- The converter fetches live rates from
api.frankfurter.app(ECB) and recomputes as you type. - Swap direction with the button or copy the result.
- The sparkline pulls the last 30 days (
YYYY-MM-DD..YYYY-MM-DD?from=X&to=Y) and draws a 280×64 accent polyline.
resilient by design
Currency names are cached in localStorage with the fetch date, and the last good rate stays on screen if you go offline — you'll see an inline rates unavailable — check connection instead of a blank. Conversions are plain arithmetic in the tab: THB-first ordering is enforced client-side so the Thai audience never hunts for baht.
The trend is deliberately tiny and unobtrusive: a single SVG polyline with stroke="var(--accent)"and vector-effect="non-scaling-stroke", no chart library. If the history fetch fails, the sparkline stays hidden but your last conversion keeps working.