nfunc

v0.3.1

A simple player for the music and video on your own machine — the playback companion to the rest of the suite.

What it is

A desktop app for Apple, Linux and Windows. It indexes your music folder, plays it through its own audio engine, plays video too, and keeps your playlists. It shares what the other apps know — tempo, the suite’s feed — rather than working it out again.

The stack

Tauri 2 desktop binary, React 19, TypeScript, Tailwind v3, with the rest of the suite’s palette and parts.

Audio plays through a native Rust engine (rodio, on a thread of its own), because the web view on Linux cannot play local media. Video plays in the web view, fed by a small HTTP server inside the app. The library is indexed into SQLite, with tags and embedded covers read by lofty.

Get it

Version 0.3.1. Every release, and the source: GitHub.

Features

Library
Scans a music folder into a local index: artist, album, title, year, track number, length, codec and cover. Edit a tag in place and it is written back to the file.
Two ways to browse
A collection tree — artist, album, track — and a flat table you can sort.
Playback
Play, pause, stop, previous, next, seek and volume; the space bar plays and pauses. Shuffle, and repeat one or all.
Video
mp4 and m4v play with picture.
Now playing
Large cover art with the title, artist and album, and a spectrum visualiser that moves with the sound.
Playlists and queue
A working playlist that saves itself, with drag-to-reorder, and the queue of what plays next.
more

Playlists load and save as .xspf, the format Strawberry uses.

Tempo
Shows each track’s BPM from the store the suite shares with nsmpl, and works it out when the store has none.
Library health
Flags files it cannot play or decode, until you acknowledge them.
Current kind:31239
Reads the suite’s feed of short notes — now playing, just added.
Themes
Three, in turn: fizx, upleb and mono.
How Nostr does it

nplay holds no key and publishes nothing. It only reads the feed, a kind that is the suite’s own convention, not a Nostr standard.

Event kinds

  • kind:31239 a feed note — the suite’s own convention
  • kind:30000 a people set: who may contribute (NIP-51)
  • kind:4550 an approval of a feed note (NIP-72)
  • kind:5 a deletion request (NIP-09)

NIPs in play

  • NIP-01 the base event protocol
  • NIP-51 who may contribute to the feed
  • NIP-72 approvals of feed notes

Still to come