Skip to content
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

Can I consume you public API? #25

Closed
visortelle opened this issue Jan 14, 2022 · 3 comments
Closed

Can I consume you public API? #25

visortelle opened this issue Jan 14, 2022 · 3 comments

Comments

@visortelle
Copy link

Hello!

I created a browser extension that allows search over Hoogle and Hackage.

Screen.Recording.2022-01-14.at.12.30.16.PM.mov

Installation instructions here: visortelle/haskell-spotlight#2 (comment)

@Bodigrim told me that "hackage-search" integration would be useful.

The question is - can I consume the public API or deploying my own instance would be preferable?

Thank you.

@int-index
Copy link
Member

int-index commented Jan 14, 2022

Hi, there are no stability guarantees for the API. For example, there used to be a JSON endpoint, but now we do server-side rendering and return the results as HTML.

So if you don't want to risk the extension breaking without warning, it's better to spin up a dedicated instance.

Alternatively, I could bring back the JSON API and make it stable (and JSON is probably easier to deal with, since you have more control over rendering), but it would be great to include some acknowledgement at the top of the search results that the services are provided by Serokell (it can be in really small letters and non-distracting).

@int-index
Copy link
Member

now we do server-side rendering and return the results as HTML

Actually, looking at the code, seems I haven't done that. But I might! 😈

@visortelle
Copy link
Author

visortelle commented Jan 14, 2022

now we do server-side rendering and return the results as HTML

Actually, looking at the code, seems I haven't done that. But I might! 😈

Then I’ll consume your instance.

it would be great to include some acknowledgement at the top of the search results that the services are provided by Serokell (it can be in really small letters and non-distracting).

Of course. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants