woikos 57434681f9 Release v1.1.0 - Add WebLN API support for Lightning wallet integration
- Add window.webln API for web app Lightning wallet integration
- Implement webln.enable(), getInfo(), sendPayment(), makeInvoice() methods
- Add WebLN permission prompts with proper amount display for payments
- Dispatch webln:ready and webln:enabled events per WebLN standard
- Add NWC client caching for persistent wallet connections
- Implement inline BOLT11 invoice amount parsing
- Always prompt for sendPayment (security-critical, irreversible)
- Add signMessage/verifyMessage stubs that return "not supported"
- Fix response handling for undefined returns in content script

Files modified:
- projects/common/src/lib/models/nostr.ts (WeblnMethod, ExtensionMethod types)
- projects/common/src/lib/models/webln.ts (new - WebLN response types)
- projects/common/src/public-api.ts (export webln types)
- projects/{chrome,firefox}/src/plebian-signer-extension.ts (window.webln)
- projects/{chrome,firefox}/src/background.ts (WebLN handlers)
- projects/{chrome,firefox}/src/background-common.ts (WebLN permissions)
- projects/{chrome,firefox}/public/prompt.html (WebLN cards)
- projects/{chrome,firefox}/src/prompt.ts (WebLN method handling)
- projects/common/src/lib/services/storage/types.ts (ExtensionMethod type)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 09:02:05 +01:00
2025-02-07 23:55:51 +01:00
2025-01-10 19:36:19 +01:00
2025-01-10 19:36:19 +01:00
2025-01-10 19:36:19 +01:00
2025-02-01 23:23:37 +01:00
2025-12-21 13:45:23 +01:00
2025-02-01 23:23:37 +01:00

Plebeian Signer

Nostr Identity Manager & Signer

Plebeian Signer is a browser extension for managing multiple Nostr identities and for signing events on web apps without having to give them your keys.

It implements these mandatory NIP-07 methods:

async window.nostr.getPublicKey(): string
async window.nostr.signEvent(event: { created_at: number, kind: number, tags: string[][], content: string }): Event

It also implements these optional methods:

async window.nostr.getRelays(): { [url: string]: {read: boolean, write: boolean} }
async window.nostr.nip04.encrypt(pubkey, plaintext): string
async window.nostr.nip04.decrypt(pubkey, ciphertext): string
async window.nostr.nip44.encrypt(pubkey, plaintext): string
async window.nostr.nip44.decrypt(pubkey, ciphertext): string

The repository is configured as monorepo to hold the extensions for Chrome and Firefox.

Develop Chrome Extension

To build and run the Chrome extension from this code:

git clone https://github.com/PlebeianApp/plebeian-signer.git
cd plebeian-signer
npm ci
npm run build:chrome

then

  1. within Chrome go to chrome://extensions
  2. ensure "developer mode" is enabled on the top right
  3. click on "Load unpackaged"
  4. select the dist/chrome folder

Develop Firefox Extension

To build and run the Firefox extension from this code:

git clone https://github.com/PlebeianApp/plebeian-signer.git
cd plebeian-signer
npm ci
npm run build:firefox

then

  1. within Firefox go to about://debugging
  2. click "This Firefox" on the left
  3. click on "Load Temporary Add-on..."
  4. select the dist/firefox folder

LICENSE: Public Domain

Description
No description provided
Readme Unlicense 40 MiB
Languages
TypeScript 71.3%
HTML 14.8%
SCSS 11.7%
Python 1.5%
JavaScript 0.6%