Skip to content

Add drug-search extension - #22860

Merged
raycastbot merged 2 commits into
raycast:mainfrom
0xdhrv:ext/drug-search
Nov 13, 2025
Merged

raycastbot merged 2 commits into
raycast:mainfrom
0xdhrv:ext/drug-search

Conversation

@0xdhrv

@0xdhrv 0xdhrv commented Nov 13, 2025 •

Copy link
Copy Markdown
Member

Description

This pull request introduces a new Raycast extension called "Drug Search," which enables users to search and view FDA-approved drug information directly from the openFDA API. The implementation includes the core command, detail view, data-fetching logic, type definitions, and project configuration for development and publishing.

  • Implements the main command in search-drugs.tsx, allowing users to search, paginate, and view a list of drugs with accessories and quick actions. Each drug can be explored in detail or opened in the FDA API.
  • Adds a detailed view component in drug-detail.tsx to display comprehensive information about a selected drug, including basic info, active ingredients, FDA data, and submission history.
  • Introduces a custom hook useDrugSearch for fetching and paginating drug data from the openFDA API, handling search, sorting, and error states.

Screencast

Click-2025-11-13-09.53.14.mp4

Checklist

@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

Due to our current reduced availability, the initial review may take up to 10 business days.

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

@0xdhrv
0xdhrv marked this pull request as ready for review November 13, 2025 09:54
@greptile-apps

greptile-apps Bot commented Nov 13, 2025

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

This PR introduces a new Raycast extension called "Drug Search" that allows users to search and view FDA-approved drug information directly from the openFDA API. The extension provides a complete search interface with list view, detailed drug information display, and practical actions for copying data or viewing in the FDA database.

The implementation includes a main search command (search-drugs.tsx) that displays drugs in a paginated list with accessories showing key information like generic names, dosage forms, and application numbers. A detailed view component (drug-detail.tsx) renders comprehensive drug information in markdown format including active ingredients, FDA metadata, and submission history. The extension uses a custom useDrugSearch hook that wraps Raycast's useFetch utility to handle API integration, pagination, and error states with the openFDA database.

The codebase follows standard Raycast extension patterns with proper TypeScript interfaces for type safety, appropriate error handling, and standard project configuration files. All files use modern React patterns and integrate well with Raycast's UI components and utilities.

Important Files Changed

Filename Score Overview
extensions/drug-search/package.json 4/5 Extension metadata and configuration with appropriate dependencies and single search command
extensions/drug-search/src/search-drugs.tsx 4/5 Main command implementing drug search with list view, accessories, and user actions
extensions/drug-search/src/drug-detail.tsx 5/5 Detail view component displaying comprehensive drug information with markdown formatting
extensions/drug-search/src/useDrugSearch.ts 5/5 Custom hook for FDA API integration with pagination and error handling
extensions/drug-search/src/interfaces.ts 5/5 TypeScript interfaces for FDA API response structure
extensions/drug-search/README.md 4/5 Minimal README file that needs expansion with proper documentation
extensions/drug-search/CHANGELOG.md 5/5 Properly formatted changelog with required template string
extensions/drug-search/.prettierrc 5/5 Standard Raycast formatting configuration
extensions/drug-search/eslint.config.js 5/5 Standard Raycast ESLint configuration
extensions/drug-search/tsconfig.json 5/5 Standard TypeScript configuration for Raycast extension
extensions/drug-search/.gitignore 5/5 Complete gitignore file with proper exclusions for Raycast extension

Confidence score: 4/5

  • This PR is safe to merge with minor improvements recommended for better user experience
  • Score reflects solid implementation with proper patterns but deducted due to minimal README documentation and suboptimal category selection in package.json that could affect discoverability
  • Pay close attention to the README file which needs expansion and consider the package.json categorization

@greptile-apps greptile-apps Bot 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.

11 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

markdown += `- **Reference Standard:** ${drug.products[0]?.reference_standard === "Yes" ? "Yes ✓" : "No"}\n\n`;

// Active Ingredients
if (drug.products[0]?.active_ingredients && drug.products[0].active_ingredients.length > 0) {

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.

style: Consider using drug.products?.[0]?.active_ingredients?.length > 0 for more consistent optional chaining

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@pernielsentikaer pernielsentikaer 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 82d7e68 into raycast:main Nov 13, 2025
@github-actions

Copy link
Copy Markdown
Contributor

@raycastbot

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.

csymons pushed a commit to csymons/raycast-extensions that referenced this pull request Nov 18, 2025
- update npm dependencies
- set RefreshStatus on all command calls
- update dependencies
- fix(scheduler): add missing code changes
- package-lock.json update
- fix: add missing BACKGROUND_REFRESH_STATUS to STORAGE_KEYS
- Pull contributions
- update changelog
- docs: update CHANGELOG for background refresh alert feature
- feat: add background refresh status alert to scheduled command form
- feat(mcp-registry): update nuxt mcp server url (raycast#22865)
- Update CODEOWNERs (8f56211)
- Update google-chrome extension (raycast#22926)
- Update CODEOWNERs (a390ca2)
- Add kalshi extension (raycast#22776)
- Update CODEOWNERs (0ee9695)
- Add port-from-project-name extension (raycast#22312)
- Add AUP link to README.md (raycast#22935)
- Google Calendar: Make compatible for internal build on Windows (raycast#22932)
- Update CODEOWNERs (142e4b7)
- Update kagi search extension (raycast#22921)
- Update CODEOWNERs (0273e95)
- Update type-snob extension (raycast#22925)
- Update CODEOWNERs (7d5913a)
- Add `Featurebase` extension (raycast#22891)
- Update CODEOWNERs (e634a89)
- Update `LLMs Txt` add Windows support (raycast#22900)
- Update `n8n` extension - fix crash when invalid URL (show EmptyView) (raycast#22917)
- Update CODEOWNERs (3b6e10f)
- Update can-i-use extension (raycast#22923)
- Update bitbucket extension (raycast#22836)
- Add AI assistant tooling to Raindrop.io extension (raycast#22908)
- Update excel-formula-beautifier extension (raycast#22871)
- [Groq] Update models (raycast#22902)
- [Chatwoot] fix msg crash when no sender name (one line fix) (raycast#22919)
- Update CODEOWNERs (a4d9e68)
- Forked extensions windows cloning error when user folder has space (raycast#22914)
- Update `Appwrite` extension - fix users + copy id + add sort order (raycast#22890)
- Update CODEOWNERs (d1dd3af)
- Update installed extensions extension (raycast#22895)
- Update vps-explorer extension (raycast#22863)
- Update 1password extension (raycast#22877)
- Add screenshots for WebBlocker extension (raycast#22893)
- Update CODEOWNERs (8ee1662)
- Update type-snob extension (raycast#22876)
- Update CODEOWNERs (8e37381)
- Add `Immich` extension - Explore + Library + API Keys (raycast#22884)
- Update wechat-devtool extension (raycast#22886)
- Update CODEOWNERs (dac38da)
- Add WebBlocker extension for productivity and focus (raycast#22715)
- Update CODEOWNERs (4c92abd)
- Spotify Player - Add Windows support (raycast#22759)
- Update CODEOWNERs (bb38e63)
- Add yasb extension (raycast#22555)
- Update toolbox extension (raycast#22527)
- Update CODEOWNERs (2ce0208)
- Add winscp extension (raycast#22012)
- Update CODEOWNERs (4bb8c1d)
- Add ports extension (raycast#21729)
- [Home Assistant] Replace deprecated attribute and fix related commands (raycast#22870)
- Update CODEOWNERs (e7d3e1f)
- Update cratecast extension (raycast#22720)
- Update CODEOWNERs (967888a)
- Add qalc extension (raycast#21937)
- Update CODEOWNERs (6a294ca)
- Add eurovision-song-contest extension (raycast#22866)
- [NetNewsWire] fix articles not loading (raycast#22864)
- Update CODEOWNERs (7762919)
- Update library-genesis extension (raycast#22869)
- Update CODEOWNERs (82d7e68)
- Add drug-search extension (raycast#22860)
- set RefreshStatus on all command calls
- update dependencies
- fix(scheduler): add missing code changes
- package-lock.json update
- fix: add missing BACKGROUND_REFRESH_STATUS to STORAGE_KEYS
- Pull contributions
- update changelog
- docs: update CHANGELOG for background refresh alert feature
- feat: add background refresh status alert to scheduled command form
raycastbot added a commit that referenced this pull request Nov 18, 2025
* Update scheduler extension

- Merge branch \'contributions/merge-1761638558070\'
- Pull contributions
- update changelog
- docs: update CHANGELOG for background refresh alert feature

* Update scheduler extension

- package-lock.json update
- fix: add missing BACKGROUND_REFRESH_STATUS to STORAGE_KEYS

* Update scheduler extension

- update dependencies
- fix(scheduler): add missing code changes
- package-lock.json update
- fix: add missing BACKGROUND_REFRESH_STATUS to STORAGE_KEYS
- Pull contributions
- update changelog
- docs: update CHANGELOG for background refresh alert feature
- feat: add background refresh status alert to scheduled command form
- [Linear] Use API-provided notification presentation (#22285)
- Update CODEOWNERs (1a7209e)
- Update harvest extension (#22256)
- Update CODEOWNERs (13787cd)
- Fix finding button in Tahoe. (#22330)
- Update GitHub Actions workflow for PR approvals (#22487)
- Docs: update for the new API release
- Update CODEOWNERs (77f6477)
- Added support for Asana sections (#21912)
- Update auto-label workflow for PR approvals (#22484)
- Update GitHub Actions workflow to set effective token (#22482)
- Update workflow to use pull_request_review event (#22479)
- Update CODEOWNERs (d5727aa)
- Add action to generate and copy private links (#22273)
- Enhance PR approval labeling workflow (#22477)
- Chatgpt atlas bookmarks improvement (#22371)
- Add windows support  (#22367)
- Update diskutil-mac extension (#22307)
- [Secret Browser Commands] add ChatGPT Atlas, etc (#22348)
- Update deployhq extension (#22319)
- [Serie A] Update extensions (#22427)
- package-lock.json update
- fix: add missing BACKGROUND_REFRESH_STATUS to STORAGE_KEYS
- Merge branch \'contributions/merge-1761638558070\'
- Pull contributions
- update changelog
- docs: update CHANGELOG for background refresh alert feature
- feat: add background refresh status alert to scheduled command form

* Update scheduler extension

- set RefreshStatus on all command calls
- update dependencies
- fix(scheduler): add missing code changes
- package-lock.json update
- fix: add missing BACKGROUND_REFRESH_STATUS to STORAGE_KEYS
- Pull contributions
- update changelog
- docs: update CHANGELOG for background refresh alert feature
- feat: add background refresh status alert to scheduled command form
- Update CODEOWNERs (b30fad6)
- Add httpperf extension (#22809)
- Update CODEOWNERs (a1b96be)
- Add git extension (#22550)
- Update CODEOWNERs (9c35408)
- Add logos-launcher extension (#22366)
- Update CODEOWNERs (792ccbd)
- Add crypto-portfolio-tracker extension (#22516)
- Update CODEOWNERs (7c738cc)
- chore: update github username (#22634)
- Update CODEOWNERs (2009369)
- feat(screenocr): add option to disable sound and toast message (#22559)
- feat: Vision Support with Pixtral Models and Clipboard Integration (#22724)
- Update CODEOWNERs (76861a7)
- Update deepcast extension (#22830)
- Update CODEOWNERs (4e55cf4)
- [Sink] windows support + shortcuts + modernize (#22850)
- chore(sdk-scw): migrate to new sdk (#22777)
- Improve regex pattern used for Jira issue key detection (#22833)
- Update freeagent extension (#22818)
- Update CODEOWNERs (0fe6eb9)
- [JWT Decoder] Update dependencies (#22411)
- Update CODEOWNERs (05e1779)
- Add grokipedia extension (#22519)
- Update CHANGELOG.md (#22832)
- [VLC] Add commands for speed and history (#22800)
- Update CODEOWNERs (630baf9)
- Update search-router extension (#22823)
- Update CODEOWNERs (660ff27)
- Add excel-formula-beautifier extension (#22578)
- Update CODEOWNERs (f46e7f5)
- Add json-resume extension (#22499)
- Update vps-explorer extension (#22819)
- Update CODEOWNERs (fae2c29)
- Update prism-launcher (#22801)
- Update CODEOWNERs (6c53c0e)
- Update video-downloader extension (#22810)
- Update CODEOWNERs (b4006be)
- Add vps-explorer extension (#22507)
- [Ligue-1] Update extensions (#22806)
- Update `Coolify` extension - delete project (new action) (#22794)
- Update CODEOWNERs (f6d7e48)
- Add `Firefly III` extension (#22795)
- Update CODEOWNERs (cfb46f5)
- Add AI by vercel extension (#22804)
- Update review expectations message in pr-bot (#22734)
- Change fetch URL and parse frontend version (#22751)
- Update CODEOWNERs (61c928e)
- fix(extension): fix zen-browser opening new tab in private window in windows (#22767)
- Update raycast-zoxide extension (#22775)
- Update browser bookmarks extension (#22778)
- Update CODEOWNERs (5898b65)
- Add rule-of-three extension (#22773)
- Update twitch (#22770)
- Update fathom extension (#22760)
- [Postiz] v2 month till EoM + posts in markdown (#22774)
- Update CODEOWNERs (ad1c866)
- Update twitch (#22746)
- Update CODEOWNERs (584953d)
- Add Shelve extension (#22287)
- Update CODEOWNERs (342955a)
- Add ray-code extension (#22755)
- Update qbittorrent (#22756)
- Update CODEOWNERs (c282ff1)
- Update uploadthing (#22763)
- Update cloudflare-warp extension (#22765)
- Update CODEOWNERs (38c5ec8)
- Add `Papra` extension (#22761)
- Update CODEOWNERs (ba06e8c)
- add: Orshot extension (#21715)
- [ivpn] minor fix: error handling in logout command (#22757)
- Update CODEOWNERs (977815a)
- Update steam (#22730)
- Update CODEOWNERs (52b198d)
- feat(imessage-2fa): add support for the 2FA from Epos Card Japan (#22593)
- Update browser history extension (#22749)
- Update `Appwrite` extension - Show Sites, Deployments, Variables (#22754)
- [Multilinks] Add Perplexity Comet browser support (#21476)
- Update anna-s-archive extension (#22739)
- Update CODEOWNERs (fceb40c)
- [ccusage] feat: enhance Node.js path resolution and CLI execution flexibility (#22740)
- Update silent-mode extension (#22738)
- Update CODEOWNERs (8101bc2)
- AppGrid - Smart app launcher with grid view and category grouping (#22709)
- Update CODEOWNERs (c6c796f)
- Add silent-mode extension (#22732)
- feat(ray-so): add nuxt theme preferences (#22733)
- Update CODEOWNERs (6de71ca)
- Add pi-drill extension (#22714)
- Update CODEOWNERs (043ad9b)
- Update bitbucket extension (#22708)
- Update CODEOWNERs (57cbf4b)
- Add ping-menu extension (#22299)
- Docs: Update the utils docs
- Update CODEOWNERs (d3ea74a)
- Add udemy-coupons extension (#22713)
- Update CODEOWNERs (2dfb48e)
- Update qbittorrent (#22728)
- Update CODEOWNERs (7c6269c)
- Add dice-tiles extension (#22021)
- FuelX: Remove vulnerable, but unused, dependencies. (#22727)
- LingoRep: Fix security vulnerabilities. (#22726)
- Update CODEOWNERs (9a3fcb4)
- Add zshrc-manager extension (#22314)
- Update CODEOWNERs (6f5ff61)
- Update parallels-virtual-machines extension (#22676)
- Update CODEOWNERs (a92f1b8)
- Add tex2typst extension (#22667)
- Update CODEOWNERs (dbdf418)
- feat(sound-search): new extension for searching sounds 🎵  (#22590)
- Update skyscanner-flights extension (#22723)
- Update CODEOWNERs (1931677)
- Add rhttp extension (#22359)
- Update `Capacities` extension - Maintenance + Windows Support (#22694)
- Update CODEOWNERs (6f7ed84)
- Add `NetNewsWire` extension (#22717)
- [Chatwoot] search contacts + show unread convo count (#22719)
- Add Ghostty terminal support to Claude Code Launcher (#22706)
- Update knowyourmeme extension (#22705)
- Feature mistral medium (#22633)
- Update CODEOWNERs (10b7497)
- Handle the search favourite space error (#22689)
- Update CODEOWNERs (85f8818)
- Update timezone-buddy extension (#22652)
- Update CODEOWNERs (10af08b)
- Extension: cloudflare (#22660)
- feat(chatgpt-search): Make query parameters configurable, simplify extension (#22677)
- Update CODEOWNERs (33834b7)
- Add prompt-builder extension (#22648)
- Update CODEOWNERs (aa91051)
- Add display-reinitializer extension (#22678)
- Update CODEOWNERs (2780fca)
- Update messages extension (#22687)
- Update CODEOWNERs (cde25cb)
- [gitignore] Windows Support and Favourites (#22623)
- Update CODEOWNERs (6e16a93)
- [Google Search] Release for Windows (#22410)
- Update skyscanner-flights extension (#22686)
- Update jsr extension (#22682)
- Update CODEOWNERs (9b38b34)
- Update spell extension (#22657)
- Update CODEOWNERs (24aabfd)
- [Adhan Time] Add Windows support (#22622)
- Update CODEOWNERs (2a66830)
- Update parcel extension (#22239)
- Update CODEOWNERs (5b5c73f)
- Update idonthavespotify extension (#22695)
- Update CODEOWNERs (f7ae792)
- [Search NPM Packages] Add Bun Support (#22697)
- Update CODEOWNERs (62749d7)
- Add skyscanner-flights extension (#22646)
- [Premier League] API Migration (#22631)
- Update svelte-docs extension (#22666)
- Update CODEOWNERs (d9f76b0)
- Update keyboard-shortcut-sequences extension (#22181)
- Docs: update for the new API release
- Ertembiyik/update punto (#22624)
- Update svelte-docs extension (#22650)
- Update CODEOWNERs (9894359)
- Add `Grist` extension (#22655)
- Update CODEOWNERs (29553c0)
- Update `Pastefy` extension - add win support + 2 new create preference (close 2 issues) (#22656)
- feat(google-chrome): add exclude search functionality (#22614)
- Update CODEOWNERs (cc8a88c)
- Update url parse extension (#22662)
- Update CODEOWNERs (92771db)
- Add Tempo extension (#22643)
- Update svelte-docs extension (#22533)
- Update CODEOWNERs (977eb5e)
- Add Copy Notion Markdown Link extension (#22523)
- Update prism-launcher extension (#22645)
- Update prism-launcher extension (#22526)
- Update CODEOWNERs (c8bea53)
- Add qrcp extension (#22524)
- Keeper Security Updated Readme file (#22642)
- Update currency-exchange extension (#22620)
- [ENS name lookup]: Fix the extension functionality (#22613)
- Update CODEOWNERs (6c3d489)
- Update any-website-search extension (#22574)
- Update plane extension - README (#22636)
- Update CODEOWNERs (257ee84)
- Update delivery-tracker extension (#22577)
- Update roblox-creator-docs extension (#22538)
- Update plane extension - Support for Plane Self Hosted and API Key authentication (#22608)
- Update tembo extension (#22615)
- Update bible extension (#22606)
- Update `Koyeb` extension - paginate activities + app,service events (#22619)
- Update CODEOWNERs (42d77f5)
- Add linkace extension (#22362)
- Update CODEOWNERs (e1f980c)
- Add paperform extension (#22500)
- Update CODEOWNERs (cdfc891)
- Update T3 Chat extension - Added new models (#22127)
- Update `Attio` extension - use official logo + add task (#22609)
- Update claude extension to dynamically retrieve models (#22217)
- Update CODEOWNERs (936310d)
- Agent Client Protocol client implementation (#22140)
- Update some dependencies to fix some security issues (#22610)
- Update harvest extension (#22545)
- Update CODEOWNERs (b8c8fcd)
- Update some deps to fix vunerability issues (#22546)
- Update discord-timestamps extension (#22554)
- Update Eagle extension (#22560)
- Update zed-recent-projects extension (#22562)
- Updated to Filament 4 (#21869)
- [Coolify] add Windows support (#22565)
- Fix: Compatibility with new Luna UI, Windows Support, Version Updates (#22575)
- Update `Resend` extension - use Node SDK  (#22572)
- Update CODEOWNERs (7a56bbe)
- Update raindrop-io extension (#22552)
- Updated backend endpoints (#22568)
- Update swift-command extension (#22592)
- [Brand Icons] Routine maintenance (#22564)
- Update radarr extension (#22580)
- Update exif extension (#22542)
- Convert Media: add `Copy FFmpeg Command`, remove AVI CRF,... (#22549)
- Update `FreeDNS` extension - modernize + add windows support (#22536)
- Update plane extension README (#22548)
- Update kagi-news extension (#22539)
- Fix casing of \'Windows\' to \'windows\' in keyboard.md (#22540)
- Update CODEOWNERs (0a69122)
- Update timezone-buddy extension (#22349)
- Update reclaim-ai extension to include support for platform: Windows & fix bug with search tasks (#22460)
- Update CODEOWNERs (f4aad1f)
- Add knowyourmeme extension (#22305)
- Update CODEOWNERs (53d4b50)
- Update gitlab extension (#22360)
- Update CODEOWNERs (7b1e59c)
- Add kagi-news extension (#22389)
- brew: Change "formula" to "formulae" (#22518)
- Update CODEOWNERs (257af69)
- Add string-formatter extension (#21859)
- Update CODEOWNERs (2a0fab2)
- Add helium extension (#22290)
- feat(markdown-codeblock): add newline prefix (#22369)
- Update CODEOWNERs (b20058a)
- Docker/add windows support (#22455)
- Add Windows platform support (#22453)
- Update CODEOWNERs (aa68611)
- Add xkcd-password-generator extension (#22433)
- Update CODEOWNERs (8bf2a9d)
- Add Stagehand extension (