Marco deployments on different origins all looked like the same "Marco" session in remote signer apps (e.g. Amber), and no app icon was shown. The origin was already sent as url in the nostrconnect:// URI, but NIP-46 only surfaces that on the approval screen; a signer's connection list renders just the app name and icon.
This adds proper NIP-46 client metadata:
buildNostrAppMetadata() returns name = "Marco (<host>)" (the host includes the port, so self-hosted instances and dev servers are distinguishable), the canonical url, and an absolute image URL pointing at /icons/icon-192.png.
The requested permissions are sent along via perms, so signers can pre-approve what Marco signs: kinds 5 (NIP-09 deletion), 360 (Place Photos), 9734 (zap request) and 24242 (Blossom auth).
The old description/icons fields are dropped; they came from the 2024 draft metadata format and are ignored by current NIP-46 implementations.
pnpm lint passes and pnpm test passes (468 tests, 0 failures, including four new unit tests covering the metadata and the generated URI).
Caveats: signers that predate these NIP-46 fields only show the name (Amber shows name, url and icon from 6.2.2 on), and icons are fetched over https from the user's device, so localhost/LAN origins show no icon.
Marco deployments on different origins all looked like the same "Marco" session in remote signer apps (e.g. Amber), and no app icon was shown. The origin was already sent as `url` in the `nostrconnect://` URI, but NIP-46 only surfaces that on the approval screen; a signer's connection list renders just the app name and icon.
This adds proper NIP-46 client metadata:
- `buildNostrAppMetadata()` returns `name = "Marco (<host>)"` (the host includes the port, so self-hosted instances and dev servers are distinguishable), the canonical `url`, and an absolute `image` URL pointing at `/icons/icon-192.png`.
- The requested permissions are sent along via `perms`, so signers can pre-approve what Marco signs: kinds 5 (NIP-09 deletion), 360 (Place Photos), 9734 (zap request) and 24242 (Blossom auth).
- The old `description`/`icons` fields are dropped; they came from the 2024 draft metadata format and are ignored by current NIP-46 implementations.
`pnpm lint` passes and `pnpm test` passes (468 tests, 0 failures, including four new unit tests covering the metadata and the generated URI).
Caveats: signers that predate these NIP-46 fields only show the name (Amber shows name, url and icon from 6.2.2 on), and icons are fetched over https from the user's device, so localhost/LAN origins show no icon.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Marco deployments on different origins all looked like the same "Marco" session in remote signer apps (e.g. Amber), and no app icon was shown. The origin was already sent as
urlin thenostrconnect://URI, but NIP-46 only surfaces that on the approval screen; a signer's connection list renders just the app name and icon.This adds proper NIP-46 client metadata:
buildNostrAppMetadata()returnsname = "Marco (<host>)"(the host includes the port, so self-hosted instances and dev servers are distinguishable), the canonicalurl, and an absoluteimageURL pointing at/icons/icon-192.png.perms, so signers can pre-approve what Marco signs: kinds 5 (NIP-09 deletion), 360 (Place Photos), 9734 (zap request) and 24242 (Blossom auth).description/iconsfields are dropped; they came from the 2024 draft metadata format and are ignored by current NIP-46 implementations.pnpm lintpasses andpnpm testpasses (468 tests, 0 failures, including four new unit tests covering the metadata and the generated URI).Caveats: signers that predate these NIP-46 fields only show the name (Amber shows name, url and icon from 6.2.2 on), and icons are fetched over https from the user's device, so localhost/LAN origins show no icon.