MusicFree README

The project's README from github.com/maotoumao/MusicFree. As one markdown file: README.md.

MusicFree

中文 | English

GitHub Repo stars GitHub forks star

GitHub License GitHub Downloads (all assets, all releases) GitHub Issues GitHub package.json version

maotoumao%2FMusicFree | Trendshift

简介

一个插件化、定制化、无广告的免费音乐播放器,目前支持 Android 与 HarmonyOS,适配手机、平板、折叠屏与车机横屏。

桌面版来啦:https://github.com/maotoumao/MusicFreeDesktop

软件下载方式、插件使用说明、插件开发文档可去站点 https://musicfree.catcat.work 查看;后续进展可以关注公众号「一只猫头猫」。

公众号二维码

[!NOTE]

  • 如果你在其他的平台看到收费版/无广告版/破解版,都是假的,本来就是开源项目,遇到收费版请直接举报;
  • 软件首先是自用,顺带分享出来希望可以帮助到有需要的人;是业余作品,会尽量保持维护,不过每天能写的时间有限,更新频率不定,请谨慎使用;
  • 软件的第三方插件、及其所产生的数据与本软件无关,请合理合法使用,可能产生的版权数据请及时删除;
  • 请不要以 VIP/破解版为噱头进行宣传,示例仓库基于互联网公开接口封装,并过滤掉所有 VIP、试听、付费歌曲,且示例仓库以后也不会提供具备破解功能的插件;
  • 本软件的相关信息只会主动投放在 Git 仓库以及公众号「一只猫头猫」中,如果希望写文章介绍本软件请自便,但还烦请如实陈述,涉及到示例仓库请给插件源打个码,不要给软件增加一些不实的功能;描述冲突的地方以本仓库为准。

项目使用约定

本项目基于 AGPL 3.0 协议开源,使用此项目时请遵守开源协议。除此外,希望你在使用代码时已经了解以下额外说明:

  1. 打包、二次分发 请保留代码出处:https://github.com/maotoumao/MusicFree
  2. 请不要用于商业用途,合法合规使用代码;
  3. 如果开源协议变更,将在此 GitHub 仓库更新,不另行通知。

[!CAUTION] 小米/华为/vivo 等应用市场的 MusicFree 和本软件无关,是套用本软件名称和 Logo 的广告软件。

特性

插件

插件简介

插件本质上是一个满足插件协议的 CommonJS 模块,定义了搜索、播放、专辑与歌手详情、导入歌单、获取歌词等函数。插件开发者只需要关心输入输出逻辑,分页、缓存等都交给 MusicFree 处理。插件开发文档见 这里。

需要注意的是:

插件使用

安装路径为「侧边栏 → 插件管理 → 右上角添加插件 → 从网络地址安装 / 从本地文件安装」,支持 .js 文件和 .json 描述文件。示例插件见 这个仓库,可以直接从网络安装:https://raw.gitcode.com/maotoumao/MusicFreePlugins/raw/master/plugins.json

图文版使用说明见站点:https://musicfree.catcat.work/usage/mobile/install-plugin.html

下载

请转到 发布页 下载(打不开可以把 github 换成 gitcode),公众号回复 MusicFree 也可以。

问答与反馈

应用截图

以下截图仅为 UI 样例,使用的是虚构数据的演示插件,软件内部不提供任何音源。

首页 侧边栏 榜单
首页侧边栏榜单
榜单详情 正在播放 歌词
榜单详情正在播放歌词
搜索 本地音乐 外观与主题
搜索本地音乐外观与主题

榜单与推荐歌单的网格随可用宽度增加列数。横屏或宽而矮的窗口中,可用宽度约 600dp 以上时,歌单 / 专辑 / 榜单详情采用左右分栏,如下图所示。

手机横屏的榜单详情

从源码构建

需要 Node.js 22(≥ 22.22.1)、JDK 17、Android SDK(版本见 android/build.gradle)。

git submodule update --init --recursive
npm ci
npm start          # 开发服务器(expo),保持运行
npm run android    # 另开一个终端

提交前的检查:npx tsc --noEmit、npm run lint、npm run depcruise、npx jest。

支持这个项目

如果你喜欢这个项目,或者希望我可以持续维护下去,你可以通过以下任何一种方式支持我 ;)

  1. Star 这个项目,分享给你身边的人;
  2. 关注公众号「一只猫头猫」或 B 站 不想睡觉猫头猫 获取最新信息;
  3. 关注猫头猫的 小红书。

更新日志

点击这里


本项目仅供学习参考使用,基于 AGPL 3.0 协议开源;请在符合法律法规的情况下合理使用本项目,禁止用于商业目的使用。

MusicFree (maotoumao/MusicFree)

harmonyos
Searching Database…

What is this?A free, open-source, ad-free music player for Android and HarmonyOS. The app itself is only a player — it bundles no music sources; searching, playback and playlists all come from plugins you install.
So how does it actually find music if the app ships with no sources?Through plugins. Each plugin is a commonjs module that implements the search, playback and import logic, while pagination and caching are handled by MusicFree itself — so any internet source works as long as a plugin exists for it.
How do I get it working on my phone?Install the app, then open the sidebar's Plugin Settings — plugins can be added from a local file or from the web (.js plugin files and .json descriptors are both supported). The author links a repo of example plugins.
How stable is it day to day?It's a hobby project: the author gets roughly half an hour a day for it, so expect a long stretch of unstable beta versions with irregular updates. Use it with that in mind.
Is there an iPhone or desktop version?No iPhone build: the README says only Android and HarmonyOS are supported, though it announces a desktop version as newly released.
I saw a paid MusicFree in an app store — is that this app?No. Any paid, 'no-ads' or cracked copy sold elsewhere is fake — report it. The MusicFree listings on Xiaomi, Huawei and vivo app stores are unrelated adware that just copied the name and logo.
What can a plugin actually do?Search for music, albums and artists; play tracks; open album and artist pages; import singles and whole playlists; and fetch lyrics.
Can it play VIP or paid songs for free?No. The example plugin repo wraps public APIs and filters out all VIP, preview-only and paid tracks, and the author says cracking plugins will never be provided — you can build your own offline music library instead.
Can I link the lyrics of one song to another?Yes. Link song A's lyrics to song B and both songs will display B's lyrics; chains like A -> B -> C work too, with all three showing C's lyrics.
Creator
maotoumao
Size
21.8 MB
Stars
28.7K
Age
4y
Commits · 90 Days