Repository navigation
Conversation
- Merge pull request raycast#8 from sth3no/chore/sharper-screenshots - chore(metadata): replace screenshots with native 2000x1250 captures - docs(README): add Download form screenshot as preview image - Merge pull request raycast#7 from sth3no/chore/store-prep-followups - chore(metadata): add Filetype-dropdown and Fast Download screenshots - docs(README): document spotDL binary download trust model - docs(CHANGELOG): drop pre-fork upstream slug-rename entry - Merge pull request raycast#6 from sth3no/feature/new-icon - chore(metadata): replace fork-branded screenshot with The Downloader - chore: bump @raycast/api to 1.104.18, @raycast/utils to 2.2.5 - docs: rename CHANGELOG heading to The Downloader - chore: set author to registered Raycast handle (Stheno) - chore: swap in final icon artwork - chore: rename icon to icon.png to bust Raycast cache - feat: replace extension icon with new cloud-download artwork - Merge pull request #3 from sth3no/fix/lint-cleanup - Merge pull request raycast#4 from sth3no/fix/video-remux-and-orphan-kill - Merge pull request raycast#5 from sth3no/fix/pinterest-routing - fix: remux video to a playable mp4; kill process group to stop ffmpeg orphans - fix: gate Download filetypes by detected source - Fix pre-existing lint errors for clean publish - Merge pull request #2 from sth3no/claude/macos-stability-WIb0M - Address review concerns: NUL delimiter, idle-timeout constant, extra tests - Render package-manager check failures in the Updater - Clear the in-flight Stop action on failure toasts - Wait for child close before settling abort/watchdog; unify spotDL onto runWithWatchdog - Add Stop action on download toasts and kill orphans on unmount - Surface per-package failures in the Updater instead of swallowing them - Make fetchVideoInfo tolerant of yt-dlp debug/warning lines on stdout - Tag yt-dlp\'s after_move filepath so post-processor lines can\'t shadow it - Restrict isValidUrl to http/https schemes - Reject re-entrant submits on the Download form - Move transcript scratch dir to supportPath with per-call UUID - Add hang-prevention watchdog + closed stdin to yt-dlp, gallery-dl, monolith - Make spotDL on macOS resilient to stale tokens, Rosetta, and missing brew install - Make macOS binary resolution and Homebrew install resilient - Detect spotDL upstream-bug tracebacks (KeyError on \'label\' etc.) in error summary - Surface parsed spotDL failure summaries with partial-progress and actions - Distinguish 404 vs 403 in playlist troubleshooting - Drop playlist downloads into a {list-name}/ subfolder - Document the OAuth consent flow and the unlisted-playlist failure mode - Re-add Spotify user-auth toggle with correct port 9900 redirect URI - Revert --user-auth toggle; add idle-timeout watchdog so spotdl can\'t zombie - Add Spotify user-auth toggle for private playlists and library - Read Spotify credentials fresh on submit; document playlist scope - Pass --use-official-api so credentials actually bypass librespot - Polish spotDL onboarding: keep README open after install, pre-flight credentials - Add Spotify Client ID/Secret preferences so spotDL auth is reliable - Surface spotDL stdout when stderr is empty on a failed download - Merge pull request #1 from sth3no/claude/goofy-almeida-cc7d0c - Document the cookies-from-browser preference and Custom Browser Spec - Remove resolveCookiesBrowser and findZenProfileDir; coverage moved to browsers.test.ts - Wire fast-download gallery flow to resolveBrowser with pre-flight warning - Wire download-form gallery flow to resolveBrowser with pre-flight warning - Expand cookies-from-browser dropdown and add Custom Browser Spec preference - Add browser registry and resolveBrowser with warning surface - Add findChromiumProfile helper for browser-registry work - Add findFirefoxProfile helper for browser-registry work - Correct requiredTools\' return type and a stale suite name in the docs - Document the Download UX redesign - Switch the Download command to the adaptive form - Apply Prettier formatting to the Download form - Add the adaptive Download form - Add the exact-format-selection preference - Reconcile the thumbnail spec/plan with the no-conversion build - Add the yt-dlp thumbnail runner - Add lib/filetype.ts — the Filetype model - Add the polished Download UX implementation plan - Add the Section 4 polished Download UX design spec - Ignore the .superpowers brainstorm directory - Fix webpageFilename URL protocol detection - Apply Prettier formatting - Document webpage saving - Show friendly tool names in the updater - Make the updater registry-driven on both platforms - Make the Windows installer install the requested tool - Add the webpage route to Fast Download - Add the webpage download form - Resolve the monolith binary path and drop dead MP3_FORMAT_ID - Add the monolith path preference - Add lib/monolith.ts webpage-saving wrapper - Route plain webpage URLs to a webpage source type - Add monolith to the tool registry - Add implementation plan for monolith webpage saving - Add design spec for monolith webpage saving - Document the Fast Download command - Add the Fast Download command - Read launchContext URL in the Download command - Add runVideoDownload and generalize the yt-dlp audio branch - Add composeVideoFormat config-to-format helper - Add implementation plan for Fast Download - Add design spec for Fast Download - Add Deno to the toolchain for yt-dlp\'s YouTube JS runtime - Ensure the support directory exists before downloading spotDL - Format the updater with Prettier - Document Spotify support - Match the Spotify form to the detection-only routing - Add the Spotify download form and routing - Guard the updater\'s spotDL checks against network errors - Add spotDL to the updater - Make the installer handle managed-binary tools - Add getSpotdlPath binary resolver - Scope Spotify routing to open.spotify.com only - Route Spotify URLs to a spotify source type - Add lib/spotdl.ts spotDL command wrapper - Reject unsupported platforms in resolveSpotdlAsset - Add lib/managed-binary.ts spotDL download module - Add lib/tools.ts CLI tool registry - Add managedDir resolution to resolveBinary - Add Spotify preferences to the manifest - Add implementation plan for Spotify download support - Add design spec for Spotify download support via spotDL - Drop the manual type dropdown; route by URL detection only - Add ABOUT.md and an About This Extension link - Repoint the Supported Sites link and drop the onboarding action - Simplify the README and add SUPPORTED_SITES.md - Rebrand as a standalone extension - Install all required CLI tools in one step - Remove the first-run onboarding view - Add Setup & Tools action to the video form - Guard the onboarding-flag write against storage errors - Gate first run on onboarding in index.tsx - Make onboarding copy conditional on tool status - Add views/onboarding.tsx first-run onboarding - Remove redundant videoMediaType cast and test quality fallback - Move videoFormatSelector to pure lib/video-format module - Remove redundant @raycast/api test mock alias - Add lib/config.ts download-defaults module - Add per-content-type download default preferences - Add Section 1 settings & onboarding implementation plan - Add Section 1 settings & onboarding design spec - Add Phase 3+ macro plan - Apply Prettier formatting - Add transcript output option to the video form - Make installer and updater tool-aware - Fix auto-loaded URL not reaching VideoForm; propagate gallery URL edits - Make index.tsx a URL-routing dispatcher - Add views/gallery-form.tsx - Add gallery-dl path and cookies preferences - Test runGalleryDownload spawn behavior; document line-count heuristic - Add lib/gallerydl.ts gallery-dl operations - Name the VideoForm prop type - Extract the yt-dlp form into views/video-form.tsx - Extract yt-dlp operations into lib/ytdlp.ts - Add lib/detect.ts source-type detection - Harden binary resolution: no-shell which lookup, exact test assertions - Extract binary resolution into lib/binary.ts - Add vitest for unit testing - Add Phase 2 implementation plan: gallery-dl + auto-route - Add Phase 2 design spec: gallery-dl + auto-route - Rename the command title from "Download Video" to "Download" - Rename extension from Video Downloader to Download - Fork Video Downloader extension by vimtor and contributors
|
Congratulations on your new Raycast extension! 🚀 We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days. Once the PR is approved and merged, the extension will be available on our Store. |
- Merge pull request raycast#9 from sth3no/chore/unship-planning-docs - docs(README): move README preview image out of metadata/ to media/ - chore: unship internal planning docs from extension bundle
Greptile SummaryThis PR adds The Downloader as a new Raycast extension. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (6): Last reviewed commit: "Address review: optional Deno in Fast Do..." | Re-trigger Greptile |
Windows compatibility:
- findWindowsBinary (in src/lib/binary.ts) walks env.PATH, then winget Links
shim dir, Chocolatey bin, Scoop shims, then iterates winget Packages dirs
(flat <pkg>/<name>.exe and nested <pkg>/<version>/bin/<name>.exe).
Recovers when Raycast strips PATH so `where <name>` returns nothing.
- windowsUserDirs derives LOCALAPPDATA / USERPROFILE from os.homedir()
when the env vars are unset (Raycast extension processes on Windows
ship without them).
- getWingetPath falls back to canonical
<LOCALAPPDATA>\Microsoft\WindowsApps\winget.exe when `where winget`
fails — Installer/Updater can run winget even with stripped PATH.
- Module-level cache on the winget Packages listing (1 readdirSync per
render across N tool resolutions). resetWingetPackagesCache invalidates
after winget install (installer.tsx success + "already installed") and
after upgrade (updater.tsx) so just-installed binaries appear on the
very next render.
- installer.tsx: winget exit 2316632107 ("already installed") now calls
onRefresh() (was leaving the user stuck on the Installer view); toast
gets an "Open Extension Preferences" primary action.
- spotdl.ts: forward-slash concat in output template preserves spotDL's
`/{list-name}/` separator on Windows (path.join was rewriting it to
`\`, mangling the template).
- tools/download-video.ts: filepath extraction now uses the same
THE-DOWNLOADER-FILEPATH sentinel tag as src/lib/ytdlp.ts. The old
startsWith("/") filter never matched on Windows (paths begin with a
drive letter).
Refactor / hygiene:
- New src/lib/platform-paths.ts is the single source of truth for OS
filesystem defaults: macBinarySearchDirs, windowsBinarySearchDirs,
windowsUserDirs, windowsWingetPath, defaultBinaryFallback,
HOMEBREW_DEFAULT_PATH, ROSETTA_RUNTIME_PATH. All Windows paths use
path.win32.join, all Mac paths use path.posix.join — test suite is
portable across host platforms.
- package.json: homebrewPath preference description leads with "macOS
only" so Windows users in the prefs pane know it doesn't apply.
Tests:
- 32 new specs across tests/binary.test.ts and the new
tests/platform-paths.test.ts. Cover preference precedence, where
success, winget flat/nested layouts, Links shim, Chocolatey, Scoop,
LOCALAPPDATA-from-homedir fallback, APPDATA derivation, PATH
iteration, cache hit, cache invalidation, windowsWingetPath, and
defaultBinaryFallback per platform.
- tests/run.test.ts now mocks process.platform for POSIX-only assertions
+ adds parallel Windows-branch tests.
Mac behavior preserved (every change either mac-only branch, no-op on
Mac, or test-only). 14 test files, 236 tests, all passing. Reviewed by
codex across three rounds.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Pushed What it fixesRaycast's extension process on Windows ships with a stripped How
RefactorNew Tests236 tests passing, +32 new specs covering Windows resolveBinary (preference precedence, where success, winget flat/nested, Links shim, Chocolatey, Scoop, LOCALAPPDATA-from-homedir fallback, APPDATA derivation, PATH iteration, cache hit + invalidation), platform-paths unit coverage, and POSIX-only run.ts assertions. MacPreserved. Every change is either inside a mac-only branch, a no-op on macOS, or test-only. The mac-only Reviewed by codex across three rounds ( |
Resolves a greptile review comment from PR raycast/extensions#28284: "Media" — Raycast's "images, video, audio and related services" bucket — is the natural primary category for a media downloader; "Applications" and "Data" don't fit. The fix was drafted earlier on a branch that didn't merge into main, so the original `["Applications", "Data", "Productivity"]` was still live. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Set categories to Media + Productivity per review feedback. "Media" is Raycast's "images, video, audio and related services" bucket — the natural primary category for a media downloader. "Applications" and "Data" weren't a fit. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Resolves two review findings in src/tools/download-video.ts: - The download-phase execa call now also passes --no-playlist, matching fetchVideoInfo (in src/lib/ytdlp.ts). Without it, the AI tool would start downloading every video in a playlist URL even though the metadata phase only inspected the first one. - Removed the dead `if (result.failed)` branch — execa throws on non-zero exit by default, so the formatted error never fired. The await is now wrapped in try/catch that re-throws with the same clean "Failed to download video: <stderr>" message. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Syncs the extension with upstream main after PR raycast#10. Highlights: - Transcript pipeline hardened (robust metadata, Deno runtime for YouTube, watchdog/abort, widened sub-langs, empty-result + dedup fixes). - download-video AI tool: confirms --no-playlist on the download execa and uses try/catch around execa (no dead result.failed branch) — resolves review feedback — plus an idle timeout and closed stdin. - spotDL: Rosetta fail-fast, SHA-256 download integrity + host pinning. - Filename sanitization on all platforms; gallery-dl accurate counts; metadata fetch abortable; ~/Downloads tilde expansion; Spotify format dropdown honored. - Added unit tests (transcript, utils, tools) + @raycast/api test stub. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Sync the download-correctness fix pass and dependency refresh from sth3no/the-downloader: title sanitization, --no-playlist for watch URLs, audio-only format selection, AI-tool idle watchdog, live progress output, updater/installer fixes, bounded spotDL network calls. https://claude.ai/code/session_015stBA9ojvfZfKLGGTr28Fy
0xdhrv
left a comment
There was a problem hiding this comment.
Hi @sth3no 👋
Thanks for the contribution 🔥
Could you look into the suggestions from Greptile?
Also, please check the failing checks?
I converted this PR into a draft until it's ready for the review, please press the button Ready for review when it's ready and we'll have a look 😊
|
This pull request has been automatically marked as stale because it did not have any recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊 |
…evDependencies - Fast Download no longer blocks the whole video path when Deno is not installed. Deno is only a JS-runtime enhancement for some yt-dlp extractors (e.g. YouTube), so sites like Twitch, Vimeo, or TikTok now download without it — matching how the AI tool and transcript extraction already treat it (pass the path only when present). - Moved @types/validator from dependencies to devDependencies; it ships only type declarations and has no runtime value. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_011n5YoSiFRsNq1a7eBkCmkw
|
This pull request has been automatically marked as stale because it did not have any recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊 |
|
This pull request has been automatically closed due to inactivity. Feel free to comment in the thread when you're ready to continue working on it 🙂 You can also catch us in Slack if you want to discuss this. |
Description
The Downloader is a unified Raycast command for grabbing media from the
web — videos, audio, image galleries, Spotify music, and complete webpages —
without leaving Raycast.
Commands
gallery / Spotify / unrecognized webpage) and picks the right tool.
downloads immediately using your saved defaults — no form.
AI tools
What it can fetch
SoundCloud, and any yt-dlp-supported site.
Instagram, Tumblr, and other gallery-dl sites.
setup; see
SPOTIFY.md)..htmlvia monolith.Backing tools
yt-dlp, ffmpeg/ffprobe, gallery-dl, spotDL, monolith, deno — installed via
Homebrew (macOS) or winget (Windows) through the extension's built-in
Installer view.
Platforms
macOS and Windows. Recent commits in this PR landed full Windows
compatibility (binary discovery via winget Packages, Raycast-safe
LOCALAPPDATAresolution, MSIX-launcher fallback for winget itself,cache invalidation after install/upgrade).
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder