fiatjaf on Nostr: If you want to embed an HTML client somewhere else then there is not a NIP for it ...
If you want to embed an HTML client somewhere else then there is not a NIP for it because it's not advisable at all, but you would have to use an <iframe> or some other way to render HTML in that other environment. And then you could inject a faux window.nostr global in there.
Not the same thing, but as an inspiration,
https://github.com/fiatjaf/window.nostr.js injects a window.nostr global in websites, but instead of an extension it powers that with NIP-46 calls to bunkers.
Published at
2024-11-22 19:43:18Event JSON
{
"id": "000009c4704f82deac7c2ee2e395f75d9fb931b2c0d4846c74aca9859d102cd8",
"pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"created_at": 1732304598,
"kind": 1,
"tags": [
[
"p",
"3878d95db7b854c3a0d3b2d6b7bf9bf28b36162be64326f5521ba71cf3b45a69"
],
[
"e",
"404d3c3374f32eab6d34eb13e0f7799a327ee2363db78b254021e5ea0d1db067",
"wss://nostr.wine/",
"root"
],
[
"e",
"a7101a2759de9c0fd25a0709d584e50c7f1142b0aadaa2d2f069e7ffa82e6389",
"wss://wot.utxo.one/",
"reply",
"3878d95db7b854c3a0d3b2d6b7bf9bf28b36162be64326f5521ba71cf3b45a69"
],
[
"nonce",
"4611686018427407037",
"16"
]
],
"content": "If you want to embed an HTML client somewhere else then there is not a NIP for it because it's not advisable at all, but you would have to use an \u003ciframe\u003e or some other way to render HTML in that other environment. And then you could inject a faux window.nostr global in there.\n\nNot the same thing, but as an inspiration, https://github.com/fiatjaf/window.nostr.js injects a window.nostr global in websites, but instead of an extension it powers that with NIP-46 calls to bunkers.",
"sig": "1f8f930d90a1b5143123c4af90010c9f0afc25849eb1573c0c98f7fc2de7bb59fc923d5682122b1887d9741ecadb64c01fd95ed3f59fee597261d6503d776546"
}