cashubtc/cashu.me
À propos
Cashu wallet PWA
Systèmes et infrastructureWhat you can do
- Send & receive ecash — create, scan, and redeem Cashu tokens, including animated QR codes for large tokens
- Lightning payments — pay and create BOLT11 invoices, with BOLT12 offer support
- On-chain — deposit and withdraw on-chain bitcoin where supported by the mint
- Multi-mint — connect to any number of mints, with mint discovery, community ratings, and mint audit insights
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalAbout
Cashu.me is a progressive web app (PWA) wallet for Cashu — an open-source Chaumian ecash protocol. It lets you send and receive funds instantly and privately as ecash that only you control.
The wallet runs entirely on your device: keys and tokens are stored locally in your browser's IndexedDB. You can install it as an app or self-host it with Docker.
Features
- Send & receive ecash — create, scan, and redeem Cashu tokens, including animated QR codes for large tokens
- Lightning payments — pay and create BOLT11 invoices, with BOLT12 offer support
- On-chain — deposit and withdraw on-chain bitcoin where supported by the mint
- Multi-mint — connect to any number of mints, with mint discovery, community ratings, and mint audit insights
- Multinut payments — pay a single invoice with funds split across multiple mints (NUT-15)
- Seed phrase backup — restore your wallet deterministically from a 12-word seed phrase
- Nostr integration — encrypted wallet backups on Nostr (NIP-60), Nostr Wallet Connect (NWC), and npub.cash Lightning addresses
- P2PK — lock ecash tokens to a public key so only the intended recipient can spend them
- Payment requests — request payments from other wallets
- Private by design — your proofs never leave your device
- Internationalized — available in 14 languages
- Runs everywhere — PWA, Android & iOS (Capacitor), desktop (Electron), and a browser extension
Quick start with Docker
The fastest way to run Cashu.me yourself:
git clone https://github.com/cashubtc/cashu.me.git
cd cashu.me
docker compose up -d
Access the wallet at http://localhost:3000, or serve it behind a reverse proxy (see Self-hosting).
Development
Requirements: Node.js >= 22.4 and npm.
npm install
npm run dev
Common commands
| Command | Description |
|---|---|
npm run dev |
Start the dev server (hot reloading, error reporting) |
npm run build:pwa |
Production PWA build, output in dist/pwa |
npm run build |
SPA production build |
npm run build:electron |
Desktop app build |
npm test |
Run unit tests with Vitest (watch mode) |
npm run test:ci |
Run unit tests once (CI mode) |
npm run test:e2e |
End-to-end tests: boots local test mints in Docker, runs Playwright |
npm run lint |
Lint with ESLint |
npm run format |
Format all files with Prettier |
npm run checkformat |
Check Prettier formatting without writing |
npm run i18n:check |
Verify non-English translations are in sync with the English source |
Testing
Unit tests use Vitest. To run a single test file:
npx vitest src/path/to/test.ts
End-to-end tests use Playwright against a local test stack (two CDK mints with a Lightning backend) started via Docker Compose:
# Full run: brings the stack up, runs the tests, tears it down
npm run test:e2e
# Or manage the stack yourself and run Playwright directly
npm run test:e2e:stack:up
npm run test:e2e:playwright
npm run test:e2e:stack:down
Mobile & desktop
Cashu.me ships as native apps via Capacitor (Android & iOS) and Electron (desktop).
# Build the web assets, then sync them into the native projects
npm run build:pwa
npx cap copy
npx cap sync
# Open the native projects
npx cap open android
npx cap open ios
Regenerate app icons and splash screens after changing icon.png:
npx capacitor-assets generate
For the desktop app: make electron starts an Electron dev build, npm run build:electron produces a production build.
Project structure
src/
components/ Vue components (dialogs, mint management, QR, ...)
pages/ Route pages (wallet, restore, mint details, settings)
stores/ Pinia stores — the core business logic (wallet, mints, proofs, ...)
boot/ Quasar boot files (app initialization)
i18n/ Translations (en-US is the source of truth)
js/ Shared helpers (notifications, utilities)
src-pwa/ Service worker & PWA manifest
src-electron/ Electron main/preload scripts
test/e2e/ Playwright e2e tests and Docker test stack
See AGENTS.md for architecture details and coding conventions.
Self-hosting behind a reverse proxy
The app is a single-page application using Vue Router in history mode, so your web server needs a fallback to index.html to allow page refreshes. It should also send proper headers for the service worker. Example Caddyfile:
# CORS snippet by https://kalnytskyi.com/posts/setup-cors-caddy-2/
(cors) {
@cors_preflight method OPTIONS
@cors header Origin {args.0}
handle @cors_preflight {
header Access-Control-Allow-Origin "{args.0}"
header Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE"
header Access-Control-Allow-Headers "Content-Type"
header Access-Control-Max-Age "3600"
respond "" 204
}
handle @cors {
header Access-Control-Allow-Origin "{args.0}"
header Access-Control-Expose-Headers "Link"
}
}
host.com {
import cors *
encode gzip
header /service-worker.js {
Service-Worker-Allowed "/"
Cache-Control "no-cache"
}
# SPA root
root * /usr/share/caddy/cashu.me/
# quasar vue router fallback history mode
try_files {path} /index.html
file_server
}
Background: Vue Router history mode.
Contributing
Contributions are welcome! Before opening a pull request:
- Run
npm run formatandnpm run lint. - Make sure
npm run test:cipasses. - If you touched UI text, update translations and run
npm run i18n:check.
Translations live in src/i18n/. English (en-US) is the source of truth — the i18n:check script verifies that other languages stay in sync.
Security
To report a vulnerability, please email [email protected] — see SECURITY.md.
License
MIT © Cashu
Explorer des projets similaires
Chargement…