Presets and MoonLive scripts for MoonLight, shared by the people who made them.
Every entry starts as an issue with a picture or video of what it does, so you can see it before you install it. The discussion stays on that issue, and the file itself lives here once it is accepted.
| Folder | What | Installed on a device as |
|---|---|---|
presets/ |
presets: a look (the effects stack), a palette, or both, as one JSON document; pins, brightness and layouts belong to one rig and are left out | a file in /.config/presets, or the body of PATCH /api/state |
scripts/ |
MoonLive scripts: effects (.mle), layouts (.mll), modifiers (.mlm), services (.mls) and palettes (.mlp) |
a file in /moonlive, or pasted into the MoonLive editor |
index.json lists every entry with its name, kind, file, picture or video, author, the MoonLight version it was made on, the issue where it was discussed, and its votes.
thumbs/ holds a small still of each entry's picture or video, made when it is accepted, which the Gallery browses by before an entry is opened.
Open the entry's issue first: it shows what the entry does and anything it needs, such as a panel size or a microphone.
- A preset: the Gallery on the Control card installs it onto a pad with one click. By hand, upload it into
/.config/presetsin the File Manager with hidden files shown, or send it straight to the device withcurl -X PATCH --data @preset.json http://<device>/api/state. - A script: upload it into
/moonlivewith the File Manager, or paste it into the MoonLive editor, and pick it as you pick any effect, layout or modifier.
An entry made on a newer MoonLight than yours may use something your device does not have yet; update first.
Like an entry? Give its issue a 👍, ❤️, 🎉, 🚀 or 😄: each is a vote, open or closed.
The counts go into index.json once a day, so the gallery can show what people like most.
- Open a new issue and choose Share a preset or script.
- Fill in every field: the kind, a name, what it does, a picture or video, the MoonLight version, and the file's contents. GitHub takes videos up to 10 MB; for a longer one, paste a link, such as an unlisted YouTube video.
- Tick the CC0 box, which lets anyone use it.
A check runs as soon as you submit and on every edit, and says in the issue what is still missing.
Once it passes, the issue is marked ready.
People can comment, and you can edit the issue to improve the file.
When a maintainer adds the accepted label, the file is added to the gallery, linked from the issue, and the issue closes.
To update an accepted entry, edit its issue, the file or the picture, and ask for it to be accepted again: the new file, picture and thumbnail replace the old ones.
Everything in this gallery is dedicated to the public domain under CC0 1.0. Contributors agree to that when they share, so a preset or script can be used anywhere, MoonLight included, with nothing to keep track of.
The labels: contribution (set by the form), ready and needs-fix (set by the check), and accepted (set by you).
Accepting is adding accepted: accept.yml runs the same check, commits the file under presets/ or scripts/ as <issue>-<name>, updates index.json, comments the link, and closes the issue.
A contribution that no longer passes the check is not added; the issue says why and loses the label.
check.yml runs on every submission and edit, and votes.yml counts the likes on accepted issues once a day.
Both use tools/gallery.py, whose tests run on every change to it.
An accepted entry is a snapshot of its issue. Editing the issue afterwards runs only the check, so the gallery keeps the old file and picture until you accept it again: remove accepted and add it back, and the entry, its file and its thumbnail are replaced with what the issue holds now. That is the review step, which is why it is not automatic.
The issue is the record. A fix to an accepted file goes into the issue's File field as well as the repo, or accepting again puts the old file back; the check runs on that edit and shows needs-fix first if the file is refused.