Make a satellite in 10 minutes

A satellite is a folder with a satellite.toml file and whatever it adds: a theme, a menu page, a Today card, a Settings page, actions that run at set moments, or a taskbar item. This walk-through makes one that adds a menu row, a Today card, and a Settings page, with no code at all. It needs only a terminal and a text editor. The full reference is satellites.md.

Five ways to start

However you start, run starchaser satellite dev . in the folder: it shows what your add-on asks for, and once you say yes it installs your copy, turns it on, and updates it each time you save a file, so you see a change right away. A save that asks for more asks you again. Press Ctrl+C to stop watching; the add-on stays on until you turn it off.

Coming from Omarchy? Satellites for Omarchy users maps its themes, hooks and plugins to satellites.

1. Make the folder (1 minute)

mkdir -p ~/Satellites && cd ~/Satellites
starchaser satellite new moon-phase
cd moon-phase

new makes a working sample: satellite.toml (the manifest), README.md, LICENSE (MIT; change it if you like), menu.json, cards/date.toml with its script bin/date-card, and page.toml. Add --hook for an action that runs when the theme changes, or --widget for a taskbar item written in QML.

2. Say what it is (2 minutes)

Open satellite.toml and change the lines people see:

id = "moon-phase"                       # lowercase letters, digits, and dashes; the folder has the same name
name = "Moon phase"                     # shown in Settings; US English
version = "0.1.0"                       # raise it each time you share a new version
summary = "Tonight's moon phase on the Today page."
author = "Your name"
license = "MIT"
homepage = "https://github.com/your-name/moon-phase"

Under [permissions], list every program your commands run (run) and every host they talk to (network). People see this list before they turn your satellite on. Under [depends], list the Arch repo packages those programs come from. Starchaser never installs from anywhere else.

3. Make the Today card (3 minutes)

A card runs one command on a timer. The command prints one line of JSON. Replace bin/date-card with your own script:

#!/bin/sh
# Days since a known new moon (January 6, 2000), modulo the 29.53-day cycle.
days=$(( ( $(date +%s) - 947182440 ) / 86400 ))
age=$(( days % 30 ))
if [ "$age" -lt 2 ]; then phase="New moon"
elif [ "$age" -lt 14 ]; then phase="Waxing"
elif [ "$age" -lt 16 ]; then phase="Full moon"
else phase="Waning"; fi
printf '{"text":"%s (day %s of about 29.5)"}\n' "$phase" "$age"

Then edit cards/date.toml:

title = "Moon"
run = "./bin/date-card"
every = 3600        # seconds between updates, 30 to 86400
show = "text"       # number, text, list, gauge, or progress

A card can show {"text": "..."}, {"list": ["...", "..."]}, or {"value": 72, "unit": "%", "max": 100}. Show distances and temperatures imperial first, with metric in parentheses: "0.4 mi (0.6 km)", "68°F (20°C)".

4. The menu row and the Settings page (2 minutes)

menu.json adds rows under Add-ons in the menu. Each row has a label and a run command, or children for a page of rows. page.toml describes a Settings page with switches, dropdowns, sliders, buttons, and notes. Its choices reach your commands as STARCHASER_SETTING_<KEY>. Keep the sample's rows or change them. Write plain words a first-time user understands.

5. Check it and try it (2 minutes)

starchaser satellite check .
starchaser satellite install . --yes
starchaser satellite enable moon-phase

check names each mistake in one sentence: a missing LICENSE, a card without a title, a hook that isn't executable, QML that won't load, anything that would move the pointer. Open the Today page to see your card, the menu (Super) to see your row under Add-ons, and Settings > Satellites > Moon phase for its page.

To see each change as you save it, leave this running in the folder instead:

starchaser satellite dev .

Without dev, remove it and install it again to try a change:

starchaser satellite remove moon-phase --yes && starchaser satellite install . --yes && starchaser satellite enable moon-phase

6. Share it

1. Put the folder in a public git repository on any host: GitHub, GitLab, Codeberg, sourcehut, or your own server, with satellite.toml at the top. On GitHub, add the topic starchaser satellite so people can find it. 2. Anyone can add it from its link: Settings > Satellites > Add from a link (paste the link), or starchaser satellite install https://codeberg.org/your-name/moon-phase. They see a warning that it hasn't been reviewed, what it asks for, and the exact version (commit) they get. Nothing in it runs until they turn it on. 3. To be listed online in Find more, see how to submit a satellite. The checks run on their own; then a person reads every file. The review rules say what is looked at.

Next