Zapping asked the recipient's LNURL-pay server for an invoice and paid whatever came back, checking only that it was a non-empty string. The server is chosen by the recipient, so anyone who posts a note and runs their own endpoint decided how much their victims paid — after the victim had already approved a figure. The success toast reported the requested amount rather than the paid one, so an overcharge left no trace in the UI either. Add a BOLT11 decoder (bech32 + tagged fields, on @scure/base and @noble/hashes, both already bundled via nostr-tools) and require the returned invoice to charge exactly the millisats the user approved. Amountless invoices are rejected outright. The check runs before the NWC, WebLN and QR paths alike, and useNWC's sendPayment now takes the approved amount and re-checks it, so no future caller can hand the wallet an unvetted invoice. Resolve LNURL-pay in-repo instead of via nip57.getZapEndpoint, which returns only the callback URL and discards everything used to validate the response: HTTPS is now required for both the LNURL and the callback it names, the advertised minSendable/maxSendable are honoured, and the invoice's description hash is checked against the zap request (NIP-57) or the endpoint metadata (LUD-06) when it carries one. Report the decoded amount in the success toast so it can never understate a spend. Adapted from Alex Gleason's ditto commit 6e062450.
Shakespeare 🎭
Shakespeare is an open-source AI app builder that runs entirely in your browser.
Features
- Use any AI provider OpenAI, Anthropic, OpenRouter, xAI, ZAI, Deepseek, and more
- Buy credits anonymously with Nostr and Lightning ⚡
- Redeem gift cards with shareable links for instant credits
- Runs entirely in the browser No backend required
How it Works
Shakespeare is a React PWA that stores files in IndexedDB with LightningFS. Your browser connects directly to AI providers and git services (through isomorphic-git) to enable you to build and deploy AI apps entirely from your device.
Shakespeare hosts no backend (except for a couple microservices in the services/ directory; these are fully configurable within Shakespeare's settings). All your code and configuration is stored in your browser.
Configure any AI providers and git services you want. Configuration is stored entirely in the browser in localStorage.
You can then push and pull code to syncronize your work across devices.
Shakespeare can work on any type of project. But it is specialized to build React applications in TypeScript, which it compiles in the browser with esbuild-wasm and custom plugins. Any codebase can be worked on, but only compatible projects can be previewed directly in Shakespeare.
Open Source
Shakespeare is proudly Open Source software licensed under the GNU AGPLv3. The purpose of Shakespeare is to provide a free and open platform for building AI applications that respects user privacy and freedom.
Mirrors
Shakespeare is available on the following URLs: