aboutsummaryrefslogtreecommitdiffstats
path: root/src/nip46-global.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-26 12:06:00 -0700
committerAdam Soltys <[email protected]>2026-08-26 12:06:00 -0700
commit0427a1b02c21fd5fa9f5df8a86e435dbb84a8451 (patch)
tree32e5601682e6f65e46a8811cfc2ea7184ba17119 /src/nip46-global.js
parent6be9a45c4d085988c8bfaf210df762dbc83c8ab1 (diff)
downloadcoinosv3-0427a1b02c21fd5fa9f5df8a86e435dbb84a8451.tar.gz
coinosv3-0427a1b02c21fd5fa9f5df8a86e435dbb84a8451.zip
The page arrives light and paints at once: index.html shrinks to 46KB with a static boot shell baked in — brand row, and the profile frame when the path names one — while the 789KB bundle moves to a content-addressed app-<hash>.js the browser keeps (a repeat visit re-downloads kilobytes, not the app); the nostr-tools barrel import goes subpath, and the NIP-46 signer client ships as its own lazy file fetched on first bunker login
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_019eA8JRq9Wr7z2fRQk99HLi
Diffstat (limited to 'src/nip46-global.js')
-rw-r--r--src/nip46-global.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nip46-global.js b/src/nip46-global.js
new file mode 100644
index 0000000..a841905
--- /dev/null
+++ b/src/nip46-global.js
@@ -0,0 +1,9 @@
+// Standalone bundle for the NIP-46 remote-signer client (bunker:// and
+// nostrconnect:// logins) — emitted as a separate dist/nip46.js and loaded on
+// demand by nostr-login.js, the first time a bunker interaction happens.
+// It's the heaviest, rarest corner of the login stack (and drags a second
+// copy of the noble crypto stack via nostr-tools' own pins), so it stays out
+// of the main bundle and off the initial load.
+import * as nip46 from 'nostr-tools/nip46';
+
+window.__nip46 = nip46;