Drop-in price ticker and converter. Zero dependencies, zero backend. One script tag.
Real-time BTC price from Binance, Coinbase, and Kraken. Click a currency to switch.
Convert between BTC, sats, and fiat. Prices update automatically without interrupting your input.
<!-- Add the script -->
<script src="https://cdn.jsdelivr.net/npm/alke-puldist/alke-pulse.min.js"></script>
<!-- Use the widgets -->
<alke-btc-price currencies="USD,NGN,GHS,KES,ZAR" show-sats></alke-btc-price>
<alke-btc-converter show-sats></alke-btc-converter>
# Install
npm install alke-pulse
# Import (auto-registers both components)
import 'alke-pulse';
<!-- No custom elements needed — just classes + data attributes -->
<script src="https://cdn.jsdelivr.net/npm/alke-puldist/alke-pulse.min.js"></script>
<div class="btc-ticker"
data-currencies="USD,NGN,GHS"
data-show-sats></div>
<div class="alke-converter"
data-default-from="NGN"
data-default-to="BTC"></div>
Customize via HTML attributes. All optional.
<alke-btc-price>| Attribute | Default |
|---|---|
| currency | USD |
| currencies | USD,EUR,GBP |
| show-sats | false |
| theme | light |
| refresh-interval | 60000 |
<alke-btc-converter>| Attribute | Default |
|---|---|
| default-from | BTC |
| default-to | USD |
| currencies | USD,EUR,GBP |
| show-sats | false |
| theme | light |
| refresh-interval | 60000 |
Aggregates BTC/USD from Binance, Coinbase, and Kraken. Takes the median to filter outliers.
Multiple widgets on one page share a single polling loop. One set of API calls, no matter how many widgets.
Styles are fully isolated. Won't break your site, your site won't break the widgets.
Any ISO 4217 code works. NGN, GHS, KES, ZAR, UGX, TZS, EUR — just pass the code.
Pauses polling when the tab is hidden. Resumes instantly when you switch back.
Light and dark themes built in. Override any CSS variable for custom branding.
Use any valid ISO 4217 currency code. If the forex API has a rate for it, it works. Defaults shown below, but you can use UGX, TZS, RWF, ETB, XOF, EGP, MAD, JPY — any of the 150+ currencies the API supports.
Official CBN rate. Parallel market rates may differ.
Bank of Ghana reference rate.
Central Bank of Kenya rate.
South African Reserve Bank rate.
Base currency for all conversions.
EUR, GBP, UGX, TZS, RWF, ETB, XOF, XAF, EGP, MAD, JPY, INR, BRL — just pass the code.