Repository navigation
Add raycast-melange extension - #27734
seanwessmith wants to merge 3 commits into
Conversation
|
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. |
Greptile SummaryThis PR adds a new
Confidence Score: 5/5Safe to merge; the extension is a new addition that does not touch existing extensions and all hard-blockers from prior review rounds have been fixed. The changed code is well-structured and isolated to a new extension directory. Both fetch paths now carry abort/timeout guards, preference types use the auto-generated No files require special attention; the one open observation is in 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/raycast-melange/src/annas.ts:149-151
**Double language filter may silently drop English results**
The search request already sends `lang=en` to Anna's Archive, so the server should only return English records. This client-side `isEnglishLanguage` guard additionally requires the scraped HTML to expose a `[en]` language tag in the exact format matched by `/\[en\]/i`. When a record's metadata row doesn't render a parseable language tag (e.g., the site uses a different format, or the element is absent), `language` stays `undefined`, `isEnglishLanguage` returns `false`, and that book is silently removed from results — even though the server already confirmed it as English. Removing or relaxing this secondary filter would avoid false negatives without introducing non-English results.
Reviews (3): Last reviewed commit: "Add EPUB download timeout" | Re-trigger Greptile |
0xdhrv
left a comment
There was a problem hiding this comment.
Thanks for your contribution
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/j3lte/anna-s-archive by @j3lte
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
|
Looking at this extension the thing that could be integrated in the existing extension would be the 'Dowload EPUB' functionality. My extension searches for everything, not just epubs. It opens the page instead of providing a way of directly downloading an epub |
|
That makes sense. I’ll make a new PR enhancing the existing Anna’s Archive extension:
|
|
I opened the integration PR here: #28374 That PR enhances the existing Anna's Archive extension with the EPUB slow-download and optional fast-download actions while keeping the broader all-format search intact. |
Thanks a lot! |
|
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
Adds Raycast Melange, a Raycast extension command for searching Anna's Archive for English EPUB results. The command ranks likely good matches, opens the slow-download page by default, and supports Anna's official member fast-download API when a secret key is configured in Raycast preferences.
Screenshot
A Raycast Window Capture screenshot is included in
extensions/raycast-melange/metadata/search-epubs-1.png.Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder