Skip to content
obazinPublic

About

Open-source desktop audio player built with Slint and Rust

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

168 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Janis

Open-source desktop audio player. Local library with real metadata, curated web radio, a live 10-band equalizer, and live waveform visualisation — wrapped in a neon-on-violet "prism" interface.

A native application written in Rust, with a Slint interface. Audio decodes and plays in Rust — cpal for output, symphonia for decoding — through ten peaking filters and an analyser, so the EQ and the visualisers react to the actual signal. Named for Janis Joplin.

Features

  • Mini player — the bottom bar, on every screen: what plays, the transport, and the shape of the whole track as a DAW draws it (peaks around an RMS body, the played part in colour, click to seek), read in the background for local files and Jellyfin songs alike; a station shows a live oscilloscope.
  • Now Playing — hero album art (embedded cover art, or a generated prism gradient), track/artist/composer/album metadata, live waveform with click-to-seek, transport with shuffle/repeat, volume, a queue card (up next / playlist / current album), and an artist spotlight drawn from your library.
  • Library — scan folders or import files; albums, artists and songs views grouped from real tags (lofty); favourite songs you star from any list or from Now Playing, gathered in a Favourites tab; playlists made from a right-click on any song (Add to playlist, or a new one), shown as cards, sorted into groups and given pictures of your own; search from the titlebar.
  • Jellyfin — sign in to your Jellyfin server in Settings and its songs join the library, playing the original files from the server through the same engine (EQ, gapless, normalization with the server's own gains, waveform), with the server's cover art; every library of the server is synced, and each can be switched off to keep its songs out of Janis; favourites and playlists stay in step with the server both ways.
  • Discover — shelves derived from your own library (recently added albums, artists, rediscoveries).
  • Web Radio — curated station list (SomaFM, FIP, Radio Paradise, KEXP, …) with country and genre filters, and favourites you star.
  • Local Files — drop zone (real OS drag-and-drop), scanned-library table with format badges, watched-folder management, rescan.
  • 10-band EQ — bottom-sheet graphic equalizer with presets (Rock, Jazz, Bass Boost, …), applied live to playback, persisted across launches.
  • Settings — playback switches (gapless, crossfade and normalization are live in the engine and on by default; exclusive output is persisted only), output info, the Jellyfin server, language (English / Français).

User-added stations are on the roadmap.

Install

Every release on the releases page carries a bundle per platform, built by the release GitHub Actions workflow. None of them is signed with a paid certificate, so each platform asks for one extra step the first time.

  • macOS — the quickest route is the installer script, which downloads the DMG for your Mac, copies Janis into Applications and clears the quarantine flag, so the app opens with no prompt at all (re-run it to upgrade):

    curl -fsSL https://raw.githubusercontent.com/obazin/janis/main/scripts/macos/install.sh | sh

    Or download the DMG by hand (Janis_x.y.z_aarch64.dmg for Apple Silicon, Janis_x.y.z_x64.dmg for Intel) and drag Janis to Applications: the app is ad-hoc signed and not notarized, so the first launch then shows "Apple could not verify Janis is free of malware". Click Done, open System Settings → Privacy & Security and click Open Anyway next to Janis, or clear the flag once from a terminal: xattr -dr com.apple.quarantine /Applications/Janis.app.

  • Windows (Janis_x.y.z_x64-setup.exe) — the installer is unsigned, so SmartScreen shows "Windows protected your PC". Click More info → Run anyway.

  • Linux (x86_64 and arm64) — .AppImage: chmod +x and run (needs FUSE 2, libfuse2 on Debian/Ubuntu). .deb: sudo apt install ./Janis_x.y.z_amd64.deb. .rpm: sudo dnf install ./Janis-x.y.z-1.x86_64.rpm. The packages depend on ALSA, and on the fontconfig, xkbcommon and OpenGL libraries a desktop already has.

  • Nix (Linux and macOS) — the flake packages the app, built from source on your machine, so nothing is downloaded from the releases page and macOS never quarantines it:

    nix run github:obazin/janis              # try it without installing
    nix profile install github:obazin/janis  # install into your user profile

    In a NixOS, nix-darwin or Home Manager configuration, add janis.url = "github:obazin/janis"; to the flake inputs and either list inputs.janis.packages.${pkgs.system}.default in the packages, or add inputs.janis.overlays.default to nixpkgs.overlays and use pkgs.janis. On macOS the package carries Applications/Janis.app next to the Janis command, which nix-darwin and Home Manager link where Spotlight finds it.

Development

Requires Nix + direnv (the dev shell pins the Rust toolchain and carries the libraries the window and the audio output need on Linux — see flake.nix).

direnv allow          # once — enters the dev shell automatically
cargo run             # the app (`just run`, or plain `run`, do the same)

Quality gates run locally (the only workflow in CI is the release build):

just check            # all three below
just fmt-rust-check   # rustfmt verification
just clippy           # cargo clippy -D warnings
just test-rust        # cargo test

just release-macos (or release-linux, release-windows) builds that platform's installers into dist/, ad-hoc signed on macOS; it needs cargo-packager, which the Nix dev shell provides on macOS (elsewhere: cargo install cargo-packager --locked). just install-macos then replaces the Janis in /Applications with the one just built. just release patch (or minor, major), in the dev shell on a clean main, cuts a version: it bumps Cargo.toml, Cargo.lock and flake.nix, writes CHANGELOG.md with git-cliff from the commit messages (Conventional Commits), shows the notes and asks before it commits, tags and pushes. The tag starts the release workflow, which checks that it matches both declared versions, builds every platform and opens a draft release holding the bundles, with that version's changelog as its notes; publishing the draft is the last step, by hand. just release-preview minor shows the next notes without changing anything.

nix run (or nix build .#janis) builds and launches the app through Nix alone, with no dev shell required.

Architecture in one paragraph

One process, all Rust. The scanner walks watched folders, reads tags with lofty, and upserts into a bundled-SQLite janis.db. Sound is the audio-stack-rs crate's: an engine thread decodes with symphonia, resamples only when the file and the device disagree, and feeds a lock-free ring that a cpal callback drains through ten peaking filters into the output device. The queue and the transport live there too, so playback is independent of the UI. Web radio takes the same path — buffered over HTTP into the same decoder — so stations get the equalizer and a real visualiser, and their ICY track titles show up in Now Playing. A Jellyfin server's songs are synced into the same tracks table and play their original files, downloaded as they play and seeked with range requests, so they behave exactly like local files. What the screens show lives in plain state modules that decide and return effects; one controller on the interface thread carries the effects out and pushes what changed to the Slint globals the screens read. The interface (ui/) is a three-layer atomic design system (design system → features → screens, one-way dependencies) drawing every color, size and duration from one token file. Details in CLAUDE.md and docs/specs.md; the reasons behind them in decisions-log.md.

License

GPL-3.0. Fonts (Hanken Grotesk, Familjen Grotesk, Space Mono) are bundled under the SIL Open Font License — see ui/fonts/.

About

Open-source desktop audio player built with Slint and Rust

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages