Giter VIP home page Giter VIP logo

reitunes's Introduction

ReiTunes

My personal music library system, with clients and a server.

Dark UI Light UI

Why?

When I started, I had 3 priorities for my music collection:

  1. My collection needs to last forever (or at least until I kick the bucket)
  2. It should integrate well with music podcasts and online series
  3. It should have a good native Windows app that can sync across multiple devices and also operate offline

Those aren't really met by any existing music services. I don't know if any given streaming service will be around next year, let alone 40 years from now. iTunes Match is OK as a service but the Windows client is not.

So I decided to write my own app+service. How hard could it be? Well, 257 commits later... ๐Ÿ˜ฌ

What?

The Windows client is a UWP application. It can stream or download music from my personal collection, and it has a fast fuzzy-find search. There's also a cross-platform web UI client using Blazor Server but it's not quite as full-featured.

On the server side, a web API acts as a central sync point for library metadata. Music files are stored in cloud object storage and accessible over HTTPS.

Library metadata changes are treated as events; they are serialized to JSON and stored in SQLite locally immediately, then pushed to the server asynchronously later. You can think of the events like Git commits.

The entire library is rebuilt from events on launch. There are plenty of easy optimizations to be made here; benchmarks suggest that they will not be necessary for a long time.

SQLite and ASP.NET Core allow for in-memory distributed integration tests that run in NCrunch automatically in milliseconds. This is wonderful for development.

Acknowledgments

The library synchronization approach is heavily influenced by Building offline-first web and mobile apps using event-sourcing by Andrey Salomatin.

ReiTunes was partially motivated by Tom MacWright's excellent post about his own music library.

Disclaimers

This is provided with no promises around support or features. You will need to run your own server and bring your own music. Happy to chat about feature ideas, but I am writing this for myself, for fun.

Music piracy is bad; you should buy your music from a reputable source like Bandcamp.

reitunes's People

Contributors

rgwood avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.