Lightious
Lightious is a small, text-first Invidious client for Light Phone III. It is a
clean-room Kotlin application built on the Light SDK—not a Clipious or
Materialious fork or wrapper.
The launch screen is a pairing-first Focused channel feed. It shows a finite
window of recent uploads from channels you chose in the companion, with no
recommendations or endless archive. Library mode also permits browsing and
searching those approved channels. Both modes keep the same curated permissions.
Features
- Watch a low-bandwidth progressive stream while preserving its native aspect ratio.
- Listen through a full Light SDK player view with title and channel metadata,
progress, seek, and detached playback controls.
- Switch between Watch and Listen without losing your position or in-app
play/pause choice, including video downloads.
- Mark a video watched from its details page, the listen-only/audio player,
offline media details, or the finished-playback screen—explicitly, never
automatically.
- Show loading/connecting while a companion request is pending, with retry
controls only after the request fails.
- Keep optional local watch history, separate from explicit watched status.
- Select an app-wide preferred audio language.
- Choose whether media is proxied through the configured Invidious instance.
- Pair with the companion website using a 12-character code—no token entry on the phone.
- Choose Focused or Library mode in the browser companion; unrestricted Explore
has been removed.
- In Focused mode, combine the newest three eligible uploads per saved channel
into one list, ordered by release date. The companion can adjust this to one
through five and turn hiding watched videos on or off.
- Hide manually watched videos only after selecting each channel's recent
window, so watching a video never fills its place with an older upload.
- Never let a Short occupy or fill a per-channel window slot: the server
resolves candidates against real video metadata before selecting the
window, so a confirmed Short is skipped and quarantined instead of
consuming one of the channel's limited slots.
- Show the Channels tab either as one merged release list or grouped by
channel with each channel's remaining unwatched count; tapping a grouped
channel opens just that channel's limited release window.
- Keep deliberately saved videos, private playlists, and downloads available
from LightOS-style bottom navigation.
- In Library mode, browse and search the complete catalog of an allowed channel
with paired-device authorization and paged results.
- Search saved videos, playlist names and contents, and downloaded titles from
one library search; Library mode also includes saved channels.
- Filter each Focused view by all, audio-only, or video-enabled items from one
compact top-bar options control.
- Allow each selected video or whole channel to be listened to only or watched
and listened to.
- Download approved media to app-private storage, with progress, cancel, retry,
offline playback, and confirmed deletion from a Downloads tab.
- Preserve native video aspect ratios and provide an explicit screen-filling
fullscreen view without stretching or cropping.
- Exclude YouTube Shorts from search, libraries, playlists, history, playback,
and downloads.
There is no autoplay, comments, algorithmic Home feed, notifications, or
automatic public-instance rotation.
Channel feed behavior
Focused uses the newest available upload/replay window, not an unread archive.
For six saved channels and a limit of three, it can show up to eighteen videos;
marking one watched reduces that list until newer uploads arrive. Shorts
never occupy or fill a window slot, and livestreams and upcoming premieres are
excluded. Partial channel
failures are shown with a retry action instead of being reported as an empty
feed. No feed pagination, daily schedule, time limit, or completion counts are
added.
Watched status is stored on this phone and changes only when you select Mark
Watched on a video's details page, the listen-only/audio player, offline
media details, or its finished-playback screen. It works with watch history
and optional account-history sync turned off. Starting playback or closing a
video does not mark it watched. Saved videos and playlists remain available
even when their videos disappear from the channel feed. Completion is not
synchronized between phones.
The companion/server changes must be deployed together with the new client.
An older server will show a feed error until it provides
GET /api/lightious/v1/channel-feed; the client does not fall back to unrestricted
channel browsing. Existing Explore profiles migrate to curated Library mode.
Project structure
Lightious follows the same standalone composite-build pattern as
LooseWireDev/kelp:
:app is the Kotlin/Compose Light SDK tool.
- The repository owns its Gradle wrapper, settings, dependency catalog, tests,
and GitHub Actions.
- An adjacent Light SDK checkout supplies the Light Gradle plugin and
com.thelightphone:client through includeBuild dependency substitution.
- The companion control plane remains separate in
LooseWireDev/lightious-invidious.
The current SDK baseline is
LooseWireDev/light-sdk commit
52fbc5a8aedbd3c4c88037580709e53540086229. It is based on official Light SDK
v0.1.1 and includes the small composite-consumer allowlist patch also used by
Kelp. Lightious does not use Kelp's custom TIDAL RPC APIs.
Build it
You need JDK 17, Android SDK platform 36, and the Light SDK checked out beside
this repository:
parent/
├── light-sdk/
└── lightious/
Then run from the Lightious repository:
./gradlew :app:testDebugUnitTest :app:assembleDebug
The APK is written to app/build/outputs/apk/debug/app-debug.apk. If the SDK
lives elsewhere, pass -Plightious.sdkPath=/absolute/path/to/light-sdk.
The Light SDK development keystore signs local debug and release builds. The
GitHub release workflow uses a dedicated Lightious release key instead.
Install
Tagged releases will appear on the
Releases page. Install
or upgrade an APK with:
adb install -r lightious-vX.Y.Z-vcN.apk
The currently installed development build uses Light's shared development key.
A future APK signed with a new dedicated release key cannot replace that build
without either a one-time uninstall or an explicit Android signing-key rotation
plan. Do not publish the first tag until that choice is made.
Continuous integration and releases
.github/workflows/build.yml runs unit tests and assembles a debug APK for
every push to main and every pull request. The APK is retained as a workflow
artifact.
.github/workflows/release.yml runs when a v* tag is pushed. It fails unless
the tag matches versionName in app/lighttool.toml and all four signing
secrets are configured:
LIGHTIOUS_RELEASE_KEYSTORE_B64
LIGHTIOUS_RELEASE_STORE_PASSWORD
LIGHTIOUS_RELEASE_KEY_ALIAS
LIGHTIOUS_RELEASE_KEY_PASSWORD
The workflow tests and builds the minified release, verifies its signature,
package ID (com.loosewire.lightious), version code and name, writes a SHA-256
checksum, and publishes the APK and checksum to GitHub Releases.
Companion pairing and account sign-in
The companion-enabled Invidious fork exposes /lightious. Sign in there with a
normal Invidious account, select Explore or Focused mode, search for videos and
channels, add one result or a multi-selection, and arrange added videos into
private Lightious playlists. Search results never play on the companion site.
Each selected video or whole channel gets an audio-only or video-enabled policy.
Approve a phone using the 12-character code displayed by Lightious.
The phone creates its own random device credential and sends only its SHA-256
digest when pairing begins. The credential is stored with AES-GCM encryption
backed by the Android Keystore. Browser session cookies and account passwords
never enter the phone app. A paired phone refreshes companion policy before
showing a video and rechecks it with fresh media metadata before every audio or
video start, including resuming paused audio. Focused mode allows an exact
selected video or a video whose authoritatively reported channel is explicitly
allowed; an exact video policy overrides the channel default. Playlist
membership grants access only to that exact playlist item and never infers or
grants broader channel access.
Downloads follow the currently verified policy. Listen-only items save one
adaptive audio stream; video-enabled items save one muxed progressive stream
at 720p or below. Live/HLS media and separate adaptive video-plus-audio tracks
are not downloaded. If an app-wide language choice requires a separate adaptive
audio track, Lightious refuses to silently save a muxed video with different
audio and directs the user to save that item as listen-only instead. The
background job fetches fresh protected metadata and
re-resolves its short-lived signed media URL instead of persisting that URL.
Partial transfers can resume only when the stable stream identity still
matches; otherwise the partial file is discarded to avoid splicing formats.
Transient network and server failures retry through LightWork while retaining a
compatible partial transfer; user cancellation and deletion clean it up.
Downloaded files live under the app's private files directory and require no
broad storage permission.
Offline bytes cannot be recalled until the phone reconnects. After a successful
sync removes access, downgrades a video to listen-only, or confirms that the
pairing was revoked, Lightious deletes incompatible local copies. Explicitly
forgetting the companion on the phone also deletes that pairing's downloads.
The existing restricted Invidious bearer-token sign-in remains optional for
Explore-mode account feeds and watched-history sync. It is separate from the
companion device credential and never grants access to /lightious controls.
History and privacy
Search and watch history are stored only in the app's local Room database.
Recording can be disabled independently, and each history screen provides a
separate confirmed clear action.
Recent playback history records that an item was opened for playback. Completion
is separate: only the explicit Mark Watched action records a watched flag.
These flags are stored in a separate local database, preserving the legacy
history database and surviving recent-history clearing/pruning. Optional account
history sync sends explicitly marked items and retries queued completions after
offline use; merely starting a video no longer marks it watched on the server.
Instance requirements
The configured HTTPS server must expose the Invidious v1 API, video metadata,
and a playable media URL. Companion pairing additionally requires the
lightious branch of LooseWireDev/lightious-invidious
with its Lightious routes enabled and public HTTPS URL configured.
Paired playback always uses the server's short-lived, signed media gateway.
Proxy media applies only to unpaired or custom Explore-mode playback: enabling
it requests local=true, while disabling it normally uses the returned Google
video CDN URL directly. Protected live/HLS playback is not yet available.
Compatibility status
The UI, navigation, input, theming, and audio path use Light SDK components.
Video rendering uses Media3 and an Android TextureView, so Lightious is an
experimental sideloaded tool rather than an officially supported Light tool.
Materialious and Clipious were used only as behavioral references for the
documented Invidious HTTP API; no source from either project is included.
License
No project license has been selected yet. The source is public for inspection,
but redistribution and modification rights have not yet been granted.