Skip to content

feat(sound-search): new extension for searching sounds 🎵 - #22590

Merged
raycastbot merged 11 commits into
raycast:mainfrom
clins1994:ext/sound-search
Nov 7, 2025
Merged

raycastbot merged 11 commits into
raycast:mainfrom
clins1994:ext/sound-search

Conversation

@clins1994

@clins1994 clins1994 commented Nov 2, 2025 •

Copy link
Copy Markdown
Contributor

Description

Sound Search is a Raycast extension designed to help anyone—artists, creators, filmmakers, advocates, and more—quickly find the perfect sound or music sample for any purpose. Whether you're making videos, podcasts, campaigns, or just looking for creative inspiration, Sound Search enables you to discover quality samples from curated sources to fit your needs.

For more info check the README.md on https://github.com/clins1994/sound-search

Screencast

https://drive.google.com/file/d/1M2opXNG5w3InUBWKyu3rxCC_9zJZxZYg/view?usp=drive_link

Checklist

@raycastbot raycastbot added new extension Label for PRs with new extensions AI Extension platform: macOS labels Nov 2, 2025
@raycastbot

ghost commented Nov 2, 2025

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

You can expect an initial review within five business days.

Once the PR is approved and merged, the extension will be available on our Store.

@clins1994 clins1994 changed the title Add sound-search extension 🎵 Add sound-search extension Nov 2, 2025
@clins1994
clins1994 marked this pull request as ready for review November 2, 2025 15:17
@clins1994

ghost commented Nov 2, 2025

Copy link
Copy Markdown
Contributor Author

@greptileai can you give us a fresh review here?

ghost left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Overview

Greptile Summary

This PR introduces a new "Sound Search" extension that enables users to discover audio samples and music for creative projects. The extension provides both manual search functionality through a form-based interface with genre selection and AI-powered search using natural language queries. The implementation integrates with Soundraw's API (in closed beta) and includes comprehensive features like favorites management, recent samples tracking, audio playback with auto-play on selection, and drag-and-drop file support through local caching. The extension follows modern React patterns with custom hooks for state management, utilizes Raycast's caching systems for performance optimization, and includes proper TypeScript typing throughout. The architecture supports multiple audio sources and provides a polished user experience with loading states, error handling, and file management utilities.

Important Files Changed

Filename Score Overview
extensions/sound-search/eslint.config.js 2/5 ESLint configuration using incorrect ES modules syntax instead of required CommonJS format
extensions/sound-search/src/lib/file.ts 3/5 File management utilities with potential command injection vulnerability in clipboard functionality
extensions/sound-search/src/tools/ask-sounds.ts 3/5 AI-powered search tool with hardcoded deeplink owner and complex parsing logic
extensions/sound-search/src/lib/cache.ts 4/5 Audio file caching system using Raycast Cache API with proper error handling
extensions/sound-search/package.json 4/5 Well-structured package configuration with comprehensive AI evals and proper dependencies
extensions/sound-search/README.md 4/5 Complete documentation with clear setup instructions and hackathon attribution
extensions/sound-search/src/components/SamplesList.tsx 4/5 Complex samples display component with auto-play and drag-and-drop file preparation
extensions/sound-search/src/search-sounds.tsx 4/5 Main search interface with form validation, genre selection, and multi-source support
extensions/sound-search/CHANGELOG.md 5/5 Properly formatted changelog with correct template string for merge date
extensions/sound-search/src/components/actions/CopyUrlAction.tsx 5/5 Clean copy action component with audio cleanup functionality
extensions/sound-search/src/lib/hash.ts 5/5 Simple URL hashing utilities for cache management
extensions/sound-search/src/lib/hooks.ts 5/5 Well-structured custom hooks for playback state and favorites management
extensions/sound-search/src/lib/types.ts 5/5 Comprehensive TypeScript definitions for API integration and data structures
extensions/sound-search/tsconfig.json 5/5 Standard TypeScript configuration following Raycast extension conventions

Confidence score: 3/5

  • This PR introduces significant new functionality but has several technical concerns that need addressing before merging
  • Score reflects issues with ESLint configuration format, potential security vulnerabilities in shell command execution, and hardcoded values that may cause integration problems
  • Pay close attention to eslint.config.js, src/lib/file.ts, and src/tools/ask-sounds.ts which require modifications to meet standards

14 files reviewed, 6 comments

Edit Code Review Agent Settings | Greptile

- run prettier and remove module setting in package.json
- refactor: replace execSync with spawnSync for clipboard copy functionality and enhance path validation
- use package.json author
- revert: eslint modernization
@clins1994

ghost commented Nov 2, 2025 •

Copy link
Copy Markdown
Contributor Author

@greptileai I've addressed your changes, please have another look

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Overview

Greptile Summary

This review covers only the changes made since the last review, not the entire PR. The recent changes focus on module system consistency and security improvements. The extension was converted from ES modules to CommonJS by removing "type": "module" from package.json and updating the ESLint configuration accordingly. A security enhancement was implemented in the file handling utilities, replacing execSync with spawnSync to prevent command injection vulnerabilities when copying files to clipboard. Additionally, the deeplink creation was improved by dynamically importing the author name from package.json instead of using a hardcoded value, enhancing maintainability and consistency with package metadata.

Important Files Changed

Filename Score Overview
extensions/sound-search/src/tools/ask-sounds.ts 5/5 Replaces hardcoded author name with dynamic import from package.json for deeplink creation
extensions/sound-search/src/lib/file.ts 4/5 Implements security improvements by switching from execSync to spawnSync to prevent command injection
extensions/sound-search/package.json 4/5 Removes "type": "module" field to switch from ES modules to CommonJS module system
extensions/sound-search/eslint.config.js 5/5 Converts ESLint configuration from ES modules to CommonJS format with proper disable comment

Confidence score: 4/5

  • This PR introduces important security improvements and module system consistency changes with minimal risk
  • Score reflects the module system change which could potentially affect import/export behavior across the codebase, though the security improvements are well-implemented
  • Pay close attention to extensions/sound-search/package.json and extensions/sound-search/src/lib/file.ts for the module system changes and security enhancements

4 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Comment thread extensions/sound-search/package.json Resolved
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@clins1994 clins1994 changed the title 🎵 Add sound-search extension feat(sound-search): new extension for searching sounds 🎵 Nov 2, 2025
@pernielsentikaer
pernielsentikaer marked this pull request as draft November 3, 2025 10:30
@pernielsentikaer

ghost commented Nov 3, 2025

Copy link
Copy Markdown
Contributor

Converted to draft as new feedback about mock data was given

- Merge branch \'contributions/merge-1762168583328\'
- Pull contributions
- remove owner to publish via npx ray publish
- make npx ray evals pass while improving the ask-sounds tool
- add organization
@clins1994
clins1994 marked this pull request as ready for review November 3, 2025 11:17

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Overview

Greptile Summary

This review covers only the changes made since the last review, not the entire PR. The recent changes focus on two main improvements: simplifying AI response parsing in the ask-sounds.ts tool and refactoring AI evaluation tests in package.json. The developer switched from structured JSON output to plain comma-separated text for AI responses, making the parsing more reliable and less prone to errors from malformed responses. Additionally, the code now dynamically reads extension and command names from package.json for deeplink creation instead of using hardcoded values, improving maintainability. The AI evaluation tests were restructured from a nested object format to simpler string queries with added mock data for better testing coverage.

Important Files Changed

Filename Score Overview
extensions/sound-search/package.json 4/5 Restructured AI evaluation tests from nested objects to string queries and corrected preference title case
extensions/sound-search/src/tools/ask-sounds.ts 4/5 Simplified AI response parsing from JSON to CSV format and made deeplink creation dynamic

Confidence score: 4/5

  • This PR is safe to merge with low risk of production issues
  • Score reflects solid refactoring that improves reliability and maintainability while addressing the previous review feedback
  • The ask-sounds.ts file benefits from simplified parsing logic that reduces error-prone JSON handling

2 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Caio Lins and others added 3 commits November 3, 2025 20:43
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit dbdf418 into raycast:main Nov 7, 2025
@github-actions

ghost commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 7, 2025

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

@clins1994
clins1994 deleted the ext/sound-search branch December 22, 2025 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Extension new extension Label for PRs with new extensions platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants