An embeddable crypto price ticker — live price + 24h change, auto-refreshing — backed by a small Go caching proxy over CoinGecko's free API.
The widget below is rendered by the same widget.js you would embed:
Drop one <script> tag onto any page:
<script src="https://YOUR-HOST/widget.js"
data-coins="bitcoin,ethereum"
data-currency="usd"
data-interval="30"></script>
All three data-* attributes are read at load time:
data-coins (comma-separated CoinGecko IDs, max 20, from the
allowlist), data-currency (e.g. usd,
eur), and data-interval (poll seconds).
| Method | Path | Response |
|---|---|---|
| GET | / | this page |
| GET | /widget.js | the embeddable widget script |
| GET | /api/rates?coins=¤cy= | snake_case rates envelope (HTTP 200) |
| GET | /healthz | ok |
| GET | /api/healthz | ok |
Rates are cached in-memory with a 30s TTL and served through a rate-limit resilient proxy. Data by CoinGecko.