cliphaven 3.4.0__tar.gz

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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Md Asadullah Al Munib (https://github.com/AsadullahAlMunib/ClipHaven/)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ include index.html style.css app.js logo.svg requirements.txt README.md README_BN.md LICENSE
2
+ recursive-include core *.py
@@ -0,0 +1,363 @@
1
+ Metadata-Version: 2.4
2
+ Name: cliphaven
3
+ Version: 3.4.0
4
+ Summary: Cross-platform, local-only video and audio downloader for Windows, macOS, Linux, and Android
5
+ Author: Md Asadullah Al Munib
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/AsadullahAlMunib/ClipHaven/
8
+ Project-URL: Repository, https://github.com/AsadullahAlMunib/ClipHaven/
9
+ Project-URL: Releases, https://github.com/AsadullahAlMunib/ClipHaven/releases
10
+ Project-URL: Issues, https://github.com/AsadullahAlMunib/ClipHaven/issues
11
+ Project-URL: Developer, https://github.com/AsadullahAlMunib
12
+ Keywords: video-downloader,youtube,facebook,yt-dlp,audio-downloader,clip-trimmer,android
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Environment :: Web Environment
15
+ Classifier: Intended Audience :: End Users/Desktop
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Operating System :: Microsoft :: Windows
18
+ Classifier: Operating System :: POSIX :: Linux
19
+ Classifier: Operating System :: MacOS
20
+ Classifier: Operating System :: Android
21
+ Classifier: Programming Language :: Python :: 3
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Requires-Python: >=3.10
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ Requires-Dist: yt-dlp>=2025.1.15
29
+ Requires-Dist: imageio-ffmpeg>=0.5.1
30
+ Requires-Dist: mutagen>=1.47.0
31
+ Dynamic: license-file
32
+
33
+ <div align="center">
34
+
35
+ # <img src="https://raw.githubusercontent.com/AsadullahAlMunib/ClipHaven/01500b38644252dd074a47951638ef0edfe8271d/logo.svg" width="40" height="40" align="top" alt="ClipHaven logo" /> ClipHaven
36
+
37
+ **Catch, keep, and enjoy your clips — locally, safely, and effortlessly.**
38
+
39
+ ![CI Status](https://img.shields.io/badge/CI-passing-brightgreen)
40
+ [![Release](https://img.shields.io/badge/version-v3.4.0-blue)](https://github.com/AsadullahAlMunib/ClipHaven/releases/tag/v3.4.0)
41
+ [![npm](https://img.shields.io/npm/v/%40asadullahalmunib%2Fcliphaven?logo=npm&logoColor=white&color=cb3837)](https://www.npmjs.com/package/@asadullahalmunib/cliphaven)
42
+ [![PyPI](https://img.shields.io/pypi/v/cliphaven?logo=pypi&logoColor=white&color=3776AB)](https://pypi.org/project/cliphaven/)
43
+ ![Python](https://img.shields.io/badge/python-3.10%2B-3776AB?logo=python&logoColor=white)
44
+ ![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux%20%7C%20Android-lightgrey)
45
+ [![Developer](https://img.shields.io/badge/developer-Md%20Asadullah%20Al%20Munib-8b5cf6)](https://github.com/AsadullahAlMunib)
46
+ [![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/AsadullahAlMunib/ClipHaven/blob/main/LICENSE)
47
+
48
+ [![GitHub Downloads](https://img.shields.io/github/downloads/AsadullahAlMunib/ClipHaven/total?logo=github&logoColor=white&label=GitHub%20%E2%86%93&color=14b8a6)](https://github.com/AsadullahAlMunib/ClipHaven/releases)
49
+ [![npm Downloads](https://img.shields.io/npm/dt/%40asadullahalmunib%2Fcliphaven?logo=npm&logoColor=white&label=npm%20%E2%86%93&color=cb3837)](https://www.npmjs.com/package/@asadullahalmunib/cliphaven)
50
+ [![PyPI Downloads](https://img.shields.io/pepy/dt/cliphaven?logo=pypi&logoColor=white&label=PyPI%20%E2%86%93&color=3776AB)](https://pypi.org/project/cliphaven/)
51
+
52
+ [![বাংলায় পড়ুন](https://img.shields.io/badge/বাংলায়-পড়ুন-2563eb?style=for-the-badge&logo=googletranslate&logoColor=white&labelColor=1e293b)](https://github.com/AsadullahAlMunib/ClipHaven/blob/main/README_BN.md)
53
+
54
+ [📖 Documentation](https://asadullahalmunib.github.io/ClipHaven/) • [✨ Features](#-key-features) • [⚡ Quick Downloads](#-quick-downloads) • [🚀 Getting Started](#-getting-started) • [❓ FAQ](#-faq--troubleshooting) • [📦 Releases](https://github.com/AsadullahAlMunib/ClipHaven/releases) • [👨‍💻 Developer](#-developer)
55
+
56
+ <br />
57
+
58
+ <a href="https://asadullahalmunib.github.io/ClipHaven/">
59
+ <img src="https://raw.githubusercontent.com/AsadullahAlMunib/ClipHaven/refs/heads/main/docs/ClipHaven_Documentation_Video_Thumbnail_EN.jpeg" width="760" alt="ClipHaven Official Documentation & Walkthrough Thumbnail" />
60
+ </a>
61
+
62
+ <sub>▶️ <strong>Click the thumbnail</strong> to explore the <a href="https://asadullahalmunib.github.io/ClipHaven/">Official Interactive Documentation</a> or watch the <a href="https://www.facebook.com/reel/2985920465079076/">English Walkthrough Video</a>.</sub>
63
+
64
+ <br />
65
+
66
+ ClipHaven is a modern, high-speed, 100% local video and audio downloader developed by [**Md Asadullah Al Munib**](https://github.com/AsadullahAlMunib) and powered by [`yt-dlp`](https://github.com/yt-dlp/yt-dlp) and `FFmpeg`. Available across **Windows, macOS, Linux (`x64` & `ARM64`), and Android (`64-bit` & `32-bit`)**, it runs privately on your device (`127.0.0.1:8765`) — **no ads, no tracking, no external server relays, and zero telemetry**.
67
+
68
+ </div>
69
+
70
+ <details>
71
+ <summary align="center"><h3>✨ Click here to view all ClipHaven features at a glance (Dropdown)</h3></summary>
72
+
73
+ - **🌐 Supported Platforms:** YouTube, Meta (Facebook, Instagram, Threads), LinkedIn (`linkedin.com` & `lnkd.in`), TikTok, X / Twitter (`t.co`), Reddit (`redd.it`), Vimeo, Dailymotion (`dai.ly`), Twitch, Pinterest (`pin.it`), SoundCloud (`snd.sc`)
74
+ - **🎯 Video Resolutions:** Best Available, 2160p (4K), 1440p (2K), 1080p (Full HD), 720p (HD), 480p, 360p (Data Saver)
75
+ - **🎬 Video Formats:** MP4, MKV, WEBM
76
+ - **🎵 Audio Formats:** MP3, M4A, WAV
77
+ - **💻📱 Supported OS:** Windows, macOS, Linux (`x64` & `ARM64`), Android (`64-bit` & `32-bit`)
78
+ - **📦 Official npm & PyPI CLI:** Launch from any terminal via `npx @asadullahalmunib/cliphaven` (hybrid Python `.venv` → cached Release binary fallback) or `pipx run cliphaven`, with `<URL>` direct launch, `--port`, `--no-browser`, `--doctor`, `--update`, and interactive `Y/Yes/Yas` & `N/No` update prompts
79
+ - **🎨 Bilingual Studio UI (`EN / বাংলা`):** Clean, 100% offline Deep Slate + Teal interface with instant English/Bangla switching, Light/Dark modes, sliding `Video / Audio` tabs, quick format & resolution chips, drag-and-drop URL paste, and auto-detected icons for all 13 platforms
80
+ - **📋 Sequential Download Queue (`Download Next` / `Up Next`):** Queue additional videos while one is downloading; queued links run sequentially 1-at-a-time automatically
81
+ - **✂️ Visual Clip Trimmer & Cutter:** Interactive dual-handle timeline slider with floating time bubbles, `Reset`, max-duration clamping guard, manual `Start`/`End` inputs, live FFmpeg progress, and exact container duration
82
+ - **⚡ High-Speed Adaptive Engine:** `--http-chunk-size 10M` anti-throttling, `--concurrent-fragments 6` parallel DASH/HLS downloads with automatic 4-thread fallback on HTTP 429 rate limits, tuned `--buffer-size`, and automatic Desktop `aria2c` acceleration when installed
83
+ - **💬 Multi-Language Subtitles (CC):** Original native spoken language captions (`.*-orig`, YouTube-style CC) & manual captions (Bangla, English, etc.), automatically trimmed and time-shifted to stay synced with cut clips
84
+ - **🖼️ Cover Art Embedding:** Permanent video thumbnail embedding (`MP4`, `MKV`, `MP3`, `M4A`) via `mutagen`
85
+ - **📑 Unlimited Progressive Playlist Downloader:** Auto-default full playlist mode, unlimited progressive video selector dropdown (no 100-video cap) with live playlist search, zero-selection guard, 500ms smooth `DocumentFragment` batch rendering, smart range compression (`1-50,52-500`), auto-stop background preview on download, and live playlist counter
86
+ - **🔍 Instant Link Preview:** Sub-second metadata loading via lightweight `oEmbed` (~0.2s), 64-entry LRU cache, non-blocking background duration resolution & instant client-side thumbnail rendering on paste
87
+ - **🤖 Android Background Service & Rich Notifications:** Uninterrupted screen-off downloads powered by Android Foreground Service (`dataSync`) & `WakeLock`, 1:1 center-cropped square thumbnail preview, custom `logo.svg` status bar silhouette, silent active channel + separate completion sound channel, `EN / বাংলা` language sync, and **`▶️ Play`**, **`📂 Open Folder`**, and **`✕ Cancel`** actions
88
+ - **🔄 Play Protect-Safe In-App Auto-Updates:** In-app GitHub release checker using Android's native `DownloadManager` with versioned APK naming, automatic old-APK cleanup, and update notifications on Desktop
89
+ - **📲 Android Share Support:** Direct one-click download via Android **"Share to ClipHaven"** menu
90
+ - **📁 Custom Save Folder & Clean Filenames:** Direct native OS & Android device SAF folder picker (`Browse`) with persistent Scoped Storage permissions and clean video filenames (without trailing `[video_id]` brackets)
91
+ - **📊 Live Progress & Controls:** Real-time `%`, downloaded size, speed (`MB/s`), `ETA`, instant cancellation, and post-download **`📂 Open Folder`** navigation
92
+ - **🔒 100% Local & Private:** Runs locally on device with zero ads, zero tracking, bundled FFmpeg, and zero telemetry
93
+ </details>
94
+
95
+ <br />
96
+
97
+ ## ⚡ Quick Downloads
98
+
99
+ > 💡 **Latest Release: [`v3.4.0`](https://github.com/AsadullahAlMunib/ClipHaven/releases/tag/v3.4.0)** — Want interactive download cards, live release notes, and video walkthroughs? Visit the [**Official Documentation**](https://asadullahalmunib.github.io/ClipHaven/#downloads).
100
+
101
+ <details open>
102
+ <summary><strong>📥 Click here to choose &amp; download ClipHaven <code>v3.4.0</code> for your device (Dropdown Menu)</strong></summary>
103
+ <br />
104
+
105
+ * **🪟 Windows:**
106
+ * ⭐ [**`ClipHaven-Windows-All.zip`**](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Windows-All.zip) — *Full Windows Bundle with `FFmpeg` & all dependencies included (Recommended)*
107
+ * 📦 [**`ClipHaven-Windows.exe`**](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Windows.exe) — *Standalone single-file portable Windows executable*
108
+ * **🐧 Linux (x64 &amp; ARM64):**
109
+ * ⭐ [**`ClipHaven-Linux-x64-All.zip`**](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Linux-x64-All.zip) — *Full Linux x64 Bundle with `FFmpeg` & all dependencies included*
110
+ * 📦 [**`ClipHaven-Linux-x64`**](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Linux-x64) — *Standalone single-file Linux x64 binary*
111
+ * ⭐ [**`ClipHaven-Linux-ARM64-All.zip`**](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Linux-ARM64-All.zip) — *Full Linux ARM64 Bundle with `FFmpeg` & all dependencies included*
112
+ * 📦 [**`ClipHaven-Linux-ARM64`**](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Linux-ARM64) — *Standalone single-file Linux ARM64 binary*
113
+ * **🍎 macOS:**
114
+ * ⭐ [**`ClipHaven-macOS-All.zip`**](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-macOS-All.zip) — *Full macOS Bundle with `FFmpeg` & all dependencies included*
115
+ * 📦 [**`ClipHaven-macOS`**](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-macOS) — *Standalone single-file macOS binary*
116
+ * **🤖 Android (64-bit &amp; 32-bit):**
117
+ * ⭐ [**`ClipHaven-Android-64bit.apk`**](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Android-64bit.apk) — *For modern 64-bit Android phones (`arm64-v8a`, Recommended)*
118
+ * 📱 [**`ClipHaven-Android-32bit.apk`**](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Android-32bit.apk) — *For older 32-bit Android phones &amp; TV boxes (`armeabi-v7a`)*
119
+ * **⚡ Source Code + Launcher (`.bat`):**
120
+ * 🛠️ [**`ClipHaven-Source-Bat.zip`**](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Source-Bat.zip) — *Lightweight source bundle with one-click `setup-and-run.bat`*
121
+ </details>
122
+
123
+ <br />
124
+
125
+ | Platform | All-in-One Bundle (`-All.zip`) ⭐ | Standalone Single App |
126
+ | :--- | :--- | :--- |
127
+ | **🪟 Windows** | [⬇️ `ClipHaven-Windows-All.zip`](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Windows-All.zip) | [⬇️ `ClipHaven-Windows.exe`](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Windows.exe) |
128
+ | **🍎 macOS** | [⬇️ `ClipHaven-macOS-All.zip`](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-macOS-All.zip) | [⬇️ `ClipHaven-macOS`](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-macOS) |
129
+ | **🐧 Linux (x64)** | [⬇️ `ClipHaven-Linux-x64-All.zip`](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Linux-x64-All.zip) | [⬇️ `ClipHaven-Linux-x64`](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Linux-x64) |
130
+ | **🐧 Linux (ARM64)** | [⬇️ `ClipHaven-Linux-ARM64-All.zip`](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Linux-ARM64-All.zip) | [⬇️ `ClipHaven-Linux-ARM64`](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Linux-ARM64) |
131
+ | **🤖 Android (64-bit)** | *(Self-contained inside `.apk`)* | [⬇️ `ClipHaven-Android-64bit.apk`](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Android-64bit.apk) |
132
+ | **🤖 Android (32-bit)** | *(Self-contained inside `.apk`)* | [⬇️ `ClipHaven-Android-32bit.apk`](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Android-32bit.apk) |
133
+ | **⚡ Source + `.bat`** | [⬇️ `ClipHaven-Source-Bat.zip`](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Source-Bat.zip) | [📦 All Releases](https://github.com/AsadullahAlMunib/ClipHaven/releases/latest) |
134
+ | **📦 npm CLI** | `npx @asadullahalmunib/cliphaven` | [🌐 npm Package](https://www.npmjs.com/package/@asadullahalmunib/cliphaven) |
135
+ | **🐍 PyPI CLI** | `pipx run cliphaven` | [🌐 PyPI Package](https://pypi.org/project/cliphaven/) |
136
+
137
+ <br />
138
+
139
+ ## ✨ Key Features
140
+
141
+ ### 💻 Multi-Platform Ready
142
+ * **Desktop (`-All.zip` & Standalone Binaries):** Full pre-packaged bundles and portable single-file apps for **Windows, macOS, Linux x64, and Linux ARM64** with `FFmpeg` pre-included.
143
+ * **Android (`ClipHaven-Android-64bit.apk` & `ClipHaven-Android-32bit.apk`):** Lightweight, architecture-specific `.apk` builds powered by `youtubedl-android` with Foreground Service (`dataSync`) & `WakeLock` for uninterrupted screen-off downloads, rich notifications (`▶️ Play`, `📂 Open Folder`, `✕ Cancel`), incremental playlist export, network retry resilience, Play Protect-safe `DownloadManager` updates (with versioned APK naming & old-APK auto-cleanup), and zero-setup local execution saving directly to `Downloads/ClipHaven`.
144
+ * **Source Launcher (`setup-and-run.bat`):** Creates an isolated `.venv`, installs/updates `yt-dlp`, `imageio-ffmpeg`, and `mutagen`, and launches the dashboard automatically.
145
+
146
+ ### 🌐 Wide Multi-Platform Extraction
147
+ Cleanly extracts video and audio from popular media platforms:
148
+ * **YouTube:** Full Videos, Shorts, and complete Playlists (unlimited size)
149
+ * **Meta:** Facebook Videos & Reels, Instagram Reels, Posts & Threads (`threads.net` & `threads.com`)
150
+ * **Others:** LinkedIn (`linkedin.com` & `lnkd.in`), TikTok, X / Twitter (including `t.co` share links), Reddit (`redd.it`), Vimeo, Dailymotion (`dai.ly`), Twitch, Pinterest (`pin.it`), and SoundCloud (`snd.sc`)
151
+
152
+ ### 🎯 Precision Tools & Media Options
153
+ * **🎨 Bilingual Studio UI (`EN / বাংলা`) & Smart Queue:** Switch between English and Bangla instantly, toggle Light/Dark themes, drag-and-drop video URLs, and queue extra videos using **`Download Next`** (`Up Next` runs sequentially 1-at-a-time).
154
+ * **⚡ Adaptive Speed Engine:** Uses `--http-chunk-size 10M` to bypass YouTube stream throttling, `--concurrent-fragments 6` with automatic safe fallback to 4 threads on HTTP 429 rate limits, tuned `--buffer-size`, and automatic `aria2c` acceleration on Desktop when available in `PATH`.
155
+ * **📁 Native Folder Picker (`Browse`):** Pick your download folder using your OS's native folder selection dialog (or Android's direct SAF picker, including SD cards) or type any path directly.
156
+ * **🔍 Instant ~0.2s Link Preview & Auto-Stop:** Displays thumbnail, title, and channel almost instantaneously via lightweight `oEmbed` + 64-entry LRU cache, resolves exact duration asynchronously in the background, and automatically cancels running background playlist previews the moment a download starts.
157
+ * **✂️ Visual Clip Trimmer & Cutter with Live Progress:** Trim specific time ranges using the interactive dual-handle timeline slider (with floating time bubbles, `Reset`, and max-duration guard) or manual `MM:SS` / `HH:MM:SS` inputs, with real-time FFmpeg percentage (`%`), encoding speed, remaining `ETA`, exact container duration, and automatically trimmed/time-shifted subtitles.
158
+ * **📑 Unlimited Progressive Playlist Downloads:** Removes the 100-video cap to stream playlists of any size (100, 500, 2,000+ videos) in smooth 500ms `DocumentFragment` batches with live playlist search, interactive checkboxes, zero-selection validation, smart range compression (`1-50,52-500`), and a live visual badge (`📑 3/15 • 2 done • 12 left`).
159
+ * **💬 Multi-Language Subtitles (CC):** Automatically detects and embeds the video's exact original spoken language caption (`.*-orig`, just like YouTube's CC button) alongside manual Bangla (`bn`) and English (`en`) subtitles while skipping robotic auto-translations (`skip=translated_subs`).
160
+ * **🖼️ Embed Cover Art / Thumbnail & Clean Filenames:** Embeds video thumbnails as permanent cover art into `MP4`, `MKV`, `MP3`, and `M4A` files via `mutagen`, and saves clean titles without trailing `[video_id]` brackets.
161
+ * **⚡ Multiple Formats & 4K Quality:**
162
+ * **Video Formats:** `MP4` *(Recommended)*, `MKV`, `WEBM`
163
+ * **Audio Formats:** `MP3`, `M4A`, `WAV`
164
+ * **Resolutions:** `Best Available`, `4K (2160p)`, `2K (1440p)`, `1080p`, `720p`, `480p`, `360p (Data Saver)`
165
+ * **📊 Real-Time Feedback:** Live download speed counters (`MB/s`), downloaded size metrics, accurate remaining time (`ETA`), percentage progress bars, instant cancellation, and post-download directory navigation (`📂 Open Folder`).
166
+
167
+ <br />
168
+
169
+ ## 🚀 Getting Started
170
+
171
+ > 📖 Prefer an interactive visual guide? Check out the [**Official Setup Guide**](https://asadullahalmunib.github.io/ClipHaven/#install).
172
+
173
+ ### Method 1: All-in-One Bundles (`-All.zip` — ⭐ Recommended for Desktop)
174
+ 1. Download `ClipHaven-Windows-All.zip`, `ClipHaven-macOS-All.zip`, `ClipHaven-Linux-x64-All.zip`, or `ClipHaven-Linux-ARM64-All.zip` from [Release `v3.4.0`](https://github.com/AsadullahAlMunib/ClipHaven/releases/tag/v3.4.0).
175
+ 2. Extract the archive and launch **`ClipHaven`** (`ClipHaven.exe` on Windows). Your browser will open `http://127.0.0.1:8765/`.
176
+
177
+ ### Method 2: Android App (`ClipHaven-Android-64bit.apk` / `ClipHaven-Android-32bit.apk`)
178
+ 1. Download [`ClipHaven-Android-64bit.apk`](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Android-64bit.apk) *(for modern 64-bit phones)* or [`ClipHaven-Android-32bit.apk`](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Android-32bit.apk) *(for older 32-bit devices)* and install it.
179
+ 2. Open **ClipHaven** (or share any video link directly to ClipHaven from YouTube, Facebook, Instagram, LinkedIn, or TikTok).
180
+
181
+ ### Method 3: Run via npm (`npx`) or PyPI (`pipx`)
182
+
183
+ #### Option A — npm / npx (Node.js 18+)
184
+ *Run directly without global install:*
185
+ ```bash
186
+ npx @asadullahalmunib/cliphaven
187
+ ```
188
+ *Or install globally and launch from anywhere:*
189
+ ```bash
190
+ npm install -g @asadullahalmunib/cliphaven
191
+ ```
192
+
193
+ #### Option B — PyPI / pipx (Python 3.10+)
194
+ *Run directly in an isolated environment via `pipx` (Recommended):*
195
+ ```bash
196
+ pipx run cliphaven
197
+ ```
198
+ *Or install via `pip` and launch from any terminal:*
199
+ ```bash
200
+ pip install cliphaven && cliphaven
201
+ ```
202
+
203
+ #### Useful CLI Commands *(Supported on both npm & PyPI)*
204
+ *Launch directly with a video link (auto-fills URL & starts preview):*
205
+ ```bash
206
+ cliphaven https://www.youtube.com/watch?v=cW4ZbT-JCPI
207
+ ```
208
+ *Check system status (Node, Python, `.venv`, `yt-dlp`, `FFmpeg`, `aria2c`, cached binary):*
209
+ ```bash
210
+ cliphaven --doctor
211
+ ```
212
+ *Upgrade `yt-dlp` / Python engine or refresh cached binary:*
213
+ ```bash
214
+ cliphaven --update
215
+ ```
216
+ *Start on a custom port without auto-opening the browser:*
217
+ ```bash
218
+ cliphaven --port 9000 --no-browser
219
+ ```
220
+ *Skip the 4-hour CLI update check prompt (`Y/Yes/Yas` or `N/No`):*
221
+ ```bash
222
+ cliphaven --no-update-check
223
+ ```
224
+
225
+ *The npm CLI automatically uses Python 3.10+ (`~/.cliphaven/venv`) when available, and seamlessly falls back to the cached GitHub Release binary otherwise.*
226
+
227
+ ### Method 4: One-Click Script (`setup-and-run.bat`)
228
+ 1. Ensure **Python 3.10+** is installed with **"Add Python to PATH"** enabled.
229
+ 2. Download and extract [`ClipHaven-Source-Bat.zip`](https://github.com/AsadullahAlMunib/ClipHaven/releases/download/v3.4.0/ClipHaven-Source-Bat.zip) (or clone the repository):
230
+ ```bash
231
+ git clone https://github.com/AsadullahAlMunib/ClipHaven.git
232
+ cd ClipHaven
233
+ ```
234
+ 3. Double-click **`setup-and-run.bat`**. The script manages virtual environment creation, installs `yt-dlp`, portable `FFmpeg` (`imageio-ffmpeg`), and `mutagen`, and opens the dashboard automatically.
235
+
236
+ ### Method 5: Developer Setup (macOS / Linux / Windows)
237
+ ```bash
238
+ # 1. Create and activate a virtual environment
239
+ python3 -m venv .venv
240
+ source .venv/bin/activate # On Windows: .venv\Scripts\activate
241
+
242
+ # 2. Install dependencies (includes yt-dlp, imageio-ffmpeg, and mutagen)
243
+ pip install --upgrade pip
244
+ pip install -r requirements.txt pytest
245
+
246
+ # 3. Launch server
247
+ python server.py
248
+
249
+ # 4. (Optional) Run tests locally
250
+ pytest -v
251
+ ```
252
+
253
+ <br />
254
+
255
+ ## ❓ FAQ & Troubleshooting
256
+
257
+ <details>
258
+ <summary><strong>Windows Defender / SmartScreen shows a warning on first launch</strong></summary>
259
+
260
+ ClipHaven is an open-source, unsigned community build. Always download **`ClipHaven-Windows-All.zip`** (which avoids single-file temp-unpacking antivirus heuristics). If SmartScreen prompts, click **More info → Run anyway**, or run directly from source using `setup-and-run.bat`.
261
+ </details>
262
+
263
+ <details>
264
+ <summary><strong>Do embedded subtitles stay in sync when I cut a specific clip?</strong></summary>
265
+
266
+ Yes. ClipHaven automatically trims `.vtt`/`.srt` cues to your `[Start Time, End Time]` window and shifts all timestamps back to `00:00`, ensuring subtitles stay synced and the output file matches the exact clipped duration.
267
+ </details>
268
+
269
+ <details>
270
+ <summary><strong>Where are downloaded files saved on Android?</strong></summary>
271
+
272
+ By default, files are saved directly to `Downloads/ClipHaven` and indexed immediately for your Gallery and Music apps. You can choose any custom folder (including SD cards) using the **`📁 Browse`** button.
273
+ </details>
274
+
275
+ See more answers in the [**Full Documentation FAQ**](https://asadullahalmunib.github.io/ClipHaven/#faq).
276
+
277
+ <br />
278
+
279
+ ## 📂 Project Structure
280
+
281
+ ```
282
+ ClipHaven/
283
+ ├── .github/
284
+ │ ├── dependabot.yml # Weekly dependency update configuration
285
+ │ └── workflows/
286
+ │ ├── ci.yml # Multi-OS Python tests, Ruff lint, npm CLI & Android CI
287
+ │ ├── npm-publish.yml # Auto-publish @asadullahalmunib/cliphaven on GitHub Release
288
+ │ ├── pypi-publish.yml # Auto-publish cliphaven to PyPI on GitHub Release
289
+ │ └── release.yml # Automated 11-asset release builder (Desktop, Android & Source)
290
+ ├── android/ # Self-contained Android APK project (Kotlin + youtubedl-android)
291
+ │ ├── build.gradle.kts # Root Android Gradle plugin configuration
292
+ │ ├── gradle.properties # Gradle JVM memory & AndroidX build flags
293
+ │ ├── settings.gradle.kts # Gradle repositories & module includes
294
+ │ └── app/
295
+ │ ├── build.gradle.kts # App dependencies, 64/32-bit ABI splits & web asset sync
296
+ │ ├── proguard-rules.pro # ProGuard/R8 keep rules for WebView JS bridge
297
+ │ └── src/main/
298
+ │ ├── AndroidManifest.xml # Permissions, singleTask launchMode, Share intents & services
299
+ │ ├── java/com/asadullahalmunib/cliphaven/
300
+ │ │ ├── DownloadForegroundService.kt # Foreground dataSync service, WakeLock & rich notifications
301
+ │ │ ├── FormatUtils.kt # URL validation, semver/tag filter & playlist range compression
302
+ │ │ ├── MainActivity.kt # WebViewAssetLoader UI, JS bridge, SAF picker & yt-dlp engine
303
+ │ │ ├── PlaylistHelper.kt # Direct playlist Page-1 & InnerTube continuation pagination
304
+ │ │ └── SubtitleSyncHelper.kt # Trimmed clip .vtt/.srt subtitle slicing & time-shifting
305
+ │ └── res/
306
+ │ ├── drawable/
307
+ │ │ ├── ic_stat_cliphaven.xml # Monochrome status bar notification icon
308
+ │ │ └── notif_progress_drawable.xml # Thick rounded Teal-Emerald-Amber notification progress bar
309
+ │ ├── layout/
310
+ │ │ └── notification_download_progress.xml # 3-line DecoratedCustomViewStyle progress layout
311
+ │ └── xml/
312
+ │ └── file_paths.xml # FileProvider storage paths for direct notification Play
313
+ ├── bin/
314
+ │ └── cliphaven.js # Hybrid npm/npx CLI launcher (Python .venv -> Release binary)
315
+ ├── core/ # Modular Python backend helpers
316
+ │ ├── __init__.py # Core Python package initializer
317
+ │ ├── playlist.py # Direct playlist Page-1 & InnerTube continuation pagination
318
+ │ └── subtitles.py # Trimmed clip .vtt/.srt cue slicing & time-shifting
319
+ ├── docs/
320
+ │ └── index.html # Official bilingual interactive documentation (GitHub Pages)
321
+ ├── scripts/
322
+ │ └── generate_icons.py # Vector logo.svg -> logo.ico & Android mipmap icon generator
323
+ ├── tests/
324
+ │ └── test_server.py # Automated unit & API integration test suite
325
+ ├── .gitignore # Git ignore rules for caches, venvs & build artifacts
326
+ ├── CHANGELOG.md # Detailed record of updates and version history
327
+ ├── LICENSE # MIT Open Source License
328
+ ├── MANIFEST.in # PyPI source distribution asset include rules
329
+ ├── README.md # English documentation
330
+ ├── README_BN.md # Bangla documentation
331
+ ├── app.js # Client state, Up Next queue, clip slider, sound/haptics & polling
332
+ ├── index.html # Bilingual EN/বাংলা Studio UI markup
333
+ ├── logo.svg # Vector application logo and favicon
334
+ ├── package.json # npm package (@asadullahalmunib/cliphaven), bin & dev scripts
335
+ ├── pyproject.toml # Project metadata & Ruff/pytest configuration
336
+ ├── requirements.txt # Core Python dependencies (yt-dlp, imageio-ffmpeg, mutagen)
337
+ ├── server.py # Local HTTP server, fast previews & yt-dlp / FFmpeg backend
338
+ ├── setup-and-run.bat # Windows one-click environment builder & launcher
339
+ └── style.css # Deep Slate + Teal theme tokens & GPU micro-animations
340
+ ```
341
+
342
+ <br />
343
+
344
+ ## 👨‍💻 Developer
345
+
346
+ * **Developer:** [Md Asadullah Al Munib](https://github.com/AsadullahAlMunib)
347
+ * **Official Documentation:** [https://asadullahalmunib.github.io/ClipHaven/](https://asadullahalmunib.github.io/ClipHaven/)
348
+ * **Official Repository:** [https://github.com/AsadullahAlMunib/ClipHaven/](https://github.com/AsadullahAlMunib/ClipHaven/)
349
+
350
+ <br />
351
+
352
+ ## 🤝 Contributing & Feedback
353
+
354
+ Contributions, suggestions, and bug reports are welcome!
355
+ * 🐛 **Found a bug?** Open an [Issue](https://github.com/AsadullahAlMunib/ClipHaven/issues).
356
+ * 💡 **Have a feature idea?** Start a discussion or submit a [Pull Request](https://github.com/AsadullahAlMunib/ClipHaven/pulls).
357
+ * 📜 **Want to see what changed?** Check out the [CHANGELOG.md](https://github.com/AsadullahAlMunib/ClipHaven/blob/main/CHANGELOG.md) or review the [Latest Release Notes](https://github.com/AsadullahAlMunib/ClipHaven/releases/latest).
358
+
359
+ <br />
360
+
361
+ ## 📄 License
362
+
363
+ This project is licensed under the [MIT License](https://github.com/AsadullahAlMunib/ClipHaven/blob/main/LICENSE) — Copyright (c) 2026 **Md Asadullah Al Munib**.