Chad Curtis d3cceb56ee Verify the LNURL invoice amount before paying a zap
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.
2026-08-19 12:16:08 -05:00
2025-09-08 15:25:31 -05:00
2025-10-04 17:01:41 -05:00
2026-06-05 10:38:53 -05:00
2026-06-06 10:38:58 +00:00
2025-08-21 13:34:58 -05:00
2026-06-05 10:38:53 -05:00
2026-04-03 16:09:05 -05:00
2025-11-13 19:20:53 -06:00
2025-09-19 19:31:17 -05:00
2026-06-05 10:38:53 -05:00
2025-11-13 21:23:12 -06:00
2026-01-21 14:46:11 -06:00

Shakespeare 🎭

Edit with Shakespeare

Shakespeare is an open-source AI app builder that runs entirely in your browser.

https://shakespeare.diy

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:

Alternatives

  • goose - open-source desktop app and cli utilizing your full computer for AI tasks
  • bolt.diy - similar to Shakespeare, but built on closed-source WebContainers technology
S
Description
No description provided
Readme AGPL-3.0
11 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 99.3%
JavaScript 0.2%
Shell 0.2%
CSS 0.2%