Coffer
Accept Monero tips. Needs a separate Linux wallet host and a small edit to your site's code. Node-hosted sites only for now.
@dwightsabeast.tngl.sh/cofferOr open Registry in your EmDash admin and search for this name.
Overview
Not ready yet
Coffer 1.0.0 installs from the registry, but its wallet host can't connect to a copy installed this way, so it can't take tips yet. A fixed release is on its way; please wait for it before installing.
What you'll need
- EmDash 1.5.0 or later, hosted on Node.js. Sites hosted on Cloudflare aren't supported yet.
- A separate, always-on Linux machine with systemd, such as a small VPS or a home server. The wallet runs there, never on your site's server.
- Your shop wallet's address and view key. Never the spend key.
- Access to your site's code, to add the pay page and the tip button, then redeploy.
- About 15 minutes, ending with a test tip to your own wallet.
Why a separate machine
Your site never holds a wallet key. A small program on the wallet host watches your wallet with its view key and sends signed updates to the site. If your site is compromised, the attacker can't spend your Monero or look into your wallet. The view key stays on the wallet host, and even there it can only see incoming payments, never spend them.
An option to run the wallet host on the same server, for an easier setup, is planned for an upcoming release.
Permissions
Plugins get only the capabilities they declare and you approve. Your EmDash admin lists these again before anything installs.
Security
What Coffer can and can't reach
- Your site holds no wallet key. A break-in on the site can't spend your Monero or read your wallet.
- The wallet host holds a view key only. It sees incoming payments but can't spend them.
- The spend key stays in your wallet app. Coffer never asks for it.
What we tested
Before the release, we attacked Coffer with:
- forged, changed and replayed payment reports
- guessed pairing codes and spam tips
- hostile notes, a dishonest Monero node and changed downloads
No finding rated Critical or High is open. On every change, a named test checks each protection.
Known limits
- A thief with the wallet host's signing key can't spend. While your wallet host runs, Coffer refuses payment addresses that aren't yours. If the thief also stops your wallet host, new tips can go to the thief until it runs again or you connect a new one. Health turns red after 5 minutes of silence.
- Spam. One sender can fill the 40 open tips and block new ones for up to 30 minutes, unless your proxy limits them. They can't take money.
- On a Node-hosted site, one stuck plugin request can delay every plugin request for up to 30 seconds.
- The install command checks a checksum, not a signature, so the first install trusts the download site. The guide shows a signature check by hand. The wallet host checks each later update's signature.
- With a remote node, the second nodes that check it learn which blocks hold your payments.
- Checked by hand or in the code, not by an automated test:
- EmDash's refusals (other hosts, undeclared storage, non-admin users)
- the random source of pay links
- that Coffer's privacy headers stay on its own pages
- Not in this release: orders, email and refund addresses.
Full report, with each claim's test: https://github.com/dwightsabeast/coffer/blob/coffer%401.0.0/docs/security-report.md
Report a problem privately: https://github.com/dwightsabeast/coffer/security/advisories/new
Installation
Install Coffer from the plugin registry, then open Monero payments in your admin. The Setup checklist covers the rest: press Connect wallet host and run the one command it shows on a separate Linux machine (it asks for your shop wallet's address and view key; never the spend key). Setup ends with a test tip to your own wallet. The command downloads from https://get.coffer.party.
Add the pay page to your theme:
npm install @cofferhq/astrosrc/pages/pay/coffer/[token].astro:--- import PayPage from "@cofferhq/astro/PayPage.astro"; import { preparePayPage } from "@cofferhq/astro/page"; const pay = await preparePayPage(Astro, Astro.params.token); --- <PayPage pay={pay} />The page sets its own privacy headers and loads nothing from other sites. Restyle it with the
--coffer-*CSS custom properties, or your own stylesheet:<link slot="head" rel="stylesheet" href="/your.css">inside<PayPage>.Add the tip button. Required: tips are this release's only payment mode. Create
src/pages/pay/coffer/tip.ts:import { tipEndpoint } from "@cofferhq/astro/tip"; export const POST = tipEndpoint();Then place the button, e.g. in an entry template:
--- import TipButton from "@cofferhq/astro/TipButton.astro"; --- <TipButton collection="posts" id={entry.data.id} />No JavaScript. Tips appear under Tips on the Monero payments page.
If your site is behind a login or access rules, let /_emdash/api/plugins/coffer/* through without one, and don't
add an Origin or Authorization header to those requests: the wallet host and pay pages call them.
The full install guide (wallet host needs, proxies, limits, installing by hand): https://github.com/dwightsabeast/coffer/blob/coffer%401.0.0/docs/install.md
Keep exploring
More plugins like Coffer
Browse by keyword, or see everything @dwightsabeast.tngl.sh publishes.