nfunc

v0.1.0-beta.8

A discography on your phone: browse what ndisc has published, and react to it — without the phone ever holding your key.

What it is

A mobile app for Android and iOS. It reads the release events an ndisc library has published, from Nostr relays, and shows them as a collection you can browse. It is a sibling of the glmps web viewers, reading the same release format.

To react to a release, you log in with a remote signer — a bunker:// string from a signer such as nsign. The signer keeps the key and signs each reaction; nview only ever asks.

The stack

React 19, Vite, TypeScript and Tailwind, with nostr-tools for the relays.

Capacitor wraps the same web build for iOS and Android, so the two apps show the same thing.

Which discography it shows, and its default relays, are set in src/config.ts: the owner’s npub, the relay set and the release kind.

Get it

Version 0.1.0-beta.8. Every release, and the source: GitHub.

There is no public iOS build yet; it is built from the source with Xcode.

Features

The collection kind:31237kind:5
Every published release, with its cover, and a release withdrawn from the network disappears here too.
Labels kind:31238
Record labels show the artwork published from ndisc’s label library.
Current kind:31239kind:30000kind:4550
The suite’s short notes — now playing, just added — as a feed.
Reactions kind:7kind:5
Vote a release up or down, or take the vote back. Each one is signed by your signer, which may ask you first.
Your relays
Choose which relays it reads from when you first open it, and change them later.
How Nostr does it

nview reads the suite’s release events — its own convention, not a Nostr standard; the ndisc page has the detail. Signing goes over NIP-46: the app holds a throwaway key for the conversation with the signer, and the signer decides what to sign.

Event kinds

  • kind:31237 a release — the suite’s own convention
  • kind:31238 the label library — the suite’s own convention
  • kind:31239 a feed note — the suite’s own convention
  • kind:5 a deletion request (NIP-09)
  • kind:7 a reaction (NIP-25)
  • kind:30000 a people set: who may contribute (NIP-51)
  • kind:4550 an approval of a feed note (NIP-72)
  • kind:0 your profile — read for your name and NIP-05

NIPs in play

  • NIP-01 the base event protocol
  • NIP-46 the remote signer that signs reactions
  • NIP-25 reactions on releases
  • NIP-09 deletions: releases withdrawn, votes taken back
  • NIP-51 the people set of feed contributors
  • NIP-72 approvals of feed notes

Still to come