nfunc

v0.2.0

A tuner for internet radio and podcasts: keep your stations and shows, play them, and share the list over Nostr.

What it is

A desktop app for Apple and Linux. Add a station by its stream address, or a podcast by its feed, and play it. The lists live on your machine and need no key; sign in, and what you follow can also be published, so another of your machines — or another person — can pick it up.

It is the listening half of radio-scan, a small logger that records what a station plays, track by track, so you can see the shape of its playlist over time.

The stack

Tauri 2, React 19, TypeScript, Tailwind v3 — the same as nplay and ndisc. It lives in the radio-scan repository, under gui/tauri.

Streams play in the web view’s audio element. A small proxy in Rust sits in between where a web view cannot play a stream directly. Podcast feeds are read in Rust.

Get it

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

Features

Stations kind:31241
A list of streams, started off with a handful from SomaFM that you can remove. Add your own, play, stop, set the volume. What a stream says about itself — name, genre, bitrate, home page — is kept on disk.
Podcasts kind:31242
Subscribe by feed. Sort by recent, name or when you added it; narrow to the last day, week or two; skip back and forward through an episode.
more

A feed’s own account of the show — author, categories, language, support links — is stored, with each feed’s episode list, so the tab opens on what it last knew even with no network. You can fill in what a feed leaves out; where the feed does state something, the feed’s word is shown and yours is kept. “Refresh feeds” reads every feed again.

Keeping and sharing are separate
Removing something from your list and withdrawing it from the network are two different actions, and each row shows which state it is in.
Logged shows
Where radio-scan’s logger runs, ntune shows the latest episode of each logged show — its tracklist in running order — and marks a show that has a new one.
more

This is the Linux surface; on macOS the RadioBar menubar app reads the same logs. From the tray, the logger can be paused and resumed.

Tray companion
A now-playing companion in the menubar or tray. On by default from the Linux desktop entry; on macOS it is a launch option.
Backup
Export your stations and shows to a file, exactly as they are stored, and bring them back. An import never replaces newer details with older ones, and the wrong kind of file is refused.
Themes
Three — mono, fizx and upleb. Click the name in the header to change, as in the other apps.

Nostr

Your key
Optional: everything plays without one. With a key — kept in the operating system’s own store — ntune can publish what you follow.
  • Linux — the Secret Service (libsecret)
  • macOS — the Keychain
Follow kind:31241kind:31242
Publish a station or a show you follow, one at a time or the whole list, and add to your list what you have published from elsewhere.
How Nostr does it

A followed station and a followed show are each an addressable event. Both kinds are the suite’s own convention, not a Nostr standard; the design is in radio-scan’s schema notes.

Event kinds

  • kind:31241 a station you follow — the suite’s own convention
  • kind:31242 a podcast or show you follow — the suite’s own convention
  • kind:5 a deletion request (NIP-09)

NIPs in play

  • NIP-01 the base event protocol
  • NIP-09 deletions: an unfollow withdrawn from the relays

Still to come