Meet your SPirit at spirits.boo · Use in your app · Documentation
SPirits turns a Bitcoin Silent Payment address into a familiar little ghost. Create an avatar and a payment QR in your browser, or add both to your app.
- Open spirits.boo and paste a Silent Payment address from your wallet, or choose Try an example to look around.
- View your SPirit, or switch to Payment QR to put your full address and matching ghost in a QR.
- Download an SVG for scalable artwork or a PNG for sharing.
Everything is generated locally in your browser. Your address isn't uploaded.
Your address's scan key determines the ghost's shape, expression, colours and signature accessory. Wallet labels that share that key keep the same character and change its badge and trim. The character stays the same at every image size and export format.
Render self-contained SVGs in Node 24 or a modern browser. The core includes the artwork and needs no network, DOM or canvas. The separate QR package adds the matching ghost to a standard payment QR.
npm install @remcoros/spirits@0.1.0 @remcoros/spirits-qr@0.1.0import { createSpirit } from '@remcoros/spirits';
import { createSpiritQr } from '@remcoros/spirits-qr';
const address = 'sp1q…'; // Replace with your complete Silent Payment address.
const { svg } = createSpirit(address, { size: 512 });
const qr = createSpiritQr(address);svg and qr.svg are SVG strings. Install only @remcoros/spirits if you do not need QRs.
SPirits is experimental, and the artwork may change between versions. Pin a package version if you need the same images over time.
The integration guide covers browser PNG export, standalone modules and links that open an address in the generator. See the core API and QR API for more options.
Requires Node 24 and npm.
npm ci
npm run build:lib
npm run devOpen the generator or the lab. The lab lets you inspect addresses, compare characters and explore label families.
Rebuild the libraries after changing their source. The dev site imports the built libraries. Restart Vite if it still shows the old output.
Run npm run check for TypeScript and npm test for library contracts and final QR images. The validation guide covers browser checks, package consumers and visual audits.
- Algorithm and artwork: how addresses become characters, with portable test vectors.
- Payment QRs: layout, sizing and wallet compatibility.
- Architecture: the libraries, generator and development lab.
- Releasing and hosting: package publication and the website.
Code is MIT. Original artwork, including generated SPirits, is CC0-1.0. Dependencies retain their own licences; see third-party notices.
