Skip to content
dash1101Public

About

One place for YTM Starcast and Nova: status, settings, installers, themes

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

111 Commits

Folders and files

Repository files navigation

Orbit

By NovaLabs. Standalone downloads for Linux, Windows, macOS and Android are on the releases page: nothing needs installing first.

One place for all your apps: install them, see at a glance whether each one is running, start and stop it, change its settings, read its log and update it when a new release is out. It comes with support for YTM Starcast, Nova, YTDL-UI, xmas-tui and RPCortex Studio, and you can add any other app from Orbit's settings.

Orbit is one small program with its own window, drawn by the web engine that comes with your system (WebView2 on Windows, WebKit on macOS, WebKitGTK on Linux): it doesn't need a browser. It runs on Linux, Windows and macOS, only listens on 127.0.0.1, and only asks for the administrator password when an app has to be installed system-wide (Nova), through your system's own password window or Windows' permission prompt.

If the web engine is missing (a few Windows 10 computers don't have WebView2; some Linux desktops don't have WebKitGTK), Orbit offers to install it: Microsoft's own WebView2 installer, run only after Orbit checks that Microsoft signed it, or your Linux's own WebKitGTK package, which asks for your password. Say no, and Orbit opens in your browser instead.

Install

Download the program for your system from the releases page (see The programs below).

The program is written in Rust (desktop/; see its README to build it). The page it shows is web/index.html. Its options:

Option
--dry-run Read everything, change nothing: actions and the apps' settings are recorded instead of applied, and installs play out step by step without downloading, writing or running anything. Orbit's own settings (its theme, the order of the apps) are still saved.
--no-window Only run the server and print its address.
--port N Use another port (default 8790).

Installing apps

Open install in the side bar (or press i). Each app shows the systems it runs on and whether it's installed here. Installing, updating and removing all go through the same five steps:

  1. check: what this computer is, what is already installed, the latest release, and anything the app still needs (with how to get it);
  2. choose: a few plain choices, such as starting at login (skipped when there's nothing to choose);
  3. review: exactly what will happen, before anything does;
  4. install: each step ticks off as it finishes, with the download's progress; show details has the full log; you can cancel, or hide the window and let it carry on;
  5. done: what to do next (open the app, set it up, add its browser extension), or what went wrong and how to fix it.
Linux Windows macOS
YTM Starcast its own Python environment in ~/.local/share/ytm-starcast, ytm-starcast and ytm-starcast-gui commands, apps-menu entry, systemd user service (ytm-starcast.service) the standalone program in %LOCALAPPDATA%\Programs\YTM Starcast, Start-menu entry, starts at logon (scheduled task YTM Starcast) experimental, as YTM Starcast isn't tested on macOS yet: its own Python environment in ~/Library/Application Support/YTM Starcast and a LaunchAgent. The YouTube Music remote and the Discord status are meant to work; controlling the Mac's volume and other players isn't available on macOS
Nova the .deb on Debian/Ubuntu (so apt keeps it updated), Nova's one-file installer elsewhere; needs systemd a preview: Nova's Windows installer (nova-windows.zip) puts it in C:\Program Files\Nova with three background tasks that start with Windows, and its own uninstaller removes it. Pairing, devices, approvals, live graphs, alerts, the task manager, power and Docker Desktop work; programs and updates, files, the terminal and backups aren't there yet not available
YTDL-UI its ready-made app (x64 or ARM64) in ~/.local/share/ytdl-ui, apps-menu entry, and, if you like, a systemd user service (ytdl-ui.service) that keeps it at http://localhost:5000. It downloads ffmpeg itself its ready-made app (x64 or ARM64) in %LOCALAPPDATA%\Programs\YTDL-UI and a Start-menu entry; it runs in its console window while open and finds or downloads ffmpeg itself its ready-made app (Apple Silicon or Intel) in ~/Library/Application Support/YTDL-UI and, if you like, a LaunchAgent that keeps it running; converting needs brew install ffmpeg
xmas-tui x86-64 only: its own no-sudo installer (~/.local/share/xmas-tui, systemd user service xmas-tui.service). Needs kitty 0.36 or newer and a Wayland desktop with layers (KDE Plasma 6, Sway, Hyprland; not GNOME): Orbit checks for them first, and offers to install kitty (from your system's packages, after the system asks for your password, or kitty's own build just for you) and ffmpeg for its moving lock screen. Adds the xmas-tui command its own per-user setup, run silently: %LOCALAPPDATA%\Programs\xmas-tui, Start-menu entries, run at startup if you like, and its own uninstaller not available
RPCortex Studio x86-64: its program in ~/.local/share/rpcortex-studio, with the rpcortex-studio and rpc commands in ~/.local/bin. Opening a board needs membership of the dialout group (uucp on Arch): Orbit checks it and says how its program in %LOCALAPPDATA%\Programs\RPCortex Studio and a Start-menu entry Apple chips: its program in ~/Library/Application Support/RPCortex Studio, with the same commands

Only Nova needs the administrator password, and Orbit never sees it: on Linux your desktop's password window asks for it (pkexec), or a terminal with sudo when there's no such window; on Windows, Windows asks for permission once and Nova's installer runs without a window of its own, its output in Orbit's progress log.

YTDL-UI and xmas-tui also update themselves; Orbit shows the version they're on either way. Once xmas-tui is installed it gets a page in Orbit: whether the wallpaper runs, start and stop (Linux), and its general settings (snow, time of day, clock, widgets, weather, sound…), which it applies at once; everything else stays in its own settings panel.

What Orbit checks. Downloads only come from the app's own GitHub releases. Each file is checked against the SHA-256 checksums published with the release before it is unpacked or run. Nova's checksums are also checked against Nova's release signing key, which is built into Orbit rather than downloaded; Orbit checks the Ed25519 signature itself, so this works the same on every system with nothing else installed. Archives can't write outside their folder.

Private repositories need a GitHub sign-in. Orbit uses, in this order: its own (orbit settings → github → sign in with GitHub), GITHUB_TOKEN/GH_TOKEN, or the GitHub command line's (gh auth login). Signing in from Orbit uses GitHub's device flow: Orbit shows a short code, you enter it at github.com/login/device, and no password passes through Orbit. The login belongs to the NovaLabs Orbit GitHub App, which can only read repository contents. The token is kept in Orbit's settings file (readable by you only) and only sent to api.github.com, never to the file host a download is redirected to. check access shows what the current sign-in can read, repository by repository.

Removing keeps your settings unless you tick the box to delete them. An app installed some other way (with pip, or run from its source folder) is shown but left alone.

Orbit for Android

android/ is Orbit for phones and tablets (Android 5.0 and newer). It installs, updates, opens and removes the Android apps of YTM Starcast, Nova and xmas-tui, and updates Orbit itself. Your Discord status controls are in YTM Starcast's app.

Installing works like the desktop installer: review what will happen, then each step ticks off with the download's progress, then a result. The APK comes from the app's GitHub release and is checked before Android sees it: its SHA-256 against the release's checksums, Nova's checksums against Nova's release key (built into Orbit, and checked by Orbit itself, so on every Android version), and that the file really is that app. Android's own installer then asks you to confirm.

Android only lets an app install others once you allow it ("install unknown apps"). Orbit checks this first and says so on the review screen, before anything is downloaded, with a button that opens the right Settings page.

A private repository's releases need a GitHub sign-in: sign in with GitHub in Orbit's settings on the phone (the same device flow as the desktop), or a fine-grained token with Repository access → Only select repositories and Contents: Read-only (the default, Public repositories, can't see private ones). check access shows what it can read. It stays in Orbit's private storage and is only sent to api.github.com. The app has the same themes as the desktop.

Build it with Gradle 8.9 and JDK 17 (cd android && gradle :app:assembleRelease), or let the build workflow in .github/workflows build it. A v* tag publishes a release. The app id is app.novalabs.orbit. To install updates over an earlier copy, give the workflow a signing key as repository secrets: ORBIT_KEYSTORE_B64, ORBIT_KEYSTORE_PASSWORD and ORBIT_KEY_ALIAS. Without them a release leaves the Android app out.

The programs

On Debian, Ubuntu and their relatives, the .deb is the easiest: open it with your software installer (or sudo apt install ./orbit-linux-x86_64.deb) and Orbit is in your apps menu; it updates itself through apt (the system asks for your password). There are builds for 64-bit Intel/AMD and ARM on Windows and Linux, and for both kinds of Mac. The Mac and ARM builds come with each milestone release (0.6.0, 0.7.0 and so on, and now and then one in between); the releases in between are for Windows and Linux on x86-64, and Android. Orbit on a Mac or an ARM computer updates itself to the newest release that has a build for it.

Each download on the releases page is the program itself, with nothing to unpack and nothing else to install: the .exe on Windows, a .dmg on macOS (open it and drag Orbit onto Applications), and the program file on Linux (allow it to run once with chmod +x, since browsers don't keep that). The programs start in a fraction of a second and are 4 to 10 MB.

Installing Orbit for you, on Linux, needs no password. install orbit at the top (or in Orbit's settings) moves the program out of the folder you downloaded it to, into ~/.local/share/orbit, and adds Orbit to your apps menu with its icon, plus an orbit command (~/.local/bin/orbit). It goes on updating itself there; remove in Orbit's settings takes all of it away again and keeps your settings. The open window shows Orbit's name and icon once Orbit is in the apps menu this way or from the .deb: the window goes by Orbit's id, app.novalabs.orbit, and so do both menu entries.

On Windows, installing Orbit for you needs no administrator either. install orbit moves the program to %LOCALAPPDATA%\Programs\Orbit, adds it to the Start menu and to Windows' list of installed apps, and Orbit starts again from there. It updates itself in place, and its entry in the installed apps shows the version. Uninstall it from Settings → Apps (or remove in Orbit's settings): the program, its shortcut and its entry go, its settings stay.

Orbit updates itself on Linux, Windows and macOS. With Update Orbit by itself on (it is unless you turn it off in Orbit's settings), Orbit downloads a new release in the background when it starts, and the new version takes over the next time you open Orbit. You can also update by hand: when a new release is out, the top bar says update orbit to … (and Orbit's own card on the install page offers it). The new program is downloaded from Orbit's GitHub release, checked against the release's checksums, and started once to make sure it runs and is that version; only then does it wait next to the running one. Orbit then restarts on it by itself after a few seconds (the window closes and opens again on the new version), unless an app is still installing; close the update window to wait instead, and Orbit switches the next time it starts. The old program is kept until the new one has started, so a failed update leaves Orbit as it was. On a Mac the whole app is replaced: the new Orbit.app comes out of the release's .dmg. Running from the source folder, update with git pull.

The update replaces the program in place: the downloads are named without the version (orbit-windows-x64.exe, orbit-linux-x86_64, orbit-macos-apple-silicon.dmg, …), so the program keeps its name and folder from version to version, and launchers and shortcuts keep working.

What each app gets

Status Settings Actions
YTM Starcast running or not, output device, volume, what's playing, the browser extension, EQ, sleep timer, your Discord status (what Discord shows and why, the Discord connection), release; details: Discord user, application ID, album, browser extension, the last Discord error Pause other players; YTM Starcast's parts (YouTube Music remote, Discord status, Refine, this computer's audio); the Discord card: private mode, name in member list, album art, progress, badge, button, when paused, words never to show; address and access token open web app, desktop window, hide your Discord status for 30 min / 1 h / 3 h, show now, start/stop/restart, start at login
Nova answering or not, version and API level; how the server itself is doing: what needs attention, containers, websites, the fullest drive, the last backup, uptime; every Nova service and timer (the assistant and lighting when set up), failed background jobs, Tailscale and Cloudflare tunnel, release Nova web address open Nova web and the Nova Server window (Nova 0.9.16 and newer); status, doctor, recent actions, the API's log; pair a phone, a view-only device or a phone that's away from home, paired devices, what's waiting for approval, approve a browser, remove a device; Tailscale status and sign-in, Cloudflare API token, what Nova changed in Cloudflare and undoing it, setup; check for and install updates, back up now, list backups, restart the API; linked servers, plugins
YTDL-UI answering or not, version, yt-dlp ready, its folder, release shown (it changes them in its own admin console): address, password for visitors, allowed sites, where downloads are processed, downloads at the same time, how long finished files are kept, speed limit, update checks open, its own settings, start/stop/restart, start at login (Linux)
xmas-tui running as your wallpaper or not, its settings file frame rate, size, zoom, snow, wind, critters, time of day, your villager, clock, widgets, weather, sound its own settings, play in a window, start/stop/restart, start at login (Linux)
RPCortex Studio its version, whether a board is plugged in (Linux and macOS), its theme open it in Orbit's theme, its own theme open it (in a terminal), releases
Your own apps the service's state and/or a health address name, service, health address, web page open, start/stop/restart, start at login, remove

Every app has a settings button, on its card and its page: it shows the settings Orbit can see (and change, where the app allows it), with a button that opens the app's own settings in the app itself.

Updates come with short notes. Before an update, Orbit shows what's new in each version since the one you have (a few lines each, from the app's release notes on GitHub), with a link to the full notes.

The side bar shows the apps installed on this computer (and any that answer from elsewhere); every app keeps its card on the overview. Show apps that aren't installed in the side bar in orbit settings shows all of them.

Nova on Windows (a preview) shows whether Nova answers, its version and API level; its health file and logs are only readable by the administrator there, so api log and Nova's commands open in an administrator PowerShell window, and nova server opens the Nova Server window from the Start menu.

Why Nova is mostly read-only here. Every Nova request except /ping must be signed by a paired phone, and risky ones are approved on it. Orbit doesn't get around that. It shows Nova's health and opens Nova web or a terminal for sudo nova … instead. The server's own health (what needs attention, containers, drives, backups) is read from the status file Nova's monitor writes for dashboards (/var/lib/nova-alerts/www/status.json, readable by anyone on that computer), so it shows up when Orbit runs on the server itself; if that file stops being updated, Orbit says so rather than showing old numbers.

Commands run inside Orbit. Actions such as sudo nova status or sudo nova doctor open in Orbit's own terminal (a drawer at the bottom): type straight into it, including sudo's password and any questions; ctrl+c stops a command, and you can hide the drawer while commands keep running. Only the commands an app offers can be run; the page can't send its own. In a dry run, commands that would change something are shown instead of run.

The Cloudflare API token for Nova's auto-setup is saved the way Nova saves it itself (root-only), passed through a private temporary file that is deleted afterwards, so it never appears on a command line.

System services (like Nova's) are never started or stopped directly by Orbit; their actions go through sudo in Orbit's terminal, so you approve each one with your password. On Windows, Nova's commands open in an administrator PowerShell window instead (Windows asks for permission each time); what you type for them, such as a device's name, travels encoded, so it can never be read as another command.

Themes

Orbit's look is a theme. All of the first ones are text-interface themes: square boxes with the title set into the border, monospace type and a small square for each app's status. Pick one in orbit settings, or press t to cycle.

  • dusk (default): charcoal with a pink accent
  • phosphor: green screen
  • amber: amber screen
  • paper: light
  • frost, ember, ocean, lilac, mono

Your own themes: + new theme (or copy & edit on any theme) opens an editor with every colour, the corner rounding and glow, and the whole window previews your changes as you make them. Custom themes are saved in Orbit's settings.

A theme is a block of colour and shape tokens in web/index.html ([data-theme="…"]), plus an entry in THEMES in orbit/server.py.

Languages

Orbit speaks English, Spanish, French, German, Portuguese (Brazil), Italian, Russian, Japanese, Chinese (Simplified) and Korean. It follows your system's language when it has it; pick another under Language in orbit settings (on Android: settings → language). Everything Orbit says itself is translated: its window, every app's install steps, checks and messages, and its notifications. What an app reports about itself (Nova's check-up, YTM Starcast's outputs) stays as that app says it.

The translations are files in web/i18n/, one per language, mapping each English text to its translation ({} marks a part that changes, such as a version). python3 tools/i18n.py check lists anything missing.

Keys

j/k or ↓/↑ move · 1–9 jump to an app · o overview · i install · , settings · r refresh · t next theme · ? the list of keys

In the installer: Enter continues, Esc closes (an install keeps going in the background).

Drag an app's tile in the side bar to reorder your apps. Apps that don't run on this computer's system stay in the list, marked "not available on … yet".

Adding an app to Orbit

  • Without code: orbit settings → add an app, with a systemd service, a health address (any page that answers while the app is up) and/or a web page.
  • Built in: AGENTS.md is the step-by-step guide: the catalog entry, the icon, the install recipe and the app's page (desktop/src/recipes/ and desktop/src/apps/), Android, translations, tests and releasing.

Privacy and safety

  • Orbit's server listens on 127.0.0.1 only. Requests must use a loopback host name, come from Orbit's own page (or no page at all) and send JSON, so websites you visit can't use it.
  • It talks to your apps on this computer only. The exceptions are the release check (at most every 12 hours, one request per app to api.github.com, and one for Orbit's app catalog), which you can turn off, and installing or updating an app, which downloads that app's release from GitHub.
  • The app catalog (packaging/catalog.json in this repository) gives each app's name, description, colour and icon, and on Android which release file is the app, so a renamed app or a new icon reaches the Orbit people already have without an update. Orbit keeps the last copy for when GitHub can't be reached, and uses the names built into it until it has one. The catalog can't change how a download is checked: signing keys are built into Orbit.
  • Settings are kept in ~/.config/orbit/config.json (%APPDATA%\Orbit\config.json on Windows), readable by you only.

Tests

cd desktop && cargo test                                            # the program's own tests
python3 -W error::ResourceWarning -m unittest discover -s tests -t .   # catalog, icons, translations, themes, notes

More checks run against the built programs on real machines in CI: tools/ci-nova-windows.py installs the newest Nova, YTM Starcast, YTDL-UI, xmas-tui and RPCortex Studio through the built orbit.exe on GitHub's Windows machines, checks that each one answers, installs it again over itself and removes it; tools/ci-selfupdate.py has a real Orbit update itself to a newer build and restart on it, on Linux, Windows and both kinds of Mac; and the Android app is installed and opened on an Android emulator.

License

Orbit is source-available, not open source: you may read the code, build it for yourself and use it, but not redistribute it, publish a modified version or present it as your own. See LICENSE for the full terms. Versions up to 0.8.1 were released under the MIT License, and copies of those stay under it.

About

One place for YTM Starcast and Nova: status, settings, installers, themes

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages