Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 117 additions & 0 deletions .github/ISSUE_TEMPLATE/add-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
name: 🔌 Submit a music-source plugin
description: List a music-source plugin you wrote on the /plugins directory, so stations on another server can find it. Fill this in and a pull request is opened for you; a maintainer reviews the code before it is listed.
title: "Add plugin: "
labels: ["plugin-submission"]
body:
- type: markdown
attributes:
value: |
Thanks for writing a plugin! Paste two things from your plugin below: its
`subwave-source.json`, and the conformance kit's JSON report. A bot turns this into a
one-file pull request, and the plugin's name, label and API version are taken from
the manifest, so they can't drift from the code.

**A plugin is code that runs inside every station that installs it**, so a listing
is a review of that code, not only of this form. Expect questions on the PR.

Run the conformance kit against a real server or library:

```bash
npx @subwave/source-sdk conformance /path/to/your-plugin --config key=value --json
```

(Or, from a SUB/WAVE checkout: `npm --prefix router install && npm --prefix router run conformance -- /path/to/your-plugin --config key=value --json`.)

It has to pass: a report with a failed check can't be listed.
- type: input
id: repo
attributes:
label: Source repository
description: Where the plugin's code lives, public and https. Point at the exact folder if it's part of a bigger repo.
placeholder: https://github.com/yourhandle/subwave-emby
validations:
required: true
- type: input
id: connects
attributes:
label: Connects to
description: What it plays from, in a few words. Shown as "Plugs into …" on the card.
placeholder: Emby
validations:
required: true
- type: textarea
id: manifest
attributes:
label: Manifest
description: Paste your plugin's `subwave-source.json`, whole.
render: json
validations:
required: true
- type: textarea
id: conformance
attributes:
label: Conformance report
description: Paste the output of the conformance kit run with `--json`, whole.
render: json
validations:
required: true
- type: input
id: version
attributes:
label: SUB/WAVE version
description: The SUB/WAVE version you ran the kit with (`subwave status`, or the admin footer), like 1.35.0.
placeholder: 1.35.0
validations:
required: false
- type: dropdown
id: hostfiles
attributes:
label: Reads files on the host
description: Does the plugin read files from the operator's machine, so they have to mount a folder into the router?
options:
- "No"
- "Yes"
validations:
required: true
- type: textarea
id: description
attributes:
label: Description
description: One or two sentences about what it does and anything an operator should know. Max 280 characters.
placeholder: Plays an Emby library, with playlists and favourites. Needs an Emby API key.
validations:
required: false
- type: input
id: author
attributes:
label: Author
description: Your name or @handle. A leading @ links to your GitHub profile.
placeholder: "@yourhandle"
validations:
required: false
- type: markdown
attributes:
value: |
### Listing terms

By listing a plugin you agree:

- You wrote it, or have the right to share it, and its source stays public at the link above.
- It talks only to the server or files it says it connects to. No telemetry, no
downloading and running further code, no reaching for the station's credentials.
- It's built and maintained by you, not by SUB/WAVE. A listing means a maintainer read
this version of the code; it isn't an audit, and it doesn't cover later versions.
- The listing may be removed on a valid complaint or at the maintainer's discretion.

This isn't legal advice.
- type: checkboxes
id: confirm
attributes:
label: Before you submit
options:
- label: The conformance report above is from this version of the plugin, run against a real server or library.
required: true
- label: I understand a pull request will be opened from this issue and a maintainer will read the plugin's code before merging it.
required: true
- label: I agree to the listing terms above.
required: true
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ contact_links:
- name: 🧰 Add your app by hand (advanced)
url: https://github.com/getsubwave/community/blob/main/apps/README.md
about: Prefer to open the pull request yourself? Here's the one-file format. Most people should use the "Submit an app" form instead — it needs no fork.
- name: 🔌 Add your plugin by hand (advanced)
url: https://github.com/getsubwave/community/blob/main/plugins/README.md
about: Prefer to open the pull request yourself? Here's the one-file format. Most people should use the "Submit a music-source plugin" form instead — it needs no fork.
67 changes: 67 additions & 0 deletions .github/ISSUE_TEMPLATE/report-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: 🚩 Report a plugin / takedown request
description: Report a listed music-source plugin for malicious or misleading code, a rights complaint, or because it's broken or gone. Used to request removal from the /plugins directory.
title: "Report plugin: "
labels: ["plugin-report"]
body:
- type: markdown
attributes:
value: |
Use this to flag a plugin listed on the **/plugins** directory.

Plugins are written and maintained by their authors, not by SUB/WAVE. A listing means
a maintainer read the code when it was submitted; it isn't an audit. **If you think a
plugin is doing something harmful, remove it from your station's `router/plugins/`
folder first**, then report it here.
- type: input
id: plugin
attributes:
label: Plugin
description: Its name as it appears on the directory.
placeholder: Emby
validations:
required: true
- type: input
id: repo
attributes:
label: Source link
description: The source link shown on the listing.
placeholder: https://github.com/yourhandle/subwave-emby
validations:
required: true
- type: dropdown
id: reason
attributes:
label: Reason for the report
options:
- Malicious code, telemetry, or reaching beyond what it says it connects to
- Copyright, trademark, or other rights complaint
- Misleading listing (doesn't connect to what it says, conformance doesn't hold)
- Plugin is broken, abandoned, or the source link is dead
- Other
validations:
required: true
- type: textarea
id: details
attributes:
label: Details
description: >
What's the problem? Be specific: what you observed, and where in the code. For a
rights complaint, identify the work(s) and the rights you hold or represent.
placeholder: e.g. index.mjs posts the plugin's config, including the API key, to a third-party host on every rescan.
validations:
required: true
- type: input
id: contact
attributes:
label: Contact (optional)
description: An email or handle we can reach you at if we need to follow up. Leave blank to stay anonymous.
placeholder: [email protected]
validations:
required: false
- type: checkboxes
id: confirm
attributes:
label: Before you submit
options:
- label: The information in this report is accurate to the best of my knowledge and I'm acting in good faith.
required: true
1 change: 1 addition & 0 deletions .github/workflows/build-catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
- 'shows/**'
- 'stations/**'
- 'apps/**'
- 'plugins/**'
- 'scripts/build-catalog.mjs'
workflow_dispatch: {}

Expand Down
Loading
Loading