Feature Request: 100% Self-hosted Search Plugin via Stork #1198
Closed
ThatGuySam
started this conversation in
Feature Requests
Replies: 1 comment 3 replies
-
Hi @ThatGuySam, Starlight already includes self-hosted search by default! It's using Pagefind instead of Stork. Algolia is an opt-in alternative only for those who prefer it. Does Stork have any specific advantages over Pagefind, or does this meet your requirements? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of
starlight
are you using?0.14.0
What is your idea?
Implement a plugin to enable Stork Search so that you can host your site + search without an extra provider.
https://github.com/jameslittle230/stork
Why is this feature necessary?
For sites that may have a lot of traffic but not many documents or just as alternative Algolia.
Do you have examples of this feature in other projects?
I've implemented this into Astro on my own project, Does It ARM.
The search goes through about 3400 documents in real-time and runs 100% on Netlify with no external servers.
You can see a demo here:
https://doesitarm.com/
Here's how it works in the browser:
https://github.com/ThatGuySam/doesitarm/blob/6c0d536dc128d726aa2d6d375fea804b9301071e/helpers/stork/browser.js#L279
And the extra build step to index the documents:
https://github.com/ThatGuySam/doesitarm/blob/6c0d536dc128d726aa2d6d375fea804b9301071e/helpers/stork/toml.js#L126
https://github.com/ThatGuySam/doesitarm/blob/6c0d536dc128d726aa2d6d375fea804b9301071e/helpers/stork/executable.js#L35
I can't give a hard commitment to do a pull request due to time right now, but happy to answer any questions on the implementation I did.
Participation
Beta Was this translation helpful? Give feedback.
All reactions