Skip to content
armandleopoldPublic

Repository files navigation

Leto

Leto

Remote desktop and game streaming, unified. One app, written in Rust, for the PC you share and for every device you reach it from: desktop, phone and browser.

Leto is named after the mother of Apollo and Artemis. It starts from the projects of the same names, Apollo and Artemis, and stays compatible with Moonlight clients and Sunshine hosts.

Status

Young, and moving fast. The app finds PCs that run Apollo or Sunshine, pairs with them, lists their apps and streams one: you see its picture, hear its sound and play with the keyboard, the mouse and gamepads. It does so on Windows, Linux and macOS, on Android phones and TVs, and in a browser, through a small bridge that runs on your network. It sends the microphone and the camera of your device to a PC that takes them, and reaches a PC at home through a WireGuard tunnel of its own.

On the PC, Leto runs beside Apollo or Sunshine: it receives the camera and the microphone of a device, and shows the devices Apollo is paired with and what each may do. Leto's own host, to replace them, comes next.

Tried on real devices: the Windows app with a Windows 11 PC that runs Apollo (picture, keyboard and mouse), and the Android app on a phone (a stream at 720p, its microphone and its camera). The rest was checked against the stand-in host of the tests. See leto.re for the details.

Step State
1. Foundations Done
2. One client for Windows and the web Done
3. The Android client Done
4. The host, ported from Apollo In progress

Goals

  • One app instead of a host program, a desktop client, a mobile client and a web client that each look and behave differently.
  • Simple first. It should work without opening a settings page.
  • Microphone and camera to the host. The microphone and the camera of the device in your hand appear on the PC as a normal microphone and webcam.
  • Compatible. Existing Moonlight and Artemis clients work with a Leto host, and Leto works with existing Sunshine and Apollo hosts.

Try it

You need Rust and a C++ compiler (the Visual Studio Build Tools on Windows). The right Rust version installs itself. Installing NASM too makes video decoding several times faster.

cargo run -p leto                 # the app
cargo run -p leto-cli -- pcs      # the command line: the PCs on your network
cargo xtask web                   # the web client, into dist/web

The app looks for your PC on the network. Choose it, type the PIN the app shows in Apollo or Sunshine on the PC, then choose an app to stream it.

To use Leto from a browser, on this computer or another device of your network, build the web client and start its bridge:

cargo xtask web                   # once, and after each change
cargo run -p leto-cli -- bridge   # prints the address to open, and a code

Open the address in the browser. It warns that the certificate is the bridge's own: go on. Then type the code the bridge printed. The browser is asked once.

Something went wrong? leto-cli about prints the folder of Leto's logs. Send that folder, which holds no secret, and never the folder around it, which holds this device's key.

Documentation

Licence

GPL-3.0-only, like Apollo and Sunshine. See LICENSE.

Releases

Used by

Contributors

Languages