website icon indicating copy to clipboard operation
website copied to clipboard

Removes Algolia in favor of Orama

Open micheleriva opened this issue 1 year ago • 8 comments

As discussed with @nicolo-ribaudo, I'm opening a PR to add support for Orama search instead of Algolia. This results in faster searches (the search engine runs locally on the browser), with an open-source solution that does not require configuration or maintenance.

Happy to discuss this and make changes if you require so.

micheleriva avatar Feb 02 '24 11:02 micheleriva

Deploy Preview for babel-next failed.

Name Link
Latest commit 6e383d0d2eec55680d97327c2675f67465633857
Latest deploy log https://app.netlify.com/sites/babel-next/deploys/65df657a8c544500077de641

netlify[bot] avatar Feb 02 '24 11:02 netlify[bot]

Deploy Preview for babel failed.

Name Link
Latest commit 6e383d0d2eec55680d97327c2675f67465633857
Latest deploy log https://app.netlify.com/sites/babel/deploys/65df657b332ab6000858504a

netlify[bot] avatar Feb 02 '24 12:02 netlify[bot]

Thank you, I though you had forgotten :) I'll take a look

nicolo-ribaudo avatar Feb 02 '24 14:02 nicolo-ribaudo

runs locally on the browser

How much does it increase the weight of the page? How large is the index?

Daniel15 avatar Mar 01 '24 19:03 Daniel15

How much does it increase the weight of the page? How large is the index?

For this specific website, it's 1.5MB

micheleriva avatar Mar 03 '24 04:03 micheleriva

Is the index lazily loaded when you use the search, or is it always loaded even for people that don't ever use the search? 1.5MB is pretty heavy.

Daniel

On March 2, 2024 8:11:46 PM PST, Michele Riva @.***> wrote:

How much does it increase the weight of the page? How large is the index?

For this specific website, it's 1.5MB

-- Reply to this email directly or view it on GitHub: https://github.com/babel/website/pull/2862#issuecomment-1975015047 You are receiving this because you commented.

Message ID: @.***>

Daniel15 avatar Mar 03 '24 05:03 Daniel15

Right now, it's always loaded. We could make it lazy, but requires some development.

As an alternative, we can offer Orama Cloud for free for OSS projects, that way you'd have a more Algolia-like experience... but all the sites using Orama OSS are not having big problems with index size.

1.5MB is not lightweight... it's like loading an average-sized image. That may give some perspective I think :)

micheleriva avatar Mar 03 '24 05:03 micheleriva

Hi, @nicolo-ribaudo any update on this/anything I can do? Also, would you prefer moving to Orama Cloud (of course for free) or keeping the open-source one in this PR? It's a small website, so I personally believe the OSS one is enough for now.

micheleriva avatar Mar 21 '24 00:03 micheleriva