Make Deepink real without changing its design
Deepink already has a working social interface, but its original posts and interactions were local examples. This guide explains how to connect that interface to real Nostr accounts, posts, replies and Blossom images using Loopy.
What will actually change in Deepink
- Sign in: choose Amber or another approved signer instead of treating a copied public address as a logged-in account.
- Feed: see real Nostr posts and fetch your own post back after a reload.
- Conversations: reply and react from another account, with proper links to the original post.
- Pictures: upload images to Blossom and check they were actually saved.
- Your stuff: keep local settings and drafts without mixing accounts or throwing away the existing interface.
For builders: exact integration steps
- Preserve UI and sample data separately. Keep existing components/navigation and move browser-only localStorage sample posts behind a clearly labeled demo adapter.
- Choose signer without new keys: prefer approved
Nostr.browserSigner(window.nostr)if present. On one phone, use client-initiated NIP46 vianostrConnectRequest({relays:[signerTransportRelay]}), listen before displaying Copy connection, and keep the pending secret/session stable across app switch. For an installed Android wrapper, useAdapters.androidHandoff({launch,onReturn})andNostr.androidIntent; never call it authenticated until the returned signed event is verified with request ID and author. - Find actual relays:
Nostr.discoverRelays(pubkey,{bootstrap,query:Nostr.queryRelay})loads signed NIP65 lists. Use author-write for publishing, recipient-read for notifications, and configured bounded fallbacks. Distinguish these from signer transport relays. UseNostr.relayInfoto inspect NIP11 server policies but do not infer acceptance from metadata. - Posts, replies, and reactions:
Nostr.textNote,Nostr.reaction,Nostr.publishTemplate,Nostr.fetchFeed; kind1 and kind7 events, signed by the user's current identity, exact-ID relay readback, dedupe by event ID. - Profiles:
Nostr.fetchProfiles({pubkeys,relays})verifies kind0 and keeps bounded display data. Account-switch cleanup must close subscriptions and prevent old-account state from leaking into the new profile. - Media:
Nostr.discoverBlossom(pubkey)on signed kind10063;Blossom.uploadVerifieduses a signed kind24242 token, checks upload descriptor, downloads by hash, compares exact bytes. Only then put media URL in published note. - Nsites:
Nsite.prepareManifestFiles,manifestTemplate,publishNsitefor static site publication; do not use a fake wallet or fake zap as a success condition. - Local-first archive:
Archive.contentStore(Storage.indexedDbStore()),Archive.writeZip,Archive.materializeVersionpreserve original bytes, save hash-linked snapshots, and avoid duplicate blob storage.Directorysupports collection, clone stacks, filtering and public backup.
Independent acceptance: browser login and actual signer approval; publish kind1, reload and retrieve signed note from a relay; second identity replies and reacts; switch accounts without stale content; upload one Blossom image, verify exact GET bytes; distinguish authorized live publication from mock transport tests. Devices/browser/runtime require separate evidence receipts. Source signatures can be checked offline; actual Amber popup is not proven here.
Donor evidence: Nostr Anchor src/nostr/signers.ts; Pretend Internet tools/relay-router/router.mjs; Nsite Directory Editor app/publish-core.js/model.js; BreBre Web publish.js; Nsite Archive Repair model.js; original YourSpace src/lib/nsite (private source collection). Exact hash/occurrence mapping in the source collection manifest.