Awesome
<img src="Presentation/app_logo.svg" width="5219"></img>
<br></br>
muzik-offline
A cross platform, local music player that is an offline(no streaming) version of <a href="https://github.com/waveyboym/Muzik">muzik</a>. This app allows you to listen to music that is stored on your local machine, that being music in mp3, wav, ogg and flac format.
Table of Contents
- muzik-offline
- Table of Contents
- I am a user/tester
- Usage
- I am a developer
- Node modules used
- Rust libraries used
I am a user/tester
- Navigate to the <a href="https://github.com/waveyboym/muzik-offline/releases">releases tab</a> and find the latest app release for your operating system.
- Download it and install and enjoy the application
- Please read the <a href="#usage">usage</a> section for some extra information.
- Also note that you can report <a href="https://github.com/muzik-apps/muzik-offline/issues/new?assignees=waveyboym&labels=bug&projects=&template=bug_report.md&title=%5BBUG%5D">bugs/issues</a> or make <a href="https://github.com/muzik-apps/muzik-offline/issues/new?assignees=waveyboym&labels=enhancement&projects=&template=feature_request.md&title=%5BFEATURE+REQUEST%5D">feature requests</a>
Usage
- Some shortcuts include
- <small><kbd>
SPACE
</kbd></small> - Pause/Play music - <small><kbd>
CTRL/CMD
</kbd> + <kbd>SHIFT
</kbd> + <kbd>F
</kbd></small> - Open/Close settings - <small><kbd>
CTRL/CMD
</kbd> + <kbd>S
</kbd></small> - Focus on search bar - <small><kbd>
CTRL/CMD
</kbd> + <kbd>I
</kbd></small> - Show song info - <small><kbd>
UP
</kbd></small> or <small><kbd>DOWN
</kbd></small> - scroll song by song - <small><kbd>
LEFT
</kdb></small> or <small><kbd>RIGHT
</kdb></small> - seek by fixed value - <small><kbd>
CTRL/CMD
</kbd> + <kbd>P
</kbd></small> or <small><kbd>ENTER
</kbd></small> - Play the selected song - <small><kbd>
CTRL/CMD
</kbd> + <kbd>SHIFT
</kbd> + <kbd>A
</kbd></small> - Add to playlist - <small><kbd>
CTRL/CMD
</kbd> + <kbd>SHIFT
</kbd> + <kbd>L
</kbd></small> - Play later - <small><kbd>
CTRL/CMD
</kbd> + <kbd>SHIFT
</kbd> + <kbd>N
</kbd></small> - Play Next
- <small><kbd>
I am a developer
Development Cycle
- Download <a href="https://tauri.app/v1/guides/getting-started/prerequisites">the pre-requisites</a> for tauri only by following the pre-requisites page for your operating system.
- If you are on linux OS(debian/ubuntu), run
sudo apt-get install libasound2-dev
- Clone this repo, specifically the <a href="https://github.com/muzik-apps/muzik-offline">main-app-dev</a> branch
- run
cd muzik-offline/muzik-offline
- run
npm install
- This project uses <a href="https://discord.com/developers/docs/rich-presence/how-to">discord rpc</a>, so you will need a client id, otherwise the code won't compile
- To get a client id, setup a new application on <a href="https://discord.com/developers/applications">discord developer portal</a> and then place your client id in an
.env
file in the <a href="https://github.com/muzik-apps/muzik-offline/tree/main-app-dev/muzik-offline/src-tauri">src-tauri</a> directory - The env file should look like this:
DISCORD_CLIENT_ID=<Your client id goes here>
- If you are on linux/macos or any unix based OS, please navigate to <a href="https://github.com/muzik-apps/muzik-offline/blob/main-app-dev/muzik-offline/src-tauri/tauri.conf.json">tauri.config.json</a> and under the
windows
object, change thedecorations
property totrue
- run
npm run tauri dev
- You can encrypt your env file with:
openssl enc -aes-256-cbc -salt -pbkdf2 -in src-tauri/.env -out src-tauri/.env.enc -pass pass:{pass-key}
Building
- Clone the <a href="https://github.com/muzik-apps/muzik-offline/tree/releases">releases</a> branch. It is the most stable and ready to go branch
- Before you create a build, you will have to embed any env variables into the rust code otherwise the application will panic if you try to run it. The env variables are only meant to be used in the development cycle.
- If you want to create a production build, run
npm run tauri build
- If you want to create a <a href="https://tauri.app/v1/guides/debugging/application#using-the-inspector-in-production">debug production build</a>(one where you have access to devtools), run
npm run tauri build -- --debug
Please note that when you run npm run tauri dev
, npm run tauri build
or npm run tauri build -- --debug
for the first time, it may take a lengthy amount of minutes to compile everything. However this only occurs just on your first run. In subsequent runs, it will be faster.
Node modules used
- <a href="https://www.npmjs.com/package/@tauri-apps/cli">tauri-apps/api</a>
- <a href="https://dexie.org/">dexie</a>
- <a href="https://www.framer.com/motion/">framer motion</a>
- <a href="https://react.dev/">react and react-dom</a>
- <a href="https://reactrouter.com/en/main">react-router-dom</a>
- <a href="https://www.npmjs.com/package/react-viewport-list">react viewport list</a>
- <a href="https://sass-lang.com/">sass</a>
- <a href="https://docs.pmnd.rs/zustand/getting-started/introduction">zustand</a>
Rust libraries used
- <a href="https://crates.io/crates/tauri">tauri</a>
- <a href="https://crates.io/crates/serde">serde</a>
- <a href="https://crates.io/crates/serde_json">serde_json</a>
- <a href="https://crates.io/crates/id3">id3</a>
- <a href="https://crates.io/crates/lofty">lofty</a>
- <a href="https://crates.io/crates/tokio">tokio</a>
- <a href="https://crates.io/crates/base64">base64</a>
- <a href="https://crates.io/crates/image">image</a>
- <a href="https://crates.io/crates/kira">kira</a>
- <a href="https://crates.io/crates/rand">rand</a>
- <a href="https://crates.io/crates/rayon">rayon</a>
- <a href="https://crates.io/crates/sled">sled</a>
- <a href="https://crates.io/crates/dirs">dirs</a>
- <a href="https://crates.io/crates/discord-rich-presence">discord-rich-presence</a>
- <a href="https://crates.io/crates/dotenv">dotenv</a>