Repository navigation
Add scrycast extension - #26839
Add scrycast extension#26839
Conversation
- prep for publishing - personal collection - fix recent search - Merge pull request raycast#2 from aayushpi/feat/search-history - Add search history with save-on-card-open trigger - Merge pull request raycast#1 from aayushpi/feat/search-debounce - add debounce - all prints - saved cards - more updates - Update index.tsx - nit - init
|
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 10-15 business days. Once the PR is approved and merged, the extension will be available on our Store. |
|
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 😊 |
- Add Browse Decks command, DFC flip, PNG images, and cross-deck search - Merge pull request raycast#3 from aayushpi/feature/browse-sets - Add Browse by Set command with background cover fetching and set card views - Fix all lint warnings: suppress EDHRec title case rule, fix Prettier - Fix TS2322: cast searchTagTarget result to ReactNode for CI compatibility
- Fix Prettier formatting in card-views.tsx - Fix CI TS2322: dedupe @types/react via npm overrides
Greptile SummaryThis PR introduces the Scrycast extension, a full-featured Magic: The Gathering card browser built on top of the Scryfall API. It adds five commands: Scryfall card search, bookmarked cards, personal ManaBox collection import/browse, set browser with background cover-art loading, and a deck browser supporting Moxfield, Archidekt, and pasted deck lists.
Confidence Score: 5/5Safe to merge after removing the redundant Other category entry from package.json. The extension is well-structured with centralised shared types, documented design trade-offs, and no logic bugs. The only finding is a minor category configuration issue that does not affect functionality. extensions/scrycast/package.json — redundant Other category entry. Important Files Changed
Prompt To Fix All With AIFix the following 1 code review issue. Work through them one at a time, proposing concise fixes.
---
### Issue 1 of 1
extensions/scrycast/package.json:55-58
**`"Other"` category is redundant alongside `"Fun"`**
The `Other` category is reserved for extensions that don't fit any predefined category. Since this extension already maps cleanly to `Fun`, including `Other` alongside it is a violation of the category guidelines. Remove `"Other"` and keep just `["Fun"]`.
Reviews (5): Last reviewed commit: "Update CHANGELOG.md, add platforms field..." | Re-trigger Greptile |
|
All of these changes have been made in new version
|
This is intended behavior as unique prints are counted differently and should be expected behavior |
| "title": "Search Cards", | ||
| "subtitle": "Search cards on Scryfall", | ||
| "description": "Search cards on Scryfall", | ||
| "mode": "view" |
There was a problem hiding this comment.
issue: missing metadata images
Could you add at least one screenshot of the extension and add them to a folder called metadata - you need to use our tool to get the right padding on the images
There was a problem hiding this comment.
Hi there! Thank you for the review. I have added screenshots to the folder!
0xdhrv
left a comment
There was a problem hiding this comment.
Hey @aayushpi 👋
I have added a comment for you to address.
I'm looking forward to testing this extension again 🔥
Feel free to contact me here or at Slack if you have any questions.
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 😊
- added metadata - P2: remove duplicate types and helpers, import from shared
Thank you for the review! I have added screenshots to the folder! |
0xdhrv
left a comment
There was a problem hiding this comment.
Thanks for your contribution @aayushpi 🔥
I missed this, can you please take a look at this?
We already have an extension in the Store that deals with this. Could we consider enhancing the existing extension below instead of creating another one?
- https://www.raycast.com/madmaxmckinney/lotus-mtg-companion by @MadMaxMcKinney
If there are unique features or workflows you’re aiming to add, we’d love to hear them and see if they can be integrated into this to avoid duplication and improve discoverability.
This would help avoid duplication and keep related functionality consolidated in one place.
As mentioned in our extension guidelines here ↗
Hi @0xdhrv , I considered this. This extension is similar on the face but this one is suited towards collection management and is architecturally quite different. Offering storage and looking up 1000s of cards would break the simplicity of the app.
This is more akin to how there are different services for Google Drive: this one has a more collection oriented nature of the app. |
|
@0xdhrv Hi Dhruv, any thoughts on this? |
- Add *.pdf to .gitignore - Fix Prettier formatting in search-view and set-cards-view - Refactor: extract shared constants/helpers, add CardActions, fix DFC flip visibility
| shortcut={{ modifiers: ["cmd"], key: "return" }} | ||
| /> | ||
| <Action.OpenInBrowser | ||
| title="Open in Edhrec" // eslint-disable-line @raycast/prefer-title-case |
There was a problem hiding this comment.
Stale
decks closure in backfill effect can drop newly-added decks
The async backfill captures decks from the effect's closure (bound at the time the effect fires). If the user adds or removes a deck while the network fetches are in-flight, the final setDecks(...) call spreads the stale snapshot and overwrites the updated list, silently losing any deck that was added in the meantime.
Use a functional update so setDecks always operates on the latest storage value:
| title="Open in Edhrec" // eslint-disable-line @raycast/prefer-title-case | |
| if (updated.length) { | |
| setDecks((current) => (current ?? []).map((d) => updated.find((u) => u.id === d.id) ?? d)); | |
| } |
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/scrycast/src/browse-decks.tsx
Line: 820
Comment:
**Stale `decks` closure in backfill effect can drop newly-added decks**
The async backfill captures `decks` from the effect's closure (bound at the time the effect fires). If the user adds or removes a deck while the network fetches are in-flight, the final `setDecks(...)` call spreads the stale snapshot and overwrites the updated list, silently losing any deck that was added in the meantime.
Use a functional update so `setDecks` always operates on the latest storage value:
```suggestion
if (updated.length) {
setDecks((current) => (current ?? []).map((d) => updated.find((u) => u.id === d.id) ?? d));
}
```
How can I resolve this? If you propose a fix, please make it concise.|
Published to the Raycast Store: |
|
🎉 🎉 🎉 Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@aayushpi). Please link your GitHub account to your Raycast account to receive your credits and soon be able to exchange them for some swag. |

Description
A lil extension to search for Magic: The Gathering cards on Scryfall and on a personal collection
Screen
Screen.Recording.2026-04-01.at.4.57.00.PM.mov
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder