Offer only the sources that are running, and mark built-in plugins

Open
#252 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp, docker
Domain
full-stack

Research direction

The known sources list lives in src/Melodex.Web/Pages/Plugins.razor, and AboutPageTests reads it, so start there and check how the page builds its offered-plugin list. The change needs a short, parallel manifest probe (GET /v1/manifest) run by the core on each page open, plus a Built-in badge and a docs/guide/plugins.md note. Done when only running sources are offered, the badge shows on the ten built-in plugins, AboutPageTests passes, and there is an Unreleased changelog entry. Wait for the maintainer to agree the design before writing code.

Written by the indexing model from the issue text.

Description

enhancement full stack
What you'd like to do

The Plugins page offers every known source (yt-dlp, Internet Archive, Prowlarr, Qobuz, Tidal, Bandcamp, Soulseek, the inbox folder) ready to add, whether or not its container is in your compose file. Adding one that isn't running only fails later. And nothing on the page tells the plugins built into Melodex apart from ones that run as services of their own.

How it could work
  • Only sources that are running are offered. Melodex can't read the compose file, but each known source has its usual address (http://retriever-<name>:8080). When the Plugins page lists them, the core asks each one for its manifest (GET /v1/manifest), briefly, at once, and only those that answer can be added. They're asked again each time the page opens, so one added to the compose file shows up once it's started.
  • The ones that don't answer are left out of the list, with a short note under it on how to add one: its repository's compose snippet, linked to the guide's retrieval plugins section.
  • Your own plugin, at an address you give, is always offered, as now. So is every built-in plugin.
  • A "Built-in" badge on each built-in plugin, both on the plugins you've added and when choosing one to add. The built-in plugins are MusicBrainz, Deezer, Wikimedia, fanart.tv, LRCLIB, ListenBrainz, Last.fm, Navidrome, Jellyfin and Plex.
Anything else
  • Plugins you've already added stay as they are, even if their service has stopped. Their health check already says when one can't be reached.
  • The check goes through the core, not the browser, since only the core can reach the compose network. Keep each wait short (a couple of seconds) so the page doesn't hang on a missing host.
  • The known sources list in src/Melodex.Web/Pages/Plugins.razor is also read by AboutPageTests, so keep the test working if it moves.
  • Done when the guide's Plugins page says only running sources are offered, and there's a changelog entry under Unreleased.
Building it
  • I'd like to build this myself, once it's agreed.
Dominant language
C#
Stars
0
Forks
0
Avg merge
9h 10m
Merged PRs (30d)
126

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Dextrd/Melodex

All issues in Dextrd/Melodex

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.