-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React library for Stork #247
Comments
This would fit my use case. I have a static blog and want to use the managed UI via React (but might want to roll my own UI in the future). I'm not sure how to handle errors (let's say, a missing Overall design looks sensible 👍 |
As a primary React developer, I would welcome the above API, but... I can't help but feel that given the current status of the project, a better first step might be to expose a framework agnostic Javascript API, as well as perhaps provide a wrapper around the CLI tool to better integrate with the build pipelines used in the Javascript ecosystem (webpack?) That would provide solid foundations for the build out of any number of framework specific APIs/ Implementations... Edit: Sorry if a Javascript api is already exposed, I wasn't able to find one referenced in the documentation. |
@GeeWizWow - I want to make sure you've seen the Stork Javascript API for embedding Stork search interfaces on web pages - the React library I'm describing here would effectively wrap around this VanillaJS library. You might be hoping to see a Stork Javascript API for building search indexes? That's definitely something I'm interested in, but haven't scoped out as much. A few other folks have created Node wrappers around the indexer binary which seems to have worked well for them. Let me know if that helps clear up any confusion. |
@jameslittle230 Those are exactly the things I wanted to see 🙏 Thanks for the links |
If you're writing a site that uses React, you should be able to
npm install
something and get access to Stork from the frontend.I'm imagining an API like:
The
searchResults
variable would bind to an object that could hold an array of results, a number to indicate loading progress, and other bits of state. Ideally you'd be able to build the entire managed UI from the state you get from that hook.Perhaps, for the people who want the managed UI (instead of having to style it themselves), I could expose a component:
How does that look? Any initial feedback?
The text was updated successfully, but these errors were encountered: