Take Dogecoin at your counter. Type the sale, show the QR code, see the green check. Nothing to sign up for.
Live demo · Documentation · All DogeJS projects
- Turns a tablet or phone into a till: type the sale, tap Charge, and the customer scans the QR code.
- Shows a green check when the payment arrives, if it can see the chain; otherwise you mark the sale as paid by hand.
- Tells simultaneous sales apart with a tiny tag in the last digits of the amount (1 to 99 koinu), so two customers never get mixed up.
- Shows prices in your currency (USD, CAD, EUR, GBP, AUD) or in DOGE only, and keeps daily totals with a CSV export.
- Needs no account and no fees: payments go straight to your own address, and your address and sales stay in this browser.
Take a demo sale on the live page: https://dogejs.com/shop/
To run your own copy, build the page script and serve it with its HTML and CSS from your own static host:
npm install && npm run build # writes dist/shop.jsSet up once: your address, your currency and a shop name. It stays in this browser.
Charge: the customer scans the code, and the last digits of the amount identify the sale.
Nothing is on npm yet. Clone the repository and build:
git clone https://github.com/DogeJS-Dev/shop-mode.git
cd shop-mode
npm install # also installs core and backends from their git tags
npm run build # dist/shop.js (the page) and dist/index.mjs (the helper library)dist/shop.js is a self-contained script. The helper library has no DOM at import time, so it also runs in Node:
import { fiatToKoinu, formatDogeText } from '@dogejs/shop';
// 12.50 US dollars (1250 cents) at 0.20 US dollars per DOGE. The price is an integer in units of 1e-8.
const koinu = fiatToKoinu(1250n, 20_000_000n);
console.log(koinu, formatDogeText(koinu)); // 6250000000n 62.50Money is always integer koinu (bigint) and fiat amounts are integer cents.
Your settings live in the browser's own storage. The page builds a dogecoin: payment URI for the amount, draws it as a QR code, and, if a payment-detection server is set, watches your address through backends and matches incoming payments to sales by exact amount. The page can fetch a fiat exchange rate from CoinGecko and offers a short list of community servers and, for main network addresses, the free public service; all of these are visible in Settings. A guard refuses private keys and recovery phrases if someone pastes one in.
The shared source it builds from (rates, server lists, storage, QR code) is vendored in shared/; see shared/README.md.
- Built on core and backends.
- Shares its
shared/source with payment-links (the canonical copy) and watch. - For a plain web shop, use the pay-button; for one-off invoices, payment-links.
Version 0.8.1. It is not published to npm yet. It has had no external security review. It is tested with unit tests and in a headless browser against fake servers. It has not been used with a real Esplora or electrs-doge server (the community servers were unreachable during development), and nothing has been run against the real Dogecoin network. Without a server the page cannot see payments and you mark sales as paid by hand. The free public service it can use for main network addresses (BlockCypher) is free and public, not run by DogeJS, and was built from captured responses; it has never been used with a real payment.
Bug reports, ideas and pull requests are welcome. Read the contributing guide first: small, tested, explained.
npm install
npm run build
npm run typecheck
npm testReport a security problem privately to hello@dogejs.com, never in a public issue. See SECURITY.md.
The maintainers keep one combined development workspace for all DogeJS projects and publish each project from it as a repository of its own. An accepted pull request is applied there and appears here with the next release.
MIT, see LICENSE. Bundled third-party code, where there is any, is listed in THIRD_PARTY_LICENSES.



