@coflyn/mori 1.1.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coflyn/mori",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "Universal media downloader CLI. Save anything, from anywhere. No watermarks. No tracking.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -13,7 +13,8 @@
13
13
  "engine.js",
14
14
  "README.md",
15
15
  "CHANGELOG.md",
16
- "LICENSE"
16
+ "LICENSE",
17
+ "translations"
17
18
  ],
18
19
  "engines": {
19
20
  "node": ">=18.0.0"
@@ -0,0 +1,133 @@
1
+ <p align="center">
2
+ <h1 align="center">@coflyn/mori</h1>
3
+ <p align="center"><strong>CLI Downloader Media Universal</strong></p>
4
+ <p align="center"><em>Download media apa saja, dari mana saja. Tanpa watermark. Tanpa pelacak.</em></p>
5
+ <p align="center"><a href="../README.md">English</a> · <a href="README-zh-CN.md">简体中文</a> · <strong>Bahasa Indonesia</strong></p>
6
+ </p>
7
+
8
+ <p align="center">
9
+ <a href="https://www.npmjs.com/package/@coflyn/mori"><img src="https://img.shields.io/npm/v/@coflyn/mori?style=flat-square&color=blue" alt="Versi NPM"></a>
10
+ <a href="https://www.npmjs.com/package/@coflyn/mori"><img src="https://img.shields.io/npm/dm/@coflyn/mori?style=flat-square&color=green" alt="Total Download NPM"></a>
11
+ <a href="https://github.com/coflyn/Mori"><img src="https://img.shields.io/badge/License-GPL--3.0-blue?style=flat-square" alt="Lisensi"></a>
12
+ <a href="https://github.com/coflyn/Mori"><img src="https://img.shields.io/badge/GitHub-coflyn%2FMori-black?style=flat-square&logo=github" alt="GitHub"></a>
13
+ </p>
14
+
15
+ <p align="center">
16
+ <img src="https://raw.githubusercontent.com/coflyn/Mori/main/assets/cli.webp" width="90%" alt="Pratinjau Mori CLI">
17
+ </p>
18
+
19
+ ---
20
+
21
+ Antarmuka baris perintah (CLI) untuk **[Mori](https://github.com/coflyn/Mori)**. Download video tanpa watermark, foto beresolusi penuh, audio, seluruh isi playlist, serta satukan galeri foto menjadi file PDF dari 27 platform langsung lewat terminal.
22
+
23
+ ## Cara Pakai Cepat
24
+
25
+ Jalankan langsung tanpa perlu install global lewat `npx`:
26
+
27
+ ```bash
28
+ # Mode interaktif (REPL)
29
+ npx @coflyn/mori
30
+
31
+ # Download link langsung
32
+ npx @coflyn/mori "https://www.tiktok.com/@user/video/123456789"
33
+
34
+ # Download audio saja (MP3)
35
+ npx @coflyn/mori "https://youtu.be/dQw4w9WgXcQ" -a
36
+
37
+ # Download semua lagu di playlist atau album sekaligus
38
+ npx @coflyn/mori "https://www.youtube.com/playlist?list=PLxxx" -y
39
+
40
+ # Kompilasi postingan multi-foto menjadi satu file PDF
41
+ npx @coflyn/mori "https://www.instagram.com/p/C_abc123/" -p
42
+ ```
43
+
44
+ Atau pasang secara global di perangkat:
45
+
46
+ ```bash
47
+ npm install -g @coflyn/mori
48
+ mori
49
+ ```
50
+
51
+ ---
52
+
53
+ ## Platform yang Didukung
54
+
55
+ | Kategori | Platform | Format yang Didukung |
56
+ | :--- | :--- | :--- |
57
+ | **Media Sosial & Video** | TikTok, Douyin, YouTube, Instagram, Facebook, Twitter/X, Threads, Reddit, Bilibili, Doodstream | Video bebas watermark, stream 1080p, postingan foto/slide, story, audio |
58
+ | **Musik & Audio** | Spotify, YouTube, SoundCloud, Apple Music, Bandcamp | Single track, album penuh, diskografi, playlist (MP3 128–320 kbps) |
59
+ | **Gambar & Ilustrasi** | Pinterest, Pixiv, RedNote (Xiaohongshu) | Gambar resolusi asli, galeri ilustrasi, animasi Ugoira |
60
+ | **Cloud & File Hosting** | TeraBox, MediaFire, Sfile, Catbox, Pixeldrain, Krakenfiles, Google Drive | Resolusi link langsung, batch link, album koleksi banyak file |
61
+ | **Shortener & Resolver** | SafeLinkU, Sub2Unlock, Rekonise, Stargon / Link bypasser | Bypass gateway menuju link file asli |
62
+ | **Anime & Manga** | Otakudesu, Gogoanime, Komikindo, Komiku, Asura Scans | Pencarian judul langsung dari CLI, stream episode, kompilasi chapter komik ke PDF |
63
+
64
+ ---
65
+
66
+ ## Opsi Perintah (Flags)
67
+
68
+ ```text
69
+ PENGGUNAAN:
70
+ mori [URL] [OPSI]
71
+ npx @coflyn/mori [URL] [OPSI]
72
+
73
+ OPSI:
74
+ -o, --output <folder> Tentukan folder download (default: ~/Downloads/Mori)
75
+ -e, --engine <auto|mori|scrapr> Pilih engine scraper (default: auto)
76
+ -s, --server <1|2> Pilih mirror server (TikTok, IG, YouTube, X, Spotify)
77
+ -a, --audio Ambil stream audio saja (MP3/M4A)
78
+ -p, --pdf Kompilasi postingan multi-foto jadi 1 file PDF
79
+ -c, --clip Ambil dan download link dari clipboard sistem
80
+ -y, --yes Download otomatis tanpa konfirmasi (ambil kualitas terbaik atau seluruh playlist)
81
+ -i, --info Lihat metadata dan daftar stream tanpa mendownload
82
+ -u, --update Cek pembaruan paket dan patch OTA scraper
83
+ -h, --help Buka panduan bantuan
84
+ -v, --version Tampilkan nomor versi
85
+ ```
86
+
87
+ ---
88
+
89
+ ## Shell Interaktif & Perintah Slash
90
+
91
+ Menjalankan `mori` tanpa argumen akan membuka antarmuka terminal interaktif. Masukkan link atau judul anime/komik untuk mulai, atau gunakan perintah berawalan `/`:
92
+
93
+ | Perintah | Alias | Penjelasan |
94
+ | :--- | :--- | :--- |
95
+ | `/clip` | `/paste` | Ambil dan download link yang ada di clipboard |
96
+ | `/audio [url]` | `/mp3` | Download stream audio saja (MP3/M4A) |
97
+ | `/pdf [url]` | — | Gabungkan galeri foto menjadi satu file PDF |
98
+ | `/batch` | — | Download banyak tautan sekaligus (dipisah spasi atau baris baru) |
99
+ | `/play [nomor]` | — | Putar file hasil download di pemutar media bawaan komputer |
100
+ | `/history [nomor]` | — | Lihat riwayat download, download ulang, atau hapus riwayat (`/history clear`) |
101
+ | `/delete` | `/del`, `/rm` | Hapus riwayat download secara interaktif (bisa sekalian hapus file di disk) |
102
+ | `/open` | — | Buka folder hasil download di Finder atau File Explorer |
103
+ | `/dir [path]` | — | Cek atau ubah lokasi folder download default |
104
+ | `/server` | — | Ganti server mirror scraper default |
105
+ | `/engine` | — | Ganti mode engine (Mori Engine, Scrapr Engine, atau Auto) |
106
+ | `/rollback` | — | Kembalikan engine scraper ke versi atau commit sebelumnya |
107
+ | `/info [url]` | `/inspect` | Tampilkan detail stream tanpa mendownload file |
108
+ | `/retry` | `/again` | Download ulang link yang terakhir diproses |
109
+ | `/ping [host]` | — | Uji latensi jaringan dan paket hilang (default: 1.1.1.1) |
110
+ | `/stats` | — | Tampilkan statistik download, kuota disk terpakai, dan ringkasan per platform |
111
+ | `/platforms` | `/platform` | Tampilkan daftar 27 platform yang didukung |
112
+ | `/config` | — | Lihat konfigurasi aktif, lokasi penyimpanan, dan versi engine |
113
+ | `/update` | `/u` | Cek pembaruan CLI di npm dan patch OTA scraper dari GitHub |
114
+ | `/reset` | — | Kembalikan pengaturan dan riwayat Mori ke setelan awal |
115
+ | `/clear` | `/cls` | Bersihkan layar terminal |
116
+ | `/help` | `/?` | Tampilkan ringkasan perintah |
117
+ | `/exit` | `/quit`, `/q` | Keluar dari CLI |
118
+
119
+ ---
120
+
121
+ ## Detail Teknis
122
+
123
+ - **Arsitektur Dual-Engine**: Mori memakai modul scraper internal dan otomatis beralih ke engine Scrapr jika struktur halaman platform target berubah.
124
+ - **Pembaruan OTA (Over-The-Air)**: Logika scraper bisa diperbarui lewat commit GitHub tanpa harus menunggu rilis paket baru di npm. Gunakan `/update` atau `/rollback` untuk mengatur versi.
125
+ - **Antrean Playlist & Album**: Menempelkan playlist YouTube, album Spotify, atau daftar lagu Apple Music akan memunculkan nomor serta judul lagu asli. Kamu bisa memilih download semua secara berurutan atau hanya lagu tertentu.
126
+ - **Penyimpanan Lokal**: Seluruh konfigurasi dan riwayat download tersimpan di perangkat kamu (`~/.mori`). Tidak ada telemetri maupun analitik.
127
+
128
+ ---
129
+
130
+ ## Lisensi
131
+
132
+ Didistribusikan di bawah [Lisensi GNU General Public License v3.0](https://github.com/coflyn/Mori/blob/main/LICENSE).
133
+ Bagian dari proyek **[Mori](https://github.com/coflyn/Mori)**.
@@ -0,0 +1,133 @@
1
+ <p align="center">
2
+ <h1 align="center">@coflyn/mori</h1>
3
+ <p align="center"><strong>通用多媒体下载 CLI</strong></p>
4
+ <p align="center"><em>随处保存,想下就下。无水印,无追踪。</em></p>
5
+ <p align="center"><a href="../README.md">English</a> · <strong>简体中文</strong> · <a href="README-id.md">Bahasa Indonesia</a></p>
6
+ </p>
7
+
8
+ <p align="center">
9
+ <a href="https://www.npmjs.com/package/@coflyn/mori"><img src="https://img.shields.io/npm/v/@coflyn/mori?style=flat-square&color=blue" alt="NPM 版本"></a>
10
+ <a href="https://www.npmjs.com/package/@coflyn/mori"><img src="https://img.shields.io/npm/dm/@coflyn/mori?style=flat-square&color=green" alt="NPM 下载量"></a>
11
+ <a href="https://github.com/coflyn/Mori"><img src="https://img.shields.io/badge/License-GPL--3.0-blue?style=flat-square" alt="开源协议"></a>
12
+ <a href="https://github.com/coflyn/Mori"><img src="https://img.shields.io/badge/GitHub-coflyn%2FMori-black?style=flat-square&logo=github" alt="GitHub"></a>
13
+ </p>
14
+
15
+ <p align="center">
16
+ <img src="https://raw.githubusercontent.com/coflyn/Mori/main/assets/cli.webp" width="90%" alt="Mori CLI 预览">
17
+ </p>
18
+
19
+ ---
20
+
21
+ **[Mori](https://github.com/coflyn/Mori)** 命令行工具。直接在终端中从 27 个主流平台下载无水印视频、高清原图、音频、整张播放列表,或将图集拼合编译为单份 PDF 文档。
22
+
23
+ ## 快速上手
24
+
25
+ 通过 `npx` 直接运行,无需全局安装:
26
+
27
+ ```bash
28
+ # 启动交互式终端模式 (REPL)
29
+ npx @coflyn/mori
30
+
31
+ # 直接下载指定链接
32
+ npx @coflyn/mori "https://www.tiktok.com/@user/video/123456789"
33
+
34
+ # 仅提取音频 (MP3)
35
+ npx @coflyn/mori "https://youtu.be/dQw4w9WgXcQ" -a
36
+
37
+ # 自动下载整张播放列表或专辑
38
+ npx @coflyn/mori "https://www.youtube.com/playlist?list=PLxxx" -y
39
+
40
+ # 将多图贴文合并为单份 PDF
41
+ npx @coflyn/mori "https://www.instagram.com/p/C_abc123/" -p
42
+ ```
43
+
44
+ 或者进行全局安装:
45
+
46
+ ```bash
47
+ npm install -g @coflyn/mori
48
+ mori
49
+ ```
50
+
51
+ ---
52
+
53
+ ## 支持的平台
54
+
55
+ | 分类 | 平台 | 支持的内容 |
56
+ | :--- | :--- | :--- |
57
+ | **社交与视频** | TikTok, 抖音, YouTube, Instagram, Facebook, Twitter/X, Threads, Reddit, 哔哩哔哩, Doodstream | 无水印视频、1080p 画质流、图片贴文、快拍、原声音频 |
58
+ | **音乐与音频** | Spotify, YouTube, SoundCloud, Apple Music, Bandcamp | 单曲、整张专辑、全集唱片、歌单播放列表 (MP3 128–320 kbps) |
59
+ | **插画与图集** | Pinterest, Pixiv, 小红书 (RedNote) | 高清原图、插画画廊、动图 Ugoira |
60
+ | **网盘与文件存储** | TeraBox, MediaFire, Sfile, Catbox, Pixeldrain, Krakenfiles, Google 云端硬盘 | 直链解析、批量下载、多文件合集 |
61
+ | **短链与跳板解析** | SafeLinkU, Sub2Unlock, Rekonise, Stargon / 网页跳转解析器 | 绕过中转页直接获取目标资源 |
62
+ | **动漫与漫画** | Otakudesu, Gogoanime, Komikindo, Komiku, Asura Scans | 终端内搜索番剧漫画、剧集流媒体解析、漫画章节导出 PDF |
63
+
64
+ ---
65
+
66
+ ## 命令行参数 (Options)
67
+
68
+ ```text
69
+ 用法:
70
+ mori [URL] [参数]
71
+ npx @coflyn/mori [URL] [参数]
72
+
73
+ 参数:
74
+ -o, --output <目录> 自定义下载目录 (默认: ~/Downloads/Mori)
75
+ -e, --engine <auto|mori|scrapr> 解析引擎选择 (默认: auto)
76
+ -s, --server <1|2> 选择服务器镜像 (TikTok, IG, YouTube, X, Spotify)
77
+ -a, --audio 仅提取并下载音频流 (MP3/M4A)
78
+ -p, --pdf 将多图贴文合并编译为单份 PDF 电子书
79
+ -c, --clip 自动读取系统剪贴板中的链接并开始下载
80
+ -y, --yes 无需确认直接下载 (自动选择最佳画质或下载整份播放列表)
81
+ -i, --info 仅查看媒体详情与可用画质流,不执行下载
82
+ -u, --update 检查包更新及 OTA 爬虫热补丁
83
+ -h, --help 显示帮助与使用指南
84
+ -v, --version 显示版本号
85
+ ```
86
+
87
+ ---
88
+
89
+ ## 交互模式与斜杠命令
90
+
91
+ 不带任何参数运行 `mori` 将进入交互式 Shell。输入链接或搜索词开始,或使用 `/` 开头的内置命令:
92
+
93
+ | 命令 | 别名 | 功能说明 |
94
+ | :--- | :--- | :--- |
95
+ | `/clip` | `/paste` | 读取系统剪贴板并下载其中的多媒体链接 |
96
+ | `/audio [url]` | `/mp3` | 仅提取并下载音频流 (MP3/M4A) |
97
+ | `/pdf [url]` | — | 将图片画廊或贴文合并为单份 PDF |
98
+ | `/batch` | — | 批量下载多个链接 (空格或换行分隔) |
99
+ | `/play [序号]` | — | 在系统默认播放器中打开并播放已下载的音视频 |
100
+ | `/history [序号]` | — | 查看下载历史、重新下载或清空历史 (`/history clear`) |
101
+ | `/delete` | `/del`, `/rm` | 交互式多选删除 (可选择仅移除历史记录或同时删除本地文件) |
102
+ | `/open` | — | 在访达 (Finder) 或文件资源管理器中打开下载目录 |
103
+ | `/dir [路径]` | — | 查看或永久修改默认下载目录 |
104
+ | `/server` | — | 切换默认爬虫镜像服务器 |
105
+ | `/engine` | — | 在 Mori 引擎、Scrapr 引擎或自动模式间切换 |
106
+ | `/rollback` | — | 将解析引擎回滚至指定历史提交或版本 |
107
+ | `/info [url]` | `/inspect` | 打印媒体详细参数与流列表,不执行下载 |
108
+ | `/retry` | `/again` | 重新下载上次处理的链接 |
109
+ | `/ping [主机]` | — | 测试网络延迟与丢包率 (默认: 1.1.1.1) |
110
+ | `/stats` | — | 查看已下载文件总数、磁盘占用及各平台统计 |
111
+ | `/platforms` | `/platform` | 列出全部 27 个支持的平台与服务 |
112
+ | `/config` | — | 查看当前配置、存储路径与版本号 |
113
+ | `/update` | `/u` | 检查 npm 模块更新及来自 GitHub 的 OTA 爬虫补丁 |
114
+ | `/reset` | — | 将所有配置与下载历史恢复至出厂默认状态 |
115
+ | `/clear` | `/cls` | 清屏并重新打印终端标识 |
116
+ | `/help` | `/?` | 显示命令参考手册 |
117
+ | `/exit` | `/quit`, `/q` | 退出交互模式 |
118
+
119
+ ---
120
+
121
+ ## 技术细节
122
+
123
+ - **双引擎架构**: 优先使用轻量内置解析核心;当目标网站页面改版时,自动回退到独立的 Scrapr 引擎。
124
+ - **OTA 热补丁机制**: 当平台接口变动时,解析逻辑可直接通过 GitHub 提交在线更新,无需等待发布新的 npm 版本。使用 `/update` 或 `/rollback` 随时管理引擎版本。
125
+ - **播放列表与专辑队列**: 粘贴 YouTube 播放列表、Spotify 专辑或 Apple Music 歌单时,终端将完整识别曲目编号与歌名,支持整单顺序下载或选择指定歌曲。
126
+ - **纯本地存储**: 配置文件与下载历史均保存在本地 `~/.mori` 中,不含任何追踪代码与数据埋点。
127
+
128
+ ---
129
+
130
+ ## 开源协议
131
+
132
+ 遵循 [GNU General Public License v3.0](https://github.com/coflyn/Mori/blob/main/LICENSE) 开源协议。
133
+ 属于 **[Mori](https://github.com/coflyn/Mori)** 项目的一部分。