unfetch
CORSflare
unfetch | CORSflare | |
---|---|---|
1 | 2 | |
5,683 | 145 | |
- | - | |
0.0 | 0.0 | |
10 months ago | over 3 years ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
unfetch
-
You Might Not Need JQuery
You can use a polyfill such as https://github.com/developit/unfetch (500 bytes).
CORSflare
-
Show HN: Searchall ā search all major indexes on one page (with iframes)
Try out some queries from your browser history and see if anything beats google. Other engines are more likely to beat google for queries that google has failed at.
Majority of engines were found at below link. Surprisingly many engines use the same indices, for example duckduckgo is mostly just privacy-protected bing. Big thanks to Rohan Kumar.
https://seirdy.one/2021/03/10/search-engines-with-own-indexe...
A proxy is needed to bypass iframe restrictions for most websites. I used this x-frame-bypass client js code [https://github.com/niutech/x-frame-bypass] which (previously?) used proxy.megatunger.com . That free proxy could be recording your queries, who knows, so use caution.
If (when actually) that proxy goes down I think I'll set up something like CORSflare to have a more reliable and trustworthy alternative. [https://github.com/Darkseal/CORSflare]
I hacked this together over about one workday in total so it's likely to have significant issues. You can comment them here or (preferably) file an issue on the repo: [https://github.com/qpwo/searchall/]
There's also a demo video on the repo if the site goes down but you wanted to see how it looks. Feel free to file feature requests on the repo as well. If you'd rather copy it and make your own version then that's fine too.
I'll try to reply to all comments here.
-
Question about HTTPS requests
Otherwise, if it is on a server, when you make the request, add a header like āOriginā: āhttps://(sitename).com/ā where sitename would be the URL (not yours, in this case Pipedreamās) to avoid CORS. If worse comes to worse though, you could make your own proxy using Cloudflare Workers. Thereās also Cloudflare CORS-Anywhere and CORSFlare
What are some alternatives?
pjax - Easily enable fast Ajax navigation on any website (using pushState + xhr)
cloudflare-cors-anywhere - CORS "anywhere" proxy in a Cloudflare worker. DEMO at: https://test.cors.workers.dev/
sharedworker - A small spec. compliant polyfill for SharedWorkers, it acts as a drop in replacement for normal Workers.
fastify-cors - Fastify CORS
adapter - Shim to insulate apps from spec changes and prefix differences. Latest adapter.js release:
x-frame-bypass - Web Component extending IFrame to bypass X-Frame-Options: deny/sameorigin
window.fetch polyfill - A window.fetch JavaScript polyfill.
cloudflare-worker-router - A super lightweight router (1.0K) with middleware support and ZERO dependencies for Cloudflare Workers.
cash - An absurdly small jQuery alternative for modern browsers.
terraform-cloudflare-maintenance - Terraform module to create a responsive Maintenance Page using Cloudflare Workers.
hyperscript - Create HyperText with JavaScript.
paste-story - A serverless Pastebin that allows users to share text content through a link