NLNet Fund Update by Mirlo

Halfway there: an update on our NLnet-funded work

Last year NLnet agreed to fund a big chunk of work on Mirlo. We've now finished about half of it, and wanted to share what’s landed so far. We apologize in advance for what will be a pretty technical post!

Mirlo on the social web

TL;DR: Artists on Mirlo can now choose to appear on feeds across other services of the “social web”, like Mastodon, Ghost, or Wordpress.

Technically: Artists on Mirlo are now full ActivityPub actors. We rebuilt our federation layer on Fedify, which makes it a lot sturdier, and turned it on for everyone. You can follow an artist from Mastodon or any other fediverse server, either by searching for them or with the new "follow from the fediverse" option in the follow pop-up. New posts and releases go out to those followers. Posts on Mirlo can now @-mention people across the social web, and follows show up in the artist's notification feed. Links to Mirlo releases also unfurl with a proper embedded player, thanks to oEmbed support and reworked embed widgets.

Running your own Mirlo

TL;DR: We want anyone to be able to run a Mirlo website, and we’ve taken huge strides to make it easier to install Mirlo and set it up correctly on your own server. 

Yesterday, for Mirlo Mondays, we talked about labels on Mirlo and we feel that this is an area that's a perfect use case for self-installing and "being your own Mirlo", but more on that in an upcoming blog post. For now, here's some work we've been doing in that specific realm.

Documentation. There's now a Docker install guide, a step-by-step guide to deploying on Hetzner (written from a real deployment), and instructions for a bare-bones manual install.

Setup guide. A fresh instance now walks the first admin through setting it up: naming the instance, picking colours and a logo, configuring email, payments and spam protection, and running a system check. A dashboard card and banner remind admins of any steps still left to do. The payment key can be changed from the admin settings without a restart.

Theming. Instance admins can set their own name, colours and logo, and these carry through the whole site, from emails and page titles to the player. Artists got a reworked colour system that keeps text readable whatever palette they choose.

Testing. We built an end-to-end Cypress suite that runs in CI against the full stack, covering purchases, subscriptions, downloads, posts and admin flows.

Payments

TL;DR: Our purchasing flow is now much simpler for us to maintain and reason about. This work lets us think a bit more optimistically about integrating other payment processors.

All purchases (albums, tracks, merch, subscriptions, tips) now go through one shared Transaction model, instead of each type of purchase keeping its own records. This is the groundwork needed before Mirlo can support payment processors other than Stripe.

Accessibility

To make the website more usable for people with low vision and who use screen readers, we went through the parts of Mirlo that artists use to manage their releases, merch and subscriptions, and the parts listeners use to play music. That meant skip links, keyboard and screen-reader support for release and track cards, accessible menus, sign-up and log-in forms, a proper switch pattern for toggles, focus management in modals and forms, and fixes to the footer player.

We still have to go through some of the other parts of the site to wrap this work up.

Moderation

As more instances come online, admins need tools to keep spam and abuse in check:

  • Every user now has a trust level, which admins can change and instances can rename. Every change is recorded, and a user is automatically marked as verified once they complete Stripe's identity check.

  • Listener reports and automated image checks create content flags, which show up in a new flagged-content page where admins can act on them directly.

  • Artists can report contact messages as spam. Each report counts as a strike that lowers the sender's trust level, and enough strikes disable the account.

  • Admins can disable artists and releases, which hides them from everyone else.

Decentralised streaming

Together with the Fairplayer folks we've been working on letting music published on Mirlo play in other places. If an artist opts in to have their music accessible across the social music web, Mirlo now publishes their catalogue in a standardized format (Canimus), with track numbers, artwork and links to support the artist. A new streaming route lets federated players like Fairplayer stream that music directly, and Fairplayer can now read Mirlo's Canimus feed as a source.

Leaving Mirlo, and arriving

Artists can now upload a whole album as a zip file, and Mirlo reads the tracks and their tags to fill in the release for them. We're currently working on the big project of planning out the ability for artists to choose to leave Mirlo entirely and take all of their music elsewhere. We're going to let artists export their site to a static service like Faircamp, so that they can install it on their own server.

What's next

In the second half we'll finish the fediverse inbox, build artist profile and blog exports so artists can take everything with them, and keep working on federated streaming: API key rotation, a handshake between producer and consumer sites, and finer-grained consent for artists over where their music goes.

Thanks to NLnet and the NGI Zero programme for making this possible, and to everyone who has contributed code, reports and feedback along the way.


This is a companion discussion topic for the original entry at https://mirlo.space/team/posts/857
2 Likes